[Home] [By Thread] [By Date] [Recent Entries]
On 4/24/07, Kai Weber <weber@xxxxxxxxxxxxx> wrote:
The target document should look like Is it possible to achieve the wanted result and omit the xmlns declaration in each element?
Then it's not possible. As this is not a valid XML document. The XSLT processor will give an error: Error reported by XML parser: The prefix "c" for element "c:choose" is not bound. There has to be a namespace declaration in the output XML, corresponding to prefix, "c". So the output,
<ul>
<c:choose xmlns:c="http://java.sun.com/jsp/jstl/core">
foo
</c:choose>
</ul>is quite correct. -- Regards, Mukul Gandhi
|

Cart



