|
Subject: Re: [xsl] Identity Transform From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 22 Sep 2003 17:06:46 -0400 |
why does the standard identity transform use copy instead of copy-of?
<xsl:template match="/ | @* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template><xsl:template match="broken">
<fixed>
<xsl:apply-templates select="@* | node()"/>
</fixed>
</xsl:template>Cheers, Wendell
ie: <xsl:template match="/ | @* | node()"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:template>
instead of just <xsl:template match="/"> <xsl:copy-pf select="."/> </xsl:template>
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Identity Transform, Abie Hamaoui | Thread | Re: [xsl] Identity Transform, Adam Turoff |
| RE: [xsl] Re: Relation between Memo, Andreas L. Delmelle | Date | Re: [xsl] Identity Transform, Adam Turoff |
| Month |