I tried to write query //*[contains(//*/@*[name() != 'id'], ./@id)] but was unlucky.
Part of a query //*/@*[name() != 'id'] finds sequence of attribute values and I want to find elements from this sequence which contains ./@id but function contains can't operate with sequence and I don't know how to iterate through elements in sequence in XPath (I need to use only XPath).
How can I solve this?
Any help appritiated.