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

Re: Problem in Preceding node.

Subject: Re: Problem in Preceding node.
From: Ragulf Pickaxe <ragulf.pickaxe@xxxxxxxxx>
Date: Mon, 3 Oct 2005 14:20:25 +0200
c substring
Hi Aaron,

On 10/3/05, aaron apigo <aaronjose_apigo2001@xxxxxxxxx> wrote:
> Hi All,
>   Got another question regarding the preceding node.

This will be a little easier if you are able to get an input like:
<c lv="1">Level 1</c>
...
<c lv="2">Level 2</c>

As it is now, you will have to parse the text in the c node.
substring(c,7,1 div 0) <!-- 1 div 0 to ensure you get all levels, but
1 or 2 might do -->

With current element being processed being c:
preceding::c[substring(c,7,1 div 0)&lt;substring(current(),7,1 div 0)]

For your label, you will probably need the count function as well.
count(preceding::c[substring(c,7,1 div 0)=substring(current(),7,1 div 0)

For the current number. You will also need something for how many "."
you need in your label.

I do not know whether this is what you want.

Regards,
Ragulf Pickaxe...

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.