[xquery-talk] Question on expected XQuery return per standards

G. Ken Holman gkholman at CraneSoftwrights.com
Fri Mar 27 20:53:15 PST 2009

At 2009-03-27 15:35 -0400, David Sewell wrote:
>For MarkLogic (4.0-4), sets 1 and 2 return the same as set 5 (only p2).
>In other words, [position() eq 2] is parsed differently from [2].

But 3.2.2(1) reads:

   "If the value of the predicate expression is a singleton atomic
    value of a numeric type or derived from a numeric type, the
    predicate truth value is true if the value of the predicate
    expression is equal (by the eq operator) to the context position,
    and is false otherwise. [Definition: A predicate whose predicate
    expression returns a numeric type is called a numeric predicate.]

>Before filing a bug report I wanted more input, as this seems to be an
>area where informed people disagree about the standard. So I'm
>temporarily resisting my default behavior of assuming that whatever
>Michael Kay says must be true. :-)

:{)}  But that is always a good place to start!

. . . . . . . . .  . Ken

XQuery/XSLT/XSL-FO training in Los Angeles (New dates!) 2009-06-08
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman at CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/q/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/q/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

More information about the talk mailing list