cts:element-query(xs:QName("elm"),cts:and-query(()))
will give all the fragments where the element elm is present.
Similarly if I want all documents where an attribute(say atr) is present under elm what would I have to do?
cts:element-attribute-value-query()
requires that I pass a value to match against the attribute value. But I want to check only the existence of the attribute irrespective of what value it contains.