RE: matching nodes by their value

Subject: RE: matching nodes by their value
From: "Harbarth, Juliane" <Juliane.Harbarth@xxxxxxxxxxxxxx>
Date: Wed, 16 Aug 2000 13:55:21 +0200
> 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


Current Thread
  • matching nodes by their value
    • Jonas - Wed, 16 Aug 2000 13:21:26 +0200
      • <Possible follow-ups>
      • Ben Robb - Wed, 16 Aug 2000 12:40:25 +0100
      • Harbarth, Juliane - Wed, 16 Aug 2000 13:55:21 +0200 <=
        • Jonas - Wed, 16 Aug 2000 16:18:39 +0200
          • Robert Stupak - Thu, 17 Aug 2000 10:29:19 +0200
          • robin - Thu, 17 Aug 2000 13:27:27 +0100
          • Jonas - Fri, 18 Aug 2000 12:44:53 +0200