|
Subject: RE: Pb with identity transform in XT From: "Maxime Levesque" <maximel@xxxxxxxxxxxxxx> Date: Fri, 6 Aug 1999 11:54:14 -0700 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Pb with identity transform in X, Denys Duchier | Thread | the empty stylesheet does not work , Denys Duchier |
| Re: Pb with identity transform in X, Denys Duchier | Date | the empty stylesheet does not work , Denys Duchier |
| Month |