[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Filling gaps in a list of values

Subject: Re: Filling gaps in a list of values
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Tue, 22 Jan 2002 14:48:20 +0000
Re:  Filling gaps in a list of values
Hi Andrew,

> Does the variable $node 'pick up' a different node on each iteration
> of the template? Is the variable changing on each iteration, or is
> something else going on?

Yes, the variable $node gets set with:

>   <xsl:variable name="node" select="node[@order = $from]" />

This gets the node element child of the current element (whatever the
current element was when the template was originally called) whose
order attribute equals the value of the $from parameter that's been
passed into the template. So a different node each time the template
is called (recursively). If there isn't a node whose order attribute
is equal to the $from parameter, then the $node variable is an empty



Jeni Tennison

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.