JSP spec 2.1:
When including a JSP document (written in the XML syntax), in the resulting
XML View of the translation unit the root element of the included segment must
have the default namespace reset to "". This is so that any namespaces
associated with the empty prefix in the including document are not carried
over to the included document.
JSP10.3.3 has the following, but I don't see the "clear out" part, is
this a typo or just me confused???
This example illustrates the need to clear out the default namespace
when doing
a translation-time include of a JSP document:
<!-- a.jspx -->
<elementA>
<tagB xmlns="http://namespace1">
<jsp:directive.include file="b.jspx" />
</tagB>
</elementA>
<!-- b.jspx -->
<elementC />
The resulting XML View for these two JSP documents is:
<jsp:root>
<elementA>
<tagB xmlns="http://namespace1">
<elementC /> <-------- should this be <elementC xmlns=""/> ??????????
</tagB>
</elementA>
</jsp:root>A