Hello all

We have the following (simplified) example documents:

<cat id="abc123" alt-id="zyx987" xmlns="blah"> .. </cat>

<dog id="aaa999" alt-id="bbb888" xmlns="blah"> .. </dog>

<elephant id="xxxxxx" alt-id="yyyyyy" xmlns="blah"> .. </elephant>

In other words, our documents are all in the same namespace, they all 
have attributes @id and @alt-id, but the root node might be many 
different types (I've specified 'cat', 'dog', 'elephant' here but in 
reality there are not just 3, there are potentially dozens).

We'd like to give our users the ability to search this data with queries 
such as

id:aaa999

or

alt-id:zyx987

but I'm having trouble composing a valid set of Search constraint 
options to achieve this.  As far as I can tell, for both value 
constraints and word constraints I'd need to specify an element name as 
well as the attribute name, and obviously in this case there could be 
many different element names.


Any suggestions gratefully received!


TIA
Iain Tatch
Senior software engineer
BBC FM Publishing Services Editorial Metadata

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

Reply via email to