[MarkLogic Dev General] max function alternatives UPDATED
Danny Sokolsky
dsokolsky at marklogic.com
Wed Jan 10 18:39:35 PST 2007
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: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of Patrick
Force
Sent: Wednesday, January 10, 2007 1:15 PM
To: general at developer.marklogic.com
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
General at developer.marklogic.com
http://xqzone.com/mailman/listinfo/general
More information about the General
mailing list