| Author |
XSL help
|
SANJAY KUMAR
Greenhorn
Joined: Mar 27, 2002
Posts: 25
|
|
Hi Friends, I have XML like <root> <table class="aa"> <tr><td>test</td></tr> </table> <table class="bb"> <tr><td>new</td></tr> </table> <table class="aa"> <tr><td>some</td></tr> </table> <table class="bb"> <tr><td>best</td></tr> </table> </root> I need to display test and some. How to write XSL to get only those elements. I can see class="aa" is making differance. Please help me. I will really appreciate Thank
|
SCJP, SCWCD , SCBCD
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
An example in XPath should be sufficient. You can use XSLT to implement that XPath if you like, or any other XML implementation that supports XPath.Translation: Find a table element at any depth in the tree whose class attribute has the value "aa", then find its tr children, then find their td children.
|
 |
 |
|
|
subject: XSL help
|
|
|