Is there anyway in XPATH to reference any of:
attr, op-attr, src-attr, or dest-attr

I usually set local variable to the value, then do my XPATH on it, and
reference $LocalVariableName to get at it.

Be nice if we could skip that step.