|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: counting nodes before and aften an specific one
Hello Aniceto, You want to use preceding-sibling and following-sibling, so count(tab[@active=1]/preceding-sibling::tab) and count(tab[@active=1]/following-sibling::tab) hth Tom SW > -----Original Message----- > From: Aniceto Lopez [mailto:aniceto@xxxxxxxxxxxxx] > Sent: 26 November 2002 09:34 > To: xsl-list > Subject: counting nodes before and aften an specific one > > > Hi xsl people. > > xml sample > <form-tab> > <tab active="0" name="GENERAL"/> > <tab active="0" name="CONTABLES"/> > <tab active="1" name="NOTAS"/> > <tab active="0" name="DOCUMENTOS"/> > <tab active="0" name="NOTAS"/> > <tab active="0" name="RELACIONES"/> > </form-tab> > > how can I count the nodes before the one @active=1 > ant the ones after, assuming there is only one active > > any idea? > > thanks in advance > Ani > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








