This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Copy vs copy-of (was: How to delete empty element tag from output XML?)
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: Copy vs copy-of (was: How to delete empty element tag from output XML?)
- From: "Eliot, Topher" <Christopher_Eliot at jdedwards dot com>
- Date: Fri, 3 Nov 2000 13:19:11 -0400 (EST)
- Reply-To: xsl-list at mulberrytech dot com
How would your sample below be different from
<xsl:template match="*" mode="copy-unless-empty">
<xsl:if test="node()">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:template>
> <xsl:template match="*" mode="copy-unless-empty">
> <xsl:if test="node()">
> <xsl:copy>
> <xsl:copy-of select="@*"/>
> <xsl:value-of select="."/>
> </xsl:copy>
> </xsl:if>
> </xsl:template>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list