This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Filling gaps in a list of values
- From: Jeni Tennison <jeni at jenitennison dot com>
- To: "Andrew Welch" <andrew at thebristoldirectory dot com>
- Cc: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 22 Jan 2002 14:48:20 +0000
- Subject: Re: [xsl] Filling gaps in a list of values
- Organization: Jeni Tennison Consulting Ltd
- References: <000001c1a34d$ad6a2af0$8ac809c0@ajw>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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