Old EQName syntax

Saturday, 23 March 2013 · 3 messages · last reply 24 Mar 2013
FG
Florent Georges23 Mar 2013 22:11 #
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,
CG
Christian Grün24 Mar 2013 19:57 #
Hi Florent,
Quoted text · Florent Georges · 9 lines
> 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
FG
Florent Georges24 Mar 2013 20:06 #
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,
-- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ ----- Mail original -----
Quoted text · Christian Grün · 29 lines
> De : Christian Grün > À : Florent Georges > Cc : BaseX Talk > Envoyé le : Dimanche 24 mars 2013 19h57 > Objet : Re: [basex-talk] Old EQName syntax > > 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 >

⚡Generated with XQuery