Write a template for ROW like this:
<xsl:template match="ROW">
<xsl:value-of select="other"/>
<xsl:value-of select="@num"/>
</xsl:template>
or write a template for other like this:
<xsl:template match="other">
<xsl:value-of select="."/>
<xsl:value-of select="../@num"/>
</xsl:template>
Greetings René
{@ @}
^
\_/
"You don't need eyes to see, you need vision!"
TJIP PCL
Steenovenweg 3
5708 HN Helmond
tel: +31(0) 492 502 222
fax: +31(0) 492 502 299
e-mail: R(_dot_)deVries(_at_)tjip(_dot_)com
internet: www.tjip.com
***************************DISCLAIMER********************************
Deze e-mail is uitsluitend bestemd voor de geadresseerde(n).
Verstrekking aan en gebruik door anderen is niet toegestaan.
TJIP PCL sluit iedere aansprakelijkheid uit die voortvloeit uit
elektronische verzending.
This e-mail is intended exclusively for the addressee(s), and may
not be passed on to, or made available for use by any person
other than the addressee(s). TJIP PCL rules out any and every liability
resulting from any electronic transmission.
Molnár Ágnes
<agi(_at_)harpia(_dot_)homeip(_dot_)net> To:
"xsl" <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent by: cc:
owner-xsl-list(_at_)lists(_dot_)mulber Subject:
[xsl] Get a property of another node
rytech.com
28-05-2003 13:07
Please respond to xsl-list
Hello,
I have the following XML:
<page>
<ROWSET>
<ROW num='1'>
<other>value</other>
</ROW>
<ROW num='2'>
<other>anyothervalue</value>
</ROW>
</ROWSET>
</page>
When I'm in the "other" node with my XSL, I need the "num" of the ROW.
How can I get this propery with an xsl:value-of?
Thanks for all,
Agnes
Molnár Ágnes
E-mail: agi(_at_)harpia(_dot_)homeip(_dot_)net
Tel.: +36-20-212-8493
Icq: 167290967
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list