title: How to move an attribute and its value from one element to another
body: <p>I have the following XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Orders&gt;
  &lt;Order Weight="1.00"&gt;
  &lt;Items&gt;
  &lt;Item ItemLength="5.00" ItemQty="1"&gt;                    
  &lt;ItemCharge Description="Chair" Amount="5.50"&gt;&lt;/ItemCharge&gt;
  &lt;/Item&gt;
  &lt;/Items&gt;
  &lt;/Order&gt;
  
  &lt;Order Weight="2.50"&gt;
  &lt;Items&gt;
  &lt;Item Length="5.00" ItemQty="1"&gt;                    
  &lt;ItemCharge Description="Chair" Amount="8.50"&gt;&lt;/ItemCharge&gt;
  &lt;/Item&gt;
  &lt;/Items&gt;
  &lt;/Order&gt;
  &lt;/Orders&gt;
  </code></pre>
  
  <p>I need the attributes and values in the "Order" element (e.g. Weight="1.00") moved to the "Item" element. The number of "Order" elements and the value in the "Weight" attribute will vary from time to time. The desired result should look like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Orders&gt;
  &lt;Order&gt;
  &lt;Items&gt;
  &lt;Item ItemLength="5.00" ItemQty="1" Weight="1.00"&gt;                    
  &lt;ItemCharge Description="Chair" Amount="5.50"&gt;&lt;/ItemCharge&gt;
  &lt;/Item&gt;
  &lt;/Items&gt;
  &lt;/Order&gt;
  
  &lt;Order&gt;
  &lt;Items&gt;
  &lt;Item Length="5.00" ItemQty="1" Weight="2.50"&gt;
  &lt;ItemCharge Description="Chair" Amount="8.50"&gt;&lt;/ItemCharge&gt;
  &lt;/Item&gt;
  &lt;/Items&gt;
  &lt;/Order&gt;
  &lt;/Orders&gt;
  </code></pre>
  
  <p>I currently have this XSLT:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"&gt;
  &lt;xsl:output method="xml" indent="yes"/&gt;
  
  &lt;xsl:template match="@*[not(name() = 'Weight')] | node()"&gt;
  &lt;xsl:copy&gt;
  &lt;xsl:apply-templates select="@* | node()"/&gt;
  &lt;/xsl:copy&gt;
  &lt;/xsl:template&gt; 
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>I greatly appreciate your help!!!</p>