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
xmlns works such that all nodes inherit the xmlns attribute(s) from their parent. What that means is, unless otherwise specified, when your document root contains
xmlns="http://www.oracle.com/biee/bi-domain"
it applies that namespace to all of the sub tree.
So you're actually looking for a SecurityOptions
tag with a namespace of "http://www.oracle.com/biee/bi-domain"
.
This means that your XSLT will actually need to have something like this:
at the top and the template match would look like this:
Note the tmp: matches the xmlns:tmp; this is called a namespace prefix and allows xml to match the small string of tmp
to the large string of "http://www.oracle.com/biee/bi-domain"
.