On 28 September 2011 18:11, Konstantin Kolinko <knst.koli...@gmail.com>wrote:
>
> 1) I replaced opening svg tag with:
>
> <svg xmlns="http://www.w3.org/2000/svg";
>     width="450" height="500" viewBox="0 0 450 500"
>     xmlns:c="http://java.sun.com/jsp/jstl/core";
>     xmlns:fn="http://java.sun.com/jsp/jstl/functions";
>     xmlns:jsp="http://java.sun.com/JSP/Page";
>     xmlns:foo="bar">
>  <jsp:directive.page contentType="image/svg+xml" />
>  <title>JSP 2.0 JSPX</title>
> <foo:x>Bar!</foo:x>
>
> Note xmlns declaration and foo:x element.
>
> The page,
> http://localhost:8080/examples/jsp/jsp2/jspx/textRotate.jspx?name=JSPX
> renders correctly and gives me:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <svg xmlns:foo="bar" xmlns="http://www.w3.org/2000/svg"; viewBox="0 0
> 450 500" height="500" width="450"><title>JSP 2.0
> JSPX</title><foo:x>Bar!</foo:x><g id="testContent">(....)
>
>
> With correct xmlns:foo="bar" and <foo:x>Bar!</foo:x>.
>

This is what isn't working on Tomcat 6.0.32 for me. Note additionally that "
http://www.w2.org/2000/svg"; should be a taglib uri too to fully mirror my
example. Perhaps I'm being too optimistic that the namespace attribute
'xmlns' would be made available to the custom tag??

Reply via email to