Subject: Re: Apply-templates for getting around my XML doc? From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 11 Oct 2000 16:10:39 GMT |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Apply-templates for getting around , emitchell154 | Thread | Re: Apply-templates for getting aro, Wendell Piez |
RE: Date function in XSL, Krishnamurthy, Rama | Date | Re: Thanks; Ettiquette, Rick Geimer |
Month |