[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

matching nodes by their value

Subject: matching nodes by their value
From: "Jonas" <bob@xxxxxxxxxx>
Date: Wed, 16 Aug 2000 13:21:26 +0200
xsl matching nodes for each
Hello,

there is such structure of html:

<table>
<tr>
<td>...</td>
<td><a ...>something</a></td>
</tr>
<tr>...</tr>
...
</table>
All <tr> nodes have the same structure.
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.
I wrote such template:
  <xsl:template match="table">
    ....
     <xsl:for-each select="tr/td/a[starts-with(tr/td/a,$string)]">
       <xsl:apply-templates select="child::tr"/>
     </xsl:for-each>
  </xsl:template>

and its not selecting the needed nodes,
what have I done wrong in for-each select?
or this should be done other way?

Thanks,
Jonas.
 






 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.