Hi Alain,

Ok, I investigated the issue and found that things work after the following 
changes in xsltforms.xsl:

* On line 63, change <xsl:apply-templates select="$piformdoc/*" mode="script"/> 
to <xsl:apply-templates select="$piformdoc" mode="script"/> (This fixes the id 
mismatches)
* On lines 51, 52 and 56 (x2), change "$piform" to "concat(' ', $piform)" (This 
fixes a problem that xsltforms does not recognize all parameters set on the 
xml-forms processing instruction)

Hope these fixes can be incorporated into the official source.

Kind regards,
Mats


________________________________
 From: Alain Couthures <[email protected]>
To: Mats Eklund <[email protected]>; 
"[email protected]" 
<[email protected]> 
Sent: Sunday, May 4, 2014 3:54 PM
Subject: Re: [Xsltforms-support] Booting XsltForms from an instance data 
document
 


Hi Mats,

At line 9455, an exception occurs when an id for an XForms element
      is not found. This consistency issue might be due to an invalid id
      generation during the XSLT transformation.

-Alain


Le 04/05/2014 15:21, Mats Eklund a écrit :

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
>
>
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to