Bugs item #1872806, was opened at 2008-01-16 15:27
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1872806&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: PF/runtime
Group: Pathfinder CVS Head
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ying Zhang (yingying)
Assigned to: Nobody/Anonymous (nobody)
Summary: PF: weird results of fn:id()
Initial Comment:
Querying fn:id() on my own xml document returns weird results.
The query doc("http://homepages.cwi.nl/~zhang/sheep.xml")/id("s1") returns
empty result (there do exist a node with id "s1"), while the query
doc("http://homepages.cwi.nl/~zhang/sheep.xml")/id("001") returns the whole
document.
However, the query doc("http://www.functx.com/input/book.xml")/id("preface")
returns correct result.
Maybe my document is incorrect?
Below is a copy of my query session. I'm using the current brach, recompiled
this morning, but I got the same behaviour with the stable version.
Regards,
Jennie
==============
$ mclient -lx
xquery>doc("http://homepages.cwi.nl/~zhang/sheep.xml")/id("s1")
more><>
xquery>doc("http://homepages.cwi.nl/~zhang/sheep.xml")/id("001")
more><>
<?xml version="1.0" encoding="utf-8"?>
<sheepdb>
<sheep id="s1">
<name>Baby Sheep</name>
<price>100</price>
<stock>98</stock>
<picture>pictures/BabySheep.jpg</picture>
<description>
My favourite sheep with extreme high cuddle factor
</description>
</sheep>
<sheep id="s2">
<name>Lost Sheep</name>
<price>1234</price>
<stock>50</stock>
<picture>pictures/DSC01689.jpg</picture>
<description>
Oops, wrong site ;-)
</description>
</sheep>
<sheep id="001">
<name>Baby Sheep</name>
<price>100</price>
<stock>98</stock>
<picture>pictures/BabySheep.jpg</picture>
<description>
My favourite sheep with extreme high cuddle factor
</description>
</sheep>
<sheep id="002">
<name>Lost Sheep</name>
<price>1234</price>
<stock>50</stock>
<picture>pictures/DSC01689.jpg</picture>
<description>
Oops, wrong site ;-)
</description>
</sheep>
</sheepdb>
xquery>doc("http://www.functx.com/input/book.xml")/id("preface")
more><>
<section id="preface">This book introduces XQuery...
The examples are downloadable<fnref ref="fn1"/>...
</section>
xquery>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1872806&group_id=56967
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs