[Xsltforms-support] Booting XsltForms from an instance data document
Brought to you by:
alain-couthures
From: Mats E. <mat...@ya...> - 2014-05-03 06:42:00
|
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 ________________________________ From: Mats Eklund <mat...@ya...> To: "xsl...@li..." <xsl...@li...> Sent: Thursday, May 1, 2014 7:47 AM Subject: Problems when using Chrome 34 and Opera 12 Hi Alain and others, I am just beginning to try XsltForms, and am having problems opening my first form in Chrome (v34) and in Opera (v12.17) getting the following error messages: Chrome error on loading form: Javscript Alert XSLTForms Exception Error dispatching event 'xforms-model-construct' TypeError: undefined is not a function at Object.XsltForms_browser.getMeta(...xsltforms.js: 1083:474) at XsltForms_coreElement.XsltForms_instance.validate_(...xsltforms.js:7114:34) .... TypeError undefined is not a function Opera error on loading form: File not found: file://localhost/C:/.../xsltforms/config_en.xsl and subsequently XSLTForms Exception Error initializing: <anonymous function: XsltForms_browser.loadNode>([arguments not available])@file://localhost/.../xsltforms.js:894 ... TypeError Cannot convert 'src' to object Are these known problems, and is there a solution? The form loads fine in Firefox! Thanks for your support! Mats |