Project

Profile

Help

Bug #2310 » transform1-withresultdoc.xsl

Transform 1, uses xsl:result-document, chains Transform 2, buggy - David Sewell, 2015-02-06 03:19

 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs saxon"
xmlns:saxon="http://saxon.sf.net/"
version="3.0">
<xsl:output saxon:next-in-chain="transform2.xsl"/>
<xsl:template match="/">
<xsl:result-document href="my-output.xml">
<xsl:apply-templates/>
</xsl:result-document>
</xsl:template>
<xsl:template match="doc">
<document><xsl:apply-templates/></document>
</xsl:template>
<xsl:template match="p">
<paragraph><xsl:apply-templates/></paragraph>
</xsl:template>
</xsl:stylesheet>
(4-4/5)