xsl:copy of includes xml wrapping
This is an open discussion with 3 replies, filed under XSLT.
Search
Yep, because this is saying "perform a copy of my content
element". If you just want the elements (HTML) within, select all children:
<xsl:copy-of select="content/*" />
copy-of
does what its says. It doesn't wrap the content
node around hour html. It copies it because it's selected in the @select
. Try <xsl:copy-of select="..../content/*"/>
(added the star selector).
Thanks, just found it on page 5 or so of my forum search :)
Create an account or sign in to comment.
Sorry if this is a FAQ.
But when i use
<xsl:copy-of select="..../content" />
The output wraps
<content mode="formatted">
around my html?