Subject: [xsl] Re: [xquery-talk] fn:transform running with default call-template invocation - no result-documents created From: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 11 Feb 2021 19:50:06 -0000 |
On Thu, 2021-02-11 at 09:27 -0500, Ihe Onwuka wrote: > > However if I invoke it from XQuery with fn:transform like so > > xquery version "3.1"; > fn:transform(map { 'stylesheet-node' :B doc('test.xsl')})?output > > none of the result-documents are created. You need to go on my XSLT course :-) What happens is the content that would have been written out via result-document ends up in the result map, with the keys being the URIs to which they would have been written. So, save the result of fn:transform() and use map:keys() or map:each() to find them and use e.g. file:write() or fn:put() or database:store- somewhere() as appropriate. Liam -- Liam Quin,B https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Barefoot Web-slave, antique illustrations: B http://www.fromoldbooks.org
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to generate a path ex, Michael Kay mike@xxx | Thread | [xsl] Re: [xquery-talk] fn:transfor, Michael Kay mike@xxx |
Re: [xsl] How to generate a path ex, Michael Kay mike@xxx | Date | [xsl] Re: [xquery-talk] fn:transfor, Michael Kay mike@xxx |
Month |