What is a request op. Use the following:
<xsl:template match="@*[local-name()!='attr1' and local-name()!='attr2']"> .... </xsl:template>
This is especially useful if you want to change an attribute or add it if it is missing when performing a single copy operation. Another answer does not work in this situation. eg.
... <xsl:copy> <xsl:attribute name="attr1"> <xsl:value-of select="'foo'"/> </xsl:attribute> <xsl:apply-templates select="@*[local-name()!='attr1']|node()"/> </xsl:copy> ...
akostadinov Oct 16 2018-12-16T00: 00Z
source share