[xsl] result-document output method vs unnammed output method

Subject: [xsl] result-document output method vs unnammed output method
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Fri, 25 Nov 2011 17:02:03 +0000
Friday afternoon test - try and guess the output:

A.xslt:

<xsl:stylesheet  version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

    <xsl:import href="B.xslt"/>

    <xsl:template match="/" name="main">
        <xsl:result-document method="xml">
            <foo>bar</foo>
        </xsl:result-document>
    </xsl:template>

</xsl:stylesheet>

B.xslt:

<xsl:stylesheet version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

    <xsl:output method="text"/>

</xsl:stylesheet>



-- 
Andrew Welch
http://andrewjwelch.com

Current Thread