This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Apply-templates for getting around my XML doc?
- To: xsl-list at mulberrytech dot com
- Subject: Re: Apply-templates for getting around my XML doc?
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Wed, 11 Oct 2000 16:10:39 GMT
- References: <5B5584B6.41AAE29F.74E6ACFD@cs.com>
- Reply-To: xsl-list at mulberrytech dot com
You could do that but it's a rather strange style of working.
All your match expressions only match one element so it's rather strange
to code it as a match.
basically the answer to your question
<xsl:apply-templates select="/L/0/iii"/> <!-- does this pass the
ball directly to the template listed below?-->
is no.
That selects th enode you are interested in and then applies whatever
template that matches. Now it so happens that the one that matches
is the one you indicated, but that is a rather indirect approach.
If you really only want to do something for one iii node (not all nodes
of that name) I'd probably do
<xsl:for-each select="/L/X0/iii">
do this this
</xsl:for-each>
Also rather importantly you can not have element names beginning with a
digit? which XML parser are you using? It should have rejected the whole thing.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list