Mantis - Resin
Viewing Issue Advanced Details
1646 minor always 03-14-07 09:11 06-05-07 15:44
urutora90  
ferg  
normal  
closed 3.0.23  
fixed  
none    
none 3.1.2  
0001646: JSTL x: namespace attribute prevents page to render correctly
The document below does not yield any output (it should print "hello, world!"). Once the namespace attribute ("xmlns") of the "html" element is removed, the page renders correctly. (JDK 1.5, WinXP, Resin-Pro 3.0.23)

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root
    xmlns:jsp="http://java.sun.com/JSP/Page" [^]
    xmlns:x="http://java.sun.com/jsp/jstl/xml" [^]
    xmlns:c="http://java.sun.com/jsp/jstl/core" [^]
    version="2.0">
    <jsp:directive.page contentType="text/html; charset=UTF-8"/>
    <html xmlns="http://www.w3.org/1999/xhtml"> [^]
        <body>
            <x:parse var="hello">
                <foo><bar>hello, world!</bar></foo>
            </x:parse>
            <x:forEach select="$hello/foo/bar">
                <x:out select="." />
            </x:forEach>
        </body>
    </html>
</jsp:root>

Notes
(0002013)
ferg   
06-05-07 15:44   
jsp/1g59