This is not accurate:

> The problem was caused by the third argument being an empty sequence
instead of an empty string:
 >  cts:element-attribute-values(xs:QName("paragraph"),xs:QName("hash-id"),
==> () <== ,"item-frequency",$q)
> I'm too new to XQuery to understand why that would result in the exception
I got.

I forgot to specify a collation as Kelly says. With () as third argument,
the exception is:

-- No element-attribute range index for QName("", "paragraph") QName("",
"hash-id")

When I change () to "", the exception changes to:

 -- No string element-attribute range index for QName("", "paragraph")
QName("", "hash-id") http://marklogic.com/collation/

Which reminded me to specify a collation. With the collation specified, both
"" and () work correctly.

Laurens
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to