[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problem in Preceding node.
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)<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...
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|