title: Change the value of a specific attribute
body: <p>My need is just to repalce the attribute value of "name". If this attribute has "default" as the value, It should be changed to "New". Rest everything should be copy of the input xml. i tried with the below xsl however it is not working.</p>
  
  <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
      &lt;xsl:output method="xml" indent="yes"/&gt;
  
      &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;
  
     &lt;xsl:template match="SORRegion[@name='default']"&gt;
      &lt;xsl:attribute name="name"&gt;
      &lt;xsl:value-of select="'New'"/&gt;
      &lt;/xsl:attribute&gt;  
       &lt;xsl:copy-of select="child::*"/&gt;
      &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Input xml</p>
  
  <pre><code>&lt;RoutingDetails&gt;
      &lt;Service ServiceName="StatementIndicatorsService"&gt;
          &lt;SOR SORname="Globestar"&gt;
              &lt;CountryCode Ctrycd="124"&gt;
                  &lt;SORRegion name="Test"&gt;
                      &lt;ConsumerName name="MYCA"&gt;
                          &lt;AutomationIds&gt;
                              &lt;PreAutoId&gt;
                                  &lt;AutomationId&gt;XA1146A&lt;/AutomationId&gt;
                                  &lt;AutomationId&gt;XA1146A&lt;/AutomationId&gt;
                              &lt;/PreAutoId&gt;
                              &lt;DefaultAutoId&gt;
                                  &lt;AutomationId&gt;XA1146A&lt;/AutomationId&gt;
                              &lt;/DefaultAutoId&gt;
                          &lt;/AutomationIds&gt;
                      &lt;/ConsumerName&gt;
                      &lt;QueueDetails&gt;
                          &lt;QueueManager&gt;MAO1&lt;/QueueManager&gt;
                          &lt;ReplyQueueManager&gt;MAO1&lt;/ReplyQueueManager&gt;
                          &lt;RequestQueue&gt;GSTAR.ICS.DP.DHIPO211.REQUEST&lt;/RequestQueue&gt;
                          &lt;ReplyQueue&gt;ICS.DP.REPLY&lt;/ReplyQueue&gt;
                      &lt;/QueueDetails&gt;
  
                  &lt;/SORRegion&gt;
                  &lt;SORRegion name="default"&gt;
                      &lt;ConsumerName name="MYCA"&gt;
                          &lt;AutomationIds&gt;
                              &lt;PreAutoId&gt;
                                  &lt;AutomationId&gt;XA1146A&lt;/AutomationId&gt;
                                  &lt;AutomationId&gt;XA1146A&lt;/AutomationId&gt;
                              &lt;/PreAutoId&gt;
                              &lt;DefaultAutoId&gt;
                                  &lt;AutomationId&gt;XA1146A&lt;/AutomationId&gt;
                              &lt;/DefaultAutoId&gt;
                          &lt;/AutomationIds&gt;
                      &lt;/ConsumerName&gt;
                      &lt;QueueDetails&gt;
                          &lt;QueueManager&gt;MAO1&lt;/QueueManager&gt;
                          &lt;ReplyQueueManager&gt;MAO1&lt;/ReplyQueueManager&gt;
                          &lt;RequestQueue&gt;DEFAULT.REQUEST&lt;/RequestQueue&gt;
                          &lt;ReplyQueue&gt;ICS.DP.REPLY&lt;/ReplyQueue&gt;
                      &lt;/QueueDetails&gt;
  
                  &lt;/SORRegion&gt;
              &lt;/CountryCode&gt;
          &lt;/SOR&gt;
      &lt;/Service&gt;
  &lt;/RoutingDetails&gt;
  </code></pre>