From: neelkamal(_dot_)shaikh(_at_)prudential(_dot_)com
[mailto:neelkamal(_dot_)shaikh(_at_)prudential(_dot_)com]
Sent: Tuesday, February 11, 2003 8:41 AM
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Child Node Attribute
I need to get handle of the child nodes attribute i.e. value
of "b" = box
in the below xml.
Say
<abc a="apple">
<child b="box">
</child>
</abc>
Assuming you want the value when the attribute 'a' of <abc> is equal to
'apple':
<xsl:value-of select="abc[(_at_)a='apple']/child/@b"/>
cheers,
b.
| brian martinez
brian(_dot_)martinez(_at_)trip(_dot_)com |
| senior gui programmer 303.708.7248 |
| trip network, inc. fax 303.790.9350 |
| 6436 s. racine cir. englewood, co 80111 |
| http://www.cheaptickets.com/ http://www.trip.com/ |
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list