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

Need Xpath Question (help).

Subject: Need Xpath Question (help).
From: "Ragan, Mitch" <mitch.ragan@xxxxxxxxxx>
Date: Mon, 28 Jan 2002 13:10:19 -0800
xpath mfc
Any one know the answer to either of these questions?

> Using this XPath Builder:
> <http://staff.develop.com/aarons/bits/xpath-builder/>
> (Dosent seem to work well in Netscape Browser) or XML file "Invoices"
> listed below.
> I am looking for the XPath that will : 
>      1) Return the "LineItem" with the lowest Price "in each LineItems"
> (hint:  the parent axis is easier to get working in this case than the
> sibling axes) 
> 		something like? /Invoices/Invoice/LineItems/LineItem/Price
> [Price !> parent::Price]  (only this one is incorrect)
>      2) Select all the text nodes, comment nodes, processing instruction
> nodes, and element nodes that come before the 49.95 Price node,
>         except the ancestors of that Price node.
<?xml version="1.0" encoding="UTF-8"?> 
<Invoice ID='1000'> 
 <CustomerName>Jane Smith</CustomerName> 
 <Description>Dons Boxers</Description> 
 <Description>Rice Krispy COM Object</Description> 
<Description>Red Vines</Description> 
<Invoice ID='1010'> 
<CustomerName>Storm Phillips</CustomerName> 
<Description>COM is LOVE T-shirt</Description> 
<Description>ATL Internals</Description> 
<Invoice ID='1020'> 
<CustomerName>John Stockton</CustomerName> 
<Description>Caffeinated Beverages</Description> 
<Description>Friday Pizza</Description> 
<Description>MFC Internals</Description> 

  Mitch K. Ragan 
    Boeing Commercial Aircraft Group 
    Global Electronic Commerce 
    Senior Systems Analyst  425-266-3155

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.