|
Subject: [xsl] knowing the position of certain node From: "Jaime A Stuardo Bahamondes" <jstuardo@xxxxxxxxxxx> Date: Tue, 6 Jan 2004 09:50:03 -0400 |
Hi all..
I have this sample XML:
<test>
<row>
<field1>this</field1>
</row>
<row>
<field1>is</field1>
</row>
<row>
<field1>a</field1>
<field2>yes</field2>
</row>
<row>
<field1>test</field1>
</row>
</test>
If I use <xsl:value-of select="row[field2 = 'yes']" /> I get all the third "row" field values. How can I know the position of the found node? for example, in that case, I want 3 to be printed on screen, something like "position(row[field2 = 'yes'])"
Thanks
Jaime
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] ANN: Syntext Serna XSL-on-the, xsl-list | Thread | Re: [xsl] knowing the position of c, David Carlisle |
| Re: [xsl] Page Wrapped Tables, David Carlisle | Date | Re: [xsl] XSL Java (&lt; < <, Robert A. van Ginkel |
| Month |