am a newbie

i find the following xsl <xsl:1> (at a tutorial) which is supposed to be
an identity transform... and the output of xalan <out:1> is not the
identity transform of the input file <xml:> (ignoring the xml header)

how do i do an identity tranform ??

xml:
----
<?xml version="1.0"?>
<a>Hello
    <aa value="a">aa
        <aaa>aaa
        </aaa>
    </aa>
    <ab value="ab">ab
    </ab>
</a>

xsl:1
-----
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
 
<xsl:template match="*|@*|comment()|processing-instruction()|text()">
<xsl:copy>
<xsl:apply-templates
select="*|@*|comment()|processing-instruction()|text()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

out:1
-----
<a><aa><aaa>aaa
        </aaa>
    </aa>
    <ab value="ab">ab
    </ab>
</a>

regards
kishore

Reply via email to