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 <[email protected]>
To: Mats Eklund <[email protected]>; 
"[email protected]" 
<[email protected]> 
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...
>
>
>
>
>________________________________
>
>
------------------------------------------------------------------------------
"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