Re: [Xsltforms-support] Booting XsltForms from an instance data document
Brought to you by:
alain-couthures
From: Mats E. <mat...@ya...> - 2014-05-04 13:22:02
|
Hi Alain, I have managed to implement the javascript approach, and it works, so I have a fallback solution. Meanwhile I was able to resolve the (first) problem with the ?xml-form approach: I realized that the ?xml-form/@href of the form had to be relative to the XSLTForms XSL document rather than the source XML document. Now I however get a javascript exception at line 9455 in xsltforms.js. Consistent behavior in all browsers. If I open the referenced form directly (with same instance data), it loads without problem. Any idea what this could be, or how to best troubleshoot? Kind regards, Mats ________________________________ From: Alain Couthures <ala...@ag...> To: Mats Eklund <mat...@ya...>; "xsl...@li..." <xsl...@li...> Sent: Sunday, May 4, 2014 1:21 PM Subject: Re: [Xsltforms-support] Booting XsltForms from an instance data document Hi Mats, Because the document() function is not allowed by Chrome, I had to force the Profiler into the stylesheet itself... Could please you try with another browser? Is it an important feature for you? This could be rewritten with Javascript (and native XSLT engine launched with Javascript). What do you think? Thanks! -Alain Le 04/05/2014 11:52, Mats Eklund a écrit : Hi Alain, > >I tried the ?xml-form approach, however, the resulting page is an XSLTForms Profiler page rather than the form!? Am I doing something wrong then? > >My xml file looks like this: > ><?xml version="1.0" encoding="UTF-8"?> ><?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?> ><?xml-form type="application/xhtml+xml" href="myform.xhtml" instance="data"?> ><data>...</data> > >Kind regards, >Mats > > >PS. Pity that native XML standards support seems to be degrading in browsers... > > > > >________________________________ > > |