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


Hello,

> <tr>
> <td><a href="http://">..</a></td>
> <td><a href="http://">AAA</a></td>
> </tr><tr>

I found out where the problem was.
Actually the second <td>'s <a> node contained child <font>:

 <td><a href="http://"><font>AAA</font></a></td>

so when I selected  tr/td/a/font(starts-with(.,'A')], 
it did almost what I wanted it to do.

But this leads to a following question:
value of a node is "concatenation of all parsed character data between
element's start tag and end tag" (from XML Bible Chapter 14).
So according to this,  the value of such <a> node:
<a "href=//"><font><font>AAA</font>BBB</font></a>
should be 'AAABBB' (or 'AAA BBB' ?) and it starts with 'A',
but starts-with(a,'A') doesn't match such node.
Does anybody know why?

Jonas. 


 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]