Struggling to work this one out; I have a (Tomcat6 ‘Context.xml’) default document, which is essentially this:
<Context>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>
And I want to add ‘Resource’ and ‘Environmment as children of the outermost Context node; so I end up with:
<Context>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<Resource name="abc"[...]/>
<Environment name="xyz"[...]/>
</Context>
Using XSLT 1.0.
(I also would like to avoid the assumption that the node ‘WatchedResource’ is present in the document.)
should suffice.