[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: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 22 Jan 2002 14:04:14 -0000
xsl list of values

Hi Jeni,

I was reading your answer to the previous 'filling gaps in a list' problem
and have a question that Im hoping you can answer for me-

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?

Thanks in advance




<xsl:template name="countDown">
  <xsl:param name="from" select="1" />
  <xsl:param name="to" select="1" />
  <xsl:variable name="node" select="node[@order = $from]" />
  <xsl:value-of select="concat('order ', $from, ': ')" />
    <xsl:when test="$node">
      <xsl:value-of select="$node/@name" />
    <xsl:otherwise>no name</xsl:otherwise>
  <xsl:if test="$from > $to">
    <xsl:call-template name="countDown">
      <xsl:with-param name="from" select="$from - 1" />
      <xsl:with-param name="to" select="$to" />

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

 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.