Re: [Xsltforms-support] Hints on using the transform function
Brought to you by:
alain-couthures
From: Philip F. <Phi...@ma...> - 2011-05-10 09:01:54
|
Alain, Thank you. Yes, I can see that the function works when I use xf:setvalue to send the result to a text node. Would an alternative implementation of the transform function return a node and then you could use the existing serialize function to generate the textual representation from the result of transform? Regards Philip From: Alain Couthures [mailto:ala...@ag...] Sent: Tuesday, May 10, 2011 8:00 AM To: Philip Fennell Cc: xsl...@li... Subject: Re: [Xsltforms-support] Hints on using the transform function Hello Philip, I've been experimenting with XSLTForms' extension transform function but I can't seem to get it to work or, maybe, I'm not using it correctly. I had hoped I could use it to apply a transform to one instance and deposit the result into another by using an xf:insert: <xf:insert origin="transform(instance('source'), '/resources/schemas/schematron/atom-feed.xsl')" position="after" nodeset="." context="instance('svrlReport')"/> The current transform() function in XSLTForms returns a string. A parse() function could be added to get an XML Document instead. Regards, -Alain |