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

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

From: Michael Rys <mrys@microsoft.com>
Date: Wed, 19 Feb 2003 16:48:51 -0800
Message-ID: <5C39F806F9939046B4B1AFE652500A3A047AC4E7@RED-MSG-10.redmond.corp.microsoft.com>
To: "Michael Burbidge" <mburbidg@adobe.com>, <www-ql@w3.org>
(<mike><bob/><bob/></mike>)

 

gives you a mike element.

 

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

 

tries to give you the mike child of mike (which is ()).

 

Try:

 

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

 

 

-----Original Message-----
From: Michael Burbidge [mailto:mburbidg@adobe.com] 
Sent: Wednesday, February 19, 2003 16:33 PM
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 Wednesday, 19 February 2003 19:49:18 GMT

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