[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|