Using attribute value to select xml block

Duplicate - re-posted here:

/t/using-attribute-value-to-select-xml-block/10342