[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] matching nodes by their value
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|