Re: [Xsltforms-support] XSLTForms + eXist
Brought to you by:
alain-couthures
From: COUTHURES A. <ala...@ag...> - 2009-09-29 20:24:36
|
-------- Message original -------- Sujet : Getting XSLTForms to work with dynamic XForms Date : Tue, 29 Sep 2009 14:40:44 -0500 De : Dan McCreary <dan...@gm...> Répondre à : da...@da... Pour : exi...@li... Copie à : COUTHURES Alain <ala...@ag...> With very patient help from Alain Courthures I believe we have figured out a way to get XSLTForms to work when the forms are generated by an XQuery. The key is to add the following to any XQueries that dynamically generate XForms using the XSLTForms client-side libraries declare option exist:serialize "process-xsl-pi=no"; This prevents the XSL PI from executing on the server side and lets the browser do the right thing. xquery version "1.0"; declare option exist:serialize "method=xhtml media-type=application/xhtml process-xsl-pi=no"; ( <?xml-stylesheet href="http://support.syntactica.com:8080/exist/xsltforms/xsltforms.xsl" type="text/xsl"?>, <html> XForms code here... </html> ) Once again a hardy thanks to Alain! - Dan |