Hi,
The wiki page at http://docs.basex.org/wiki/Java_Bindings contains the following example:
Q{java:java.lang.Math}cos(xs:double(0))
which if I am right is the old syntax for EQNames, which should be now:
"java:java.lang.Math":cos(xs:double(0))
Just in case. Regards,
Hi Florent,
The wiki page at http://docs.basex.org/wiki/Java_Bindings contains the following example:
Q{java:java.lang.Math}cos(xs:double(0))
which if I am right is the old syntax for EQNames, which should be now:
"java:java.lang.Math":cos(xs:double(0))
thanks for your mail. It’s actually the other way round: previous versions of the spec. proposed the Clark notation (using quotes), but the syntax was changed to the Q{...} syntax [1], in order to avoid collisions with the future map syntax of XQ31: { "x" : "y" }.
Best, Christian
[1] http://www.w3.org/TR/xquery-30/#prod-xquery30-BracedURILiteral
Arg, my offline copy of the internal draft of XQuery was not up-to-date. Note to myself: always double-check the latest version when you write emails while traveling abroad... (note also I am pleased to hear that, because I was going to ask to reopen this, as it makes more sense to me as it is defined now :-P)
Sorry for the confusion. Regards,
basex-talk@mailman.uni-konstanz.de