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

Need some help with an expression...

Subject: Need some help with an expression...
From: Charles Douthart <charles.douthart@xxxxxxxxxxxxx>
Date: Tue, 22 Aug 2000 13:11:39 -0400
Need some help with an expression...
Hello,
 I'm fairly new to XPath and hope that you all can help me with a
problem.

Given an XML structure like the following:

<box>
   <category name="someType">
      <header>
        <self>
           <host>myhost</host>
           <instance>9</instance>
        </self>
       <ref>
          <host>thathost</host>
          <instance>1010101</instance>
       </ref>
</header>

And the value of the header instance is 9 (passed from a web page to a
servlet)

What expression can I use to get the ref elemenent under the same header
parent? I undserstand enough to produce
/box/category[@name='someType']/header, but I'm stumped as to how I
should proceed from there.  I need to test the value of /self/instance
to find the matching element and then get the ref sibling of the same
header ancestor of the matching element.


TIA,
charles douthart
charles.douthart@xxxxxxxxxxxxx


 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.