W3C home > Mailing lists > Public > www-ql@w3.org > January to March 2003

RE: A simple XQuery(XPath) question...

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Thu, 20 Feb 2003 13:51:09 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E621060453E0B9@daemsg02.software-ag.de>
To: Michael Burbidge <mburbidg@adobe.com>, www-ql@w3.org

The subexpression (<mike><bob/><bob/></mike>) evaluates to a <mike> element.
The next step in the path expression tries to find a child of this element
called "mike"; but there isn't one.

Michael Kay



-----Original Message-----
From: Michael Burbidge [mailto:mburbidg@adobe.com] 
Sent: 20 February 2003 00:33
To: www-ql@w3.org
Subject: A simple XQuery(XPath) question...


The following XQuery expression evaluates to the empty sequence: 


(<mike><bob/><bob/></mike>)/mike/bob 


I would have thought that it evaluated to: 


<bob/><bob/> 


Where am I wrong? 


Thanks, 
Michael- 
Received on Thursday, 20 February 2003 07:51:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:18 GMT