Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Problem in Preceding node.

From: Ragulf Pickaxe <ragulf.pickaxe@--------->
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)&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...


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent