title: Changing the value of an attribute of the document element in an xml file using XSLT
body: <p>I am trying to change the value of an attribute of the document element in an XML file using XSLT transformation. For example,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ns1:xmlgMsc xmlns:ns1="org.example" formatVersion="1.0" name="BlaBlah" pathName="/system/abc.xml" writtenBy="Me me me"&gt;
     &lt;ns1:blockRoot someAtt="0" anotherAtt="1" /&gt;
  &lt;/ns1:xmlgMsc&gt;
  </code></pre>
  
  <p>Here I would like to change the "pathName" to some another path (say "/local/xyz.xml"). Can somebody please provide the syntax or point me into the right direction for doing this in XSLT?</p>
  
  <p>Thanks in advance!</p>