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

RE: Incrementing/Recursion... (somewhat)

Subject: RE: Incrementing/Recursion... (somewhat)
From: Ed Staub <estaub@xxxxxxxx>
Date: Mon, 13 Nov 2000 16:17:18 -0500
recursion groups within groups
Two references to the same page in ten minutes; see page 546 etc. in Michael
Kay's "XSLT" book, on "Programming without Assignment Statements".  Either
recurse or use something like 
	substring(">>>>>>>>>>>",1,position())

-Ed Staub

-----Original Message-----
From: Stephen Cunliffe [mailto:scunliffe@xxxxxxxxxxxxxxxxxx]
Sent: Monday, November 13, 2000 12:35 PM
To: XSL List
Subject: Incrementing/Recursion... (somewhat)


Monday is causing me brain failure...

I'm looking to do the following (or something similar).

based on the pseudo XML below:

<groups>
    <group>First</group>
    <group>Second</group>
    <group>Third</group>
    <group>Fourth</group>
    <group>Fifth</group>
</groups>

in my XSL I want to get output, that "increments" for each item of group
data, as it is processed,
giving HTML output of:

[#] First
[#][#] Second
[#][#][#] Third
[#][#][#][#] Fourth
[#][#][#][#][#] Fifth

where "[#]" is some bit of text,(not a number) that can be repeated for
spacing output in a pseudo tree format.

I guess what I'm looking for is something that will "repeat" or
"for-each", based on the position, within "groups".

T.I.A.

Steve.


 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

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.