I am trying to change the value of an attribute of the document element in an XML file using XSLT transformation. For example,
<?xml version="1.0" encoding="UTF-8"?>
<ns1:xmlgMsc xmlns:ns1="org.example" formatVersion="1.0" name="BlaBlah" pathName="/system/abc.xml" writtenBy="Me me me">
<ns1:blockRoot someAtt="0" anotherAtt="1" />
</ns1:xmlgMsc>
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?
Thanks in advance!