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:
<xsl:template match='@*|node()'> <xsl:copy> <xsl:apply-templates select='@*|node()'/> </xsl:copy> </xsl:template>
And now I want to change the value of the attribute 'type' in any element named 'property'.
Tested on a simple example, works fine:
Edited to include Tomalak’s suggestion.