Altova Mailing List Archives


Re: [xsl] Immediate Previous Node

From: Jarkko.Moilanen@------
To:
Date: 11/15/2002 1:23:00 AM
Lainaus Luke Ambrogio <gryzlaw@xxxxxxxxxxx>:

<xsl:if test="previous-sibling::*=a">

Jarkko

> hello ppl,
> 
> i have a small problem, hope you can help.
> i have a sorted xml something like:
> 
> <index>
> <item>a</item>
> <item>ab</item>
> <item>b</item>
> <item>c</item>
> </index>
> 
> how can i, using xsl of course, find out the data of immediate previous 
> node. example while processing:
> 
> <item>ab</item>
> 
> using <xsl:if> i want to check whether the previous one is
> <item>a</item> so 
> that i can process it different
> 
> hope i was clear
> 
> 10x in advance
> 
> Luke
> 
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE* 
> http://join.msn.com/?page=features/junkmail
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 



****************************************************************
Jarkko Moilanen          "Erehtyminen on inhimillista, 
Researcher/ ITCM         mutta todella suuret mokat 
jm60697@xxxxxx           vaativat tietokoneen k&auml;ytt&ouml;&auml;."         
www.uta.fi/~jm60697                                           
GSM: +358 50 3766 927                                         
****************************************************************
* ITCM | Information Technology and Crisis Management            
* http://www.itcm.org                                            
****************************************************************

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

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.