Subject: Re: Selecting a descendant child at arbitrary depth
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 14 Mar 2001 09:44:01 GMT
|
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
|