This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Indent based on position()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]