RE: [xsl] Generating JSP/JSTL

Subject: RE: [xsl] Generating JSP/JSTL
From: "Kai Weber" <weber@xxxxxxxxxxxxx>
Date: Wed, 25 Apr 2007 15:42:29 +0200
> 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

Current Thread