[MarkLogic Dev General] Attribute-range-index for xml:lang
Curtis Wilde
galvorn at gmail.com
Mon Mar 7 12:21:22 PST 2011
I actually spotted my error. I was trying to add "xml:lang" as an index
instead of just "lang" with the namespace.
On Mon, Mar 7, 2011 at 11:30 AM, Damon Feldman
<Damon.Feldman at marklogic.com>wrote:
> For the benefit of the archive, note that you can query for any attribute
> using cts:element-attribute-value-query() without creating an index.
>
> Adding a range index has benefits such as cts:element-attribute-values()
> support, but all XML structure is fully indexed by default, without schemas
> or specifically-configured indexes.
>
> What's the error? For an attribute range index you need to index the parent
> qname + attribute qname combination.
>
> Damon
> ------------------------------
> *From:* general-bounces at developer.marklogic.com [
> general-bounces at developer.marklogic.com] On Behalf Of Curtis Wilde [
> galvorn at gmail.com]
> *Sent:* Monday, March 07, 2011 1:09 PM
> *To:* General Mark Logic Developer Discussion
> *Subject:* [MarkLogic Dev General] Attribute-range-index for xml:lang
>
> I need to quickly query for documents of a particular language. Normally
> for something like this, I'd create an attribute-range-index, then do a
> cts:element-attribute-values query, or something similar to find documents
> with the attributes I'm interested in. The "xml:lang" attribute is giving me
> some trouble though.
>
> I can't create an index without a namespace because of the ":" but I get
> an error when I try to create an index using the namespace "
> http://www.w3.org/XML/1998/namespace"
>
> Any suggestions?
>
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20110307/a3597057/attachment.html
More information about the General
mailing list