[MarkLogic Dev General] Upper limit using xdmp:document-set-quality?

Michael Blakeley michael.blakeley at marklogic.com
Fri Mar 28 12:43:41 PST 2008


Mattio Valentino wrote:
> Just checking on this one.  Is there an upper limit to the value set
> by xdmp:document-set-quality?  I didn't see any mention of a limit in
> the Developer's Guide or the function reference.

The limits are documented, but indirectly:

http://developer.marklogic.com/pubs/3.2/apidocs/UpdateBuiltins.html#document-set-quality 
says that $quality is xs:int, and http://www.w3.org/TR/xmlschema-2/#int 
says:

int is ·derived· from long by setting the value of ·maxInclusive· to be 
2147483647 and ·minInclusive· to be -2147483648. The ·base type· of int 
is long.

Let's test it:

xdmp:document-insert(
   'test.xml', <test/>, xdmp:default-permissions(), 
xdmp:default-collections(),
   2147483647
)
=> ()

xdmp:document-get-quality('test.xml')
=> 2147483647

-- Mike



More information about the General mailing list