title: XSLT: How to change an attribute value during <xsl:copy>?
body: <p>I have an XML document, and I want to change the values for one of the attributes.</p>
  
  <p>First I copied everything from input to output using:</p>
  
  <pre><code>&lt;xsl:template match="@*|node()"&gt;
    &lt;xsl:copy&gt;
      &lt;xsl:apply-templates select="@*|node()"/&gt;
    &lt;/xsl:copy&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>And now I want to change the value of the attribute <code>"type"</code> in any element named <code>"property"</code>.</p>