This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Question with xsl:copy-of and xsl:value-of


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]