[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|