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

following-sibling

Subject: following-sibling
From: Alia Mikati <Aliam@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 10 Sep 2002 15:49:26 +0300
td to tr sibling
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


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.