This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: matching nodes by their value
- To: xsl-list at mulberrytech dot com
- Subject: RE: matching nodes by their value
- From: "Harbarth, Juliane" <Juliane dot Harbarth at softwareag dot com>
- Date: Wed, 16 Aug 2000 13:55:21 +0200
- Reply-To: xsl-list at mulberrytech dot com
> I need to select all <tr> nodes which second <td> node's <a> value
> starts with some string, which is passed to stylesheet as parameter.
> ....
> <xsl:for-each select="tr/td/a[starts-with(tr/td/a,$string)]">
> ...
> its not selecting the needed nodes,
The fact that you wanted to look at the second td in each tr
does not reflect in your select value, try
tr/td[2]/a[starts-with(tr/td/a,$string)].
Otherwise, I can't see anything wrong.
Juliane.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list