You can make it simple cts: element-attribute-value-query
cts:element-attribute-value-query( xs:QName('element'), xs:QName('attribute'), '*'))
If you did not set the wildcard lookup to true in the database, you also need to provide a wildcard lookup explicitly in cts: element-attribute-value-query
cts:element-attribute-value-query( xs:QName('element'), xs:QName('attribute'), '*', ("wildcarded")))
For more information about this, you can check the cts: element-attribute-value-query page
source share