Hi Mats,

Yes, XSLTForms stylesheet is looking for a processing instruction to load a specified form with the associated instance as the default one (http://lists.w3.org/Archives/Public/public-forms/2011Oct/0026.html). So, 2 processing instructions are required: one for xsltforms.xsl, one for the form to be loaded.

Unfortunately, document() use is locally forbidden in Chrome, native XSLT support is compromised in future browser versions... As a workaround for XSLTFoms 2.0, the SCRIPT HTML element seems to be the unique possibility to emulate processing instructions (the instance should be embedded into a script/@type="text/xml" element).

Thank you for your feedback!

-Alain

Le 03/05/2014 08:41, Mats Eklund a écrit :
Hi,

I am experimenting with the idea to be able to open an instance data document in the browser and have it load with an associated xforms document. I am thinking this could be done using a 2-stage XSLT transformation, where the first transformation inserts the opened instance data document into the default data instance of its associated xforms document (specified as a parameter in a processing instruction), and then let the resulting document be the input for the second transformation - the XsltForms stylesheet - to have the form rendered in the browser.

Does the XsltForms stylesheet has any provisions for this approach already? I was able to achieve the desired result by rewriting some of the templates and xpath expressions in the xsltforms stylesheet (including rewiring references to root node to root node of the result document of the first transformation), but would prefer not to do much changes to the XsltForms stylesheet.

Kind regards,
Mats


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to