This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Selecting a descendant child at arbitrary depth
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Selecting a descendant child at arbitrary depth
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Wed, 14 Mar 2001 09:44:01 GMT
- References: <000401c0ac68$0ae32b10$6106020a@ZERO>
- Reply-To: xsl-list at lists dot mulberrytech dot com
You may need to post some more context as what you posted looked OK
so presumably the error is somewhere else.
You don't actually need to apply templates.
Rather than
<xsl:apply-templates select=".//docBody" />
<xsl:template match="docBody">
<xsl:copy-of select="*" />
</xsl:template>
You could do
<xsl:copy-of select=".//docBody/*" />
But either should work. Note that in either case the * selects element
children of docBody. If there might be character data there, use node()
instead of *.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list