Subject: RE: [xsl] counting nodes before and aften an specific one From: "Aniceto Lopez" <aniceto@xxxxxxxxxxxxx> Date: Tue, 26 Nov 2002 11:07:44 +0100 |
thanks Tom -----Mensaje original----- De: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]En nombre de TSchutzerWeissmann@xxxxxxxxxxxxxxxx Enviado el: martes, 26 de noviembre de 2002 10:50 Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Asunto: RE: [xsl] 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: [xsl] 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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] counting nodes before and, TSchutzerWeissmann | Thread | Antw: [xsl] counting nodes before a, Markus Frommherz |
Re: [xsl] counting nodes before and, David Carlisle | Date | [xsl] Building a HTML select list f, Moore, Simon |
Month |