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

Indent based on position()

Subject: Indent based on position()
From: "Brook Elgie" <brook.elgie@xxxxxxx>
Date: Thu, 11 Apr 2002 12:31:35 +0100
brook elgie
Hello all,

I've got the XML code:

<content>
    <line>This is the first line</line>
    <line>This is the second line</line>
    <line>This is the third line</line>
    <line>This is the forth and last line</line>
</content>

And would like the html output:

<p>
    -This is the first line<br/>
    --This is the second line<br/>
    ---This is the third line<br/>
    ----This is the forth line<br/>
</p>

So, when i process each <line> I need to duplicate the "-" character as many
times as the position() of the <line> being processed, I think. Can I do
this?

cheers
brook


 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.