xsl-list
[Top] [All Lists]

RE: [xsl] Generating JSP/JSTL

2007-04-25 06:42:55
It seems a common misunderstanding the repeated namespace declarations

are bad, or that they change the XML, the semantics or whatever. They 
don't. Even if you repeat all namespace declarations, or 
several rubbish declarations of namespaces you don't use, it won't
change the meaning of the XML, nor will it change the way automated
tools, parsers or else will deal with it. In short, the best advice
you
can get is: leave the extra namespace declarations in place and do not
worry about them.

Seems you are right, thank you. My document now looks something
like this and it works for now.

<jsp:root       
   xmlns:jsp="http://java.sun.com/JSP/Page";     
   version="2.0">
<ul>
<li xmlns:c="http://java.sun.com/jsp/jstl/core";
xmlns:jsp="http://java.sun.com/JSP/Page";>
<c:out value="foo"/>
</li>
<li xmlns:c="http://java.sun.com/jsp/jstl/core";
xmlns:jsp="http://java.sun.com/JSP/Page";>
<c:out value="baz"/>
</li>
</ul>
</jsp:root>

Regards, Kai

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>