This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Question with xsl:copy-of and xsl:value-of
- To: wbchmura at Ensign-BickfordInd dot com
- Subject: Re: [xsl] Question with xsl:copy-of and xsl:value-of
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Thu, 6 Sep 2001 15:11:29 +0100
- CC: xsl-list at lists dot mulberrytech dot com
- Organization: Jeni Tennison Consulting Ltd
- References: <"H000073201699451.0999784117.hp_em2*"@MHS>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Bill,
> I need to extact the contents of the <title> tag intact. If I do a
> value-of, it looses the tags inside of it. If I do a copy-of I get
> the <title> tag also. I need to be able to just get the contents of
> the <title> tag without the <title> around it.
Copy the child nodes of the title element with:
<xsl:copy-of select="title/node()" />
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list