This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Apply-templates for getting around my XML doc?



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]