I have an XML document, and I want to change the values for one of the attributes.
First I copied everything from input to output using:
I had a similar case where I wanted to delete one attribute from a simple node, and couldn't figure out what axis would let me read the attribute name. In the end, all I had to do was use
@*[name(.)!='AttributeNameToDelete']