|
Subject: [xsl] Matching node by its position From: "Agaram Madhavaraju" <madhav@xxxxxxxxxxxxxxx> Date: Tue, 16 Jul 2002 00:20:33 -0700 |
I have an xml file like:-
<students>
<student>
<name>AAA</name>
<id>123</id>
<course>1A</course>
</student>
<student>
<name>BBB</name>
<id>124</id>
<course>1B</course>
</student>
.....
....
</students>
I want to match and select only the second student node.
I tried something like this
<xsl:template match="student[1]">
<xsl:template match="student[position()=1]">
Both of them did not work. IE5.x is showing a blank page with some error at the status area of the browser.
Thanks
-Madhavaraju
--------------------------------------------------
Madhavaraju AM
Plexion Technologies
HMG Solitaire, # 11, Hayes Road
Bangalore 560 025
India
Phone +91 (0)80 - 2279678, 2224520
Fax +91 (0)80 - 2279677
e-mail madhav@xxxxxxxxxxxxxxx
website http://www.plexiontech.com
Present Address
Residence:
Somborer Weg 16
71067 Sindelfingen
Germany
Phone:
work +49 (0)7031 90-70953
resi +49 (0)7031 469708
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] conditional template matc, Jarno . Elovirta | Thread | RE: [xsl] Matching node by its posi, Michael Kay |
| RE: [xsl] conditional template matc, Jarno . Elovirta | Date | RE: [xsl] xslt 2 grouping - solutio, DPawson |
| Month |