This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: matching nodes by their value



> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]