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") _______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to