On 9/19/07, broken connection <[EMAIL PROTECTED]> wrote: > Can someone please suggest anyway to resolve this?? This is strange.
<web-app xmlns="http://java.sun.com/xml/ns/javaee"> <web-app> Are two different XML elements. The first belongs to an XML namespace, the second doesn't. XSL is namespace-aware, and thus won't match <web-app xmlns="http://java.sun.com/xml/ns/javaee"> when you tell it to match <web-app>, and vice versa. You could match both, but the problem is that the elements you want to insert need to belong to the "proper" namespace too. <web-app xmlns="http://java.sun.com/xml/ns/javaee"> not only says that the 'web-app' element belongs to the "http://java.sun.com/xml/ns/javaee" namespace, it also sets the "default" namespace. This means that all elements enclosed in 'web-app' also belong to this namespace, while the elements you want to insert, coming from another XML file, also belong to some namespace. XSL doesn't do a "textual" insert, but a "namespace-aware" insert in this case. Sorry if the above is confusing. XSL and XML namespaces both have a learning curve to them. --DD --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
