[xsl] Re: Value-of, copy-of

Subject: [xsl] Re: Value-of, copy-of
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 27 Feb 2002 07:15:39 -0800 (PST)
> the chunk of XSL in question is:
> 
> <div class="blurb">
> <xsl:copy-of select="rss:description"/>
> </div>
> 
> my problem is that the processor output is:
> 
> <div class="blurb">
> <description xmlns="http://purl.org/rss/1.0/";; 
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";; 
> xmlns:sy="http://purl.org/rss/1.0/modules/syndication/";;>
> <p>this website has now been rebuilt.  We're using an all-css
all-the-
> time layout.  The backend articles is now in formatted with <acronym
> title="Resource Description Format">RDF</acronym>, ready for 
> syndication.</p>
> </description>
> </div>
> 
> 
> I don't want it to output the <description> elements, only the 
> content inside.

Use:

<xsl:copy-of select="rss:description/node()"/>


Cheers,
Dimitre Novatchev.


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread