Bugs item #1988948, was opened at 2008-06-09 16:36
Message generated for change (Comment added) made by stmane
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1988948&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Website
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: mafweb (mafweb)
>Assigned to: Jan Rittinger (tsheyar)
Summary: XQuery Hello World example 4 broken

Initial Comment:
Source Link:
http://monetdb.cwi.nl/projects/monetdb/XQuery/QuickTour/HelloWorld/index.html 

Example 4

  <example> { 
      <doc>Hello World</doc>/doc/text() 
    } </example>

Returns:

  <example/>

It should be:

  <example> { 
      <doc>Hello World</doc>/text() 
    } </example>

or

  <example> { 
      <doc><node>Hello World</node></doc>/node/text() 
    } </example>


----------------------------------------------------------------------

>Comment By: Stefan Manegold (stmane)
Date: 2008-06-09 17:54

Message:
Logged In: YES 
user_id=572415
Originator: NO

As far as I can tell, the result is correct:

The given context node (<doc>Hello World</doc>) has no "doc" child node;
hence, the result it empty.

But maybe, one of our XQuery experts (Jan?) could double-check.

Currently, MonetDB/XQuery produces the follwing answers:

$ mclient -lx -s' <example> { <doc>Hello World</doc>/doc/text() }
</example> ' | mclient -lx
<example/>
$ mclient -lx -s' <example> { <doc>Hello World</doc>/doc } </example> ' |
mclient -lx
<example/>
$ mclient -lx -s' <example> { <doc>Hello World</doc>/text() } </example> '
| mclient -lx
<example>Hello World</example>
$ mclient -lx -s' <example> { <doc>Hello World</doc>/. } </example> ' |
mclient -lx
<example><doc>Hello World</doc></example>

(Haven't checked with Galax and/or Saxon, yet ...)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1988948&group_id=56967

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to