[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] How to select a node based on its siblings?


Subject: [xsl] How to select a node based on its siblings?
From: Peng Yu <pengyu.ut@xxxxxxxxx>
Date: Sat, 1 Oct 2011 12:21:07 -0500

Hi,

I want to select <input ...> based on the fact the its sibling <label
...> has the number 1. I looked at xpath manual, but I'm not sure how
to use xpath to select based on siblings. Could anybody let me know?

<td class="checkBoxMargin fontColorGrey alignTextCenter" valign="top"
scope="row">
<input id="eid_2-s2.0-78650811198" type="checkbox" onclick="return
selectDeselectResult(document.SearchResultsForm, this);"
value="2-s2.0-78650811198" name="selectedEIDs">
<br>
<label for="eid_2-s2.0-78650811198">
<span class="hidden-label">result</span>
1
</label>
</td>

-- 
Regards,
Peng


Current Thread
Keywords