I\'m trying to transform an XML document and modify the attributes of single element but the transform is not getting applied if the root element has a namespace attribute. Simp
The element you're trying to match is in a namespace (the default namespace), so you need to properly use namespaces in your XSLT: