Hello again,
I have this part of xml file and I wanna search in a row for the value ':
139597.1' and get its sibling 'Status: RONY'.
....
<tr>
<td></td>
<td colspan="2" nowrap="nowrap">
<small>Type: N3</small>
</td>
<td nowrap="nowrap">
<small>
<a href="/help/usaeng/Search/search.html#file">Doc
ID</a>
: 139597.1</small>
</td>
</tr>
<tr>
<td></td>
<td colspan="2" nowrap="nowrap">
<small>Score: 100%</small>
</td>
<td nowrap="nowrap">
<small>Modified Date: 30-JUN-2002</small>
</td>
</tr>
<tr>
<td></td>
<td nowrap="nowrap">
<small>Status: RONY</small>
</td>
<td>
<small>Platform: HP 9000 Series HP-UX</small>
</td>
<td>
<small>Product: Oracle Server - Enterprise
Edition</small>
</td>
</tr>
...
I'm using this xsl but not working. Plz can u tell me what's wrong?
Thx again.
...
<xsl:template match="body/center/table/tr/td/table/tr/td/small">
<xsl:if test="contains(., ': 139597.1')">
<b> Tar Status is : </b>
<xsl:value-of select="normalize-space(following-sibling::tr
[position() = 2]/td/small)"/>
</xsl:if>
</xsl:template>
...
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list