Database Reference
In-Depth Information
Figure 10-2. Package Manager: installing the XSLTForms Files package
Additional Tips for Working with XSLTForms
Here are some hints and tips for working with XSLTForms effectively:
• By default, when directly requesting an XForms host document from the REST
Server, eXist will attempt to process XML stylesheet processing instructions
server-side. You should be able to disable this in $EXIST_HOME/conf.xml by
changing the enable-xsl attribute on the serializer config element (in fact,
the default in eXist is to disable this), but the setting does not seem to currently
affect behavior in eXist 2.1. Alternatively, you may manually disable server-side
processing on a per-request basis via the REST Server by adding ?_xsl=no to the
URI of your XForm.
Likewise, should you wish to generate your XForm using an XQuery, you need to
instruct the serializer not to expand the processing instruction when it serializes
your XQuery by adding the following option to the prolog of the XQuery:
declare option exist:serialize
"method=xhtml media-type=text/xml process-xsl-pi=no" ;
 
Search WWH ::




Custom Search