This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: another quest
- From: Jarno dot Elovirta at nokia dot com
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 29 Aug 2002 14:31:21 +0300
- Subject: RE: [xsl] another quest
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
> <table>
> <tr>
> <td> tony </td>
> <td> 100 </td>
> </tr>
> <tr>
> <td> rony </td>
> <td> 99 </td>
> </tr>
> </table>
>
> I want to to search for "rony" to get the value of the
> following sibling
> (which is in this case 99). How can I do it in xsl???
<xsl:value-of select="table/tr[td[1] = 'rony']/td" />
To be perfectly blunt, have you even thought about reading the XSLT and XPath specs?
Jarno
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list