[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?

Subject: Re: Apply-templates for getting around my XML doc?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 11 Oct 2000 16:10:39 GMT
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.