Hi Patrick, Did you reindex your database or reload the content after adding the range index? You won't be able to use cts:element-attribute-values until your database has completed indexing. I don't know if you have a lot of content or not.
To reindex the database, in the database config page page of the Admin Interface, make sure the "reindex enable" button is set to true. Also, are you using 3.1-4? -Danny -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Force Sent: Wednesday, January 10, 2007 1:15 PM To: [email protected] Cc: Avi Flax Subject: [MarkLogic Dev General] max function alternatives UPDATED 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 _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
