[MarkLogic Dev General] max function alternatives UPDATED

Patrick Force patrickf at arc90.com
Wed Jan 10 13:15:24 PST 2007


A correction, this is the final XQuery concept attempted:

max(for $i in cts:element-attribute-values(xs:QName 
('RootElement'),xs:QName('index'))
     return xs:int($i))

And a few other updates:

I've removed the namespace uris as neither the parent or attribute  
are part of a namespace.

And for a little more clarification on the error, it appears as  
though the attribute index is not found:

SystemID: null
Location: 1:0
Description: XDMP-ELEMATTRRIDXNOTFOUND: cts:element-attribute-values 
(xs:QName("RootElement"), xs:QName("index")) -- Element-attribute  
string/uri range index not found on: xs:QName("RootElement") xs:QName 
("index") 



More information about the General mailing list