|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Pb with identity transform in XT
This one works for me, with the 99/07/25 version of XT :
<xsl:template match="@*|*|text()" name="identity" priority='-2'>
<xsl:copy>
<xsl:apply-templates select="@*|*|text()"/>
</xsl:copy>
</xsl:template>
I don't see why the following one would't also work :
<xsl:template match="@*|*|text()|processing-instruction()" name="identity"
priority='-2'>
<xsl:copy>
<xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
</xsl:copy>
</xsl:template>
> I can't figure it out, the identity transform in XT appears to not
> copy the document element. Using the following stylesheet:
>
> <stylesheet xmlns="http://www.w3.org/XSL/Transform/1.0">
>
> <template match="@*|*|text()|processing-instruction()">
> <copy>
> <apply-templates select="@*|node()"/>
> </copy>
> </template>
>
> </stylesheet>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








