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]
Other format: [Raw text]

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
set.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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]