This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: using xsl:copy
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] using xsl:copy
- From: Frank Hess <hess dot frank at web dot de>
- Date: Tue, 23 Jan 2001 18:19:44 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Use:
<xsl:template match="/catalog/item">
<xsl:apply-templates select="description"/>
</xsl:template>
<xsl:template match="description">
<xsl:copy-of select="."/>
</xsl:template>
At 11:59 23.01.01 -0500, you wrote:
>If I have an xml structure like this:
>
><catalog>
> <item>
> <description><b>A nice shoe</b></description>
> </item>
></catalog>
>
>and my xsl looks like this:
>
><xsl:template match="/catalog/item">
> <xsl:copy-of select="description"/>
></xsl:template>
>
>
>my HTML output is:
><description><b>A nice shoe</b></description>
>
>
>How can I output the html without the <description> tags? I wish to preserve
>the <b> tags which may or may not be there.
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list