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

(<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 UTC