Subject: Re: [xsl] Problem in Preceding node. From: Ragulf Pickaxe <ragulf.pickaxe@xxxxxxxxx> Date: Mon, 3 Oct 2005 14:20:25 +0200 |
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...
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Problem in Preceding node, andrew welch | Thread | Re: [xsl] Problem in Preceding node, aaron apigo |
[xsl] Muenchian Grouping and Sum, Bret Gillan | Date | RE: [xsl] Key problem. Ordering XML, Gabriel Osorio |
Month |