The key is in what the error message is telling you, and also the
XQuery specification. As eXist's XQuery has become more compliant with
the specification, a few things have been tightened up.
You now need - document-uri(root($c))
2008/5/9 Jorge MartÃn Cuervo <
jorge.martin@...>:
> Hi all,
>
> I've been using eXist 1.0x for a while, and now i'm testing 1.2 version.
> I notice that document-uri function is not working as i expected:
>
> This is my test query:
>
> declare namespace hr="
http://ns.hr-xml.org/2004-08-02";
> for $c in //hr:Candidate
> return <x>{document-uri($c)}</x>
>
> and i get:
> <x/>
> <x/>
> <x/>
> [...]
>
> In previous eXist version i get the uri, am i doing something wrong? any
> idea?
>
> Thanks in advance.
>
> --
> ;-)
> ____________________________________
> Jorge Martin Cuervo
>
> Outsourcing Emarketplace
> deFacto Powered by Standards
>
> email <
jorge.martin@...>
> voice +34 984 832 659
> voice +34 660 026 384
> ____________________________________
>
>
> [...]
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone> _______________________________________________
> Exist-open mailing list
>
Exist-open@...
>
https://lists.sourceforge.net/lists/listinfo/exist-open>
--
Adam Retter
eXist Developer
{ England }
adam@...
irc://irc.freenode.net/existdb
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open