I would like to modify an xml tree by xslt:

Add an attribute to a node, but the new attribute should be the lattest one.

Example:

```
<A>
   <B att1="val1" />
</A>

```

Result:

```
<A>
  <B att1="val" newAtt="newValue"/>
</A>

```

By using the following xsl, the attribute newAtt will be placed as **first** attribute of B.

```
<xsl:template match="@*|node()">
    <xsl:copy>
        <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
</xsl:template>

<xsl:template match="B">
    <xsl:copy>
        <xsl:attribute name="newAtt">newValue</xsl:attribute>
        <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
</xsl:template>

```