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

XSL iteration

Subject: XSL iteration
From: "Steven Livingstone, ITS, SENM" <steven.livingstone@xxxxxxxxxxxxx>
Date: Thu, 2 Dec 1999 16:56:59 -0000
xsl iteration
Can someone tell me if it is possible to do this in XSLT (and how to do it
please.)

I want to define my own iteration independent of the XML document which
iterates from 0 to 10.
I then want to iterate through a series of childnodes and return true when a
value of the above iteration matches a value in these childnodes attribute
called id.

So the following is how the loop would start in javascript

for (i=0;i=10;i++)
	for (j=0;j=nodes.length;j++)

and this is the XSL which works for a particular node - but of course this
needs to test against i (it currently just checks for blanks).

<xsl:choose>
<xsl:when test="@id[. $eq$ '']">-</xsl:when>
<xsl:otherwise><xsl:value-of select="@id" /></xsl:otherwise>
</xsl:choose>

Any ideas?

Cheers
Steven

Steven Livingstone - http://www.deltabiz.com
07771 957 280 or +447771957280

Professional Site Server 3, Wrox Press
http://www.wrox.com/Consumer/Store/Details.asp?ISBN=1861002696
Professional Site Server 3.0 Commerce Edition, Wrox Press
http://www.wrox.com/Consumer/Store/Details.asp?ISBN=1861002505


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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