xsl-list
[Top] [All Lists]

Re: [xsl] Using copy-of to grab child nodes

2006-11-20 15:02:27

<xsl:copy-of select="text[child::*]" />

that selects the text element, if it has an element child.
you want the element children of text so that's
<xsl:copy-of select="text/child::*" />
or more simply
<xsl:copy-of select="text/*" />
if <text> may have text as well as element children you may want to
replace * by node() in either of the above forms.

David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>