Fundamentally, these are different elements with different QNames. You will have to create different range indexes because they are different QNames.
The lexicon APIs do take a sequence of QNames, though, so you can pass in both QNames which gets you part of where you want to be (probably not all the way). But if you want them to really be the same QName, then you should transform one of them to use the QName of the other. -Danny From: [email protected] [mailto:[email protected]] On Behalf Of Lamont, Joseph J (IS) Sent: Monday, March 21, 2011 1:11 PM To: [email protected] Subject: [MarkLogic Dev General] Support For Documents With Multiple Namespace Versions Hello, I have an existing set of documents with a specific namespace URI. This set of documents has a set of range indexes. I now need to support documents with a new version of the namespace URI. I would like to use the same range index on both documents since they are for the most part the same. Is there a way to create a range index using namespace wildcards other than '*'. A simple example of what I am trying to do is listed below. Previous Documents <book:info xmlns:book="http://example.com/book/1.0"> <book:title>Old Book</book:title> <book:author>John Doe</book:author> <book:publisher> <pub:info xmlns:pub="http://example.com/<http://example.com/book/1.0>publisher"> <pub:title>Joes Publishing</pub:title> </pub:info> <book:publisher> </book:info> New Documents <book:info xmlns:book="http://example.com/book/2.0"> <book:title>New Book</book:title> <book:author>Jane Smith</book:author> <book:newInfo>Some New Info</book:newInfo> <book:publisher> <pub:info xmlns:pub="http://example.com/<http://example.com/book/1.0>publisher"> <pub:title>Joes Publishing</pub:title> </pub:info> <book:publisher> </book:info> The current range index is built using. admin:database-range-element-index("string", "http://example.com/book/1.0", "title", "http://marklogic.com/collation/", fn:false()) would like to use something like admin:database-range-element-index("string", "http://example.com/book/*", "title", "http://marklogic.com/collation/", fn:false())
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
