[xsl] counting nodes before and aften an specific one

Subject: [xsl] counting nodes before and aften an specific one
From: "Aniceto Lopez" <aniceto@xxxxxxxxxxxxx>
Date: Tue, 26 Nov 2002 10:34:03 +0100
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


Current Thread