[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

XQuery question about accessing ancestor/parent nodes of return values

Liam Quin liam at w3.org
Fri May 9 17:52:25 PDT 2008


  XQuery question about accessing ancestor/parent
	nodes of return values
On Fri, May 09, 2008 at 04:36:00PM -0400, Steve Taylor wrote:
> For example , here is a small subset from my test XML document (using
> completely made up names and addresses) and following that is my Xquery. I
> highlighted the matching node tag for my XQuery for easy identification:

Note that archived lists tend to filter out HTML-format mail,
so I think your highlighting didn't make it...

> for $address in //Company/Person/Address
> where $address/Zipcode = '12345'
> return $address

I think you want
  return $address/..

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/


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-2007 All Rights Reserved.