Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] Problem in Preceding node. [Thread Next] Re: [xsl] Problem in Preceding node.To: Date: 10/3/2005 12:21:00 PM 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... | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
