Subject: [xsl] does instant saxon 6.5.3 support xsl:result-document ? From: Alan Arnfeld <aarnfeld@xxxxxxxxxxx> Date: Sun, 22 Jul 2007 09:05:27 +0100 (BST) |
Please can somoene advise.. Does instant saxon 6.5.3 support xsl:result-document because i get the following error: Unknown XSLT element: result-document the code i am using is an example from IBM and included below. The aim to convert a single xml file into several HTML files. Thank you in advance. XML file <?xml version="1.0" encoding="UTF-8"?> <tests> <testrun run="test1"> <test name="foo" pass="true" /> <test name="bar" pass="true" /> <test name="baz" pass="true" /> </testrun> <testrun run="test2"> <test name="foo" pass="true" /> <test name="bar" pass="false" /> <test name="baz" pass="false" /> </testrun> <testrun run="test3"> <test name="foo" pass="false" /> <test name="bar" pass="true" /> <test name="baz" pass="false" /> </testrun> </tests> XSL file <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="text"/> <xsl:output method="html" indent="yes" name="html"/> <xsl:template match="/"> <xsl:for-each select="//testrun"> <xsl:variable name="filename" select="concat('output1/',@run,'.html')" /> <xsl:value-of select="$filename" /> <!-- Creating --> <xsl:result-document href="{$filename}" format="html"> <html><body> <xsl:value-of select="@run"/> </body></html> </xsl:result-document> </xsl:for-each> </xsl:template> </xsl:stylesheet>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Vendor extensions for XSL, Dimitre Novatchev | Thread | Re: [xsl] does instant saxon 6.5.3 , David Carlisle |
Re: [xsl] Finding the ID attribute , v vijith | Date | RE: [xsl] Finding the ID attribute , Michael Kay |
Month |