Re: using character entities and JSF XML

2004-09-18 Thread Eric Suen
I didn't know that XML required internal document types to declare the root element. see bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=28207 seems tomcat guys like this stupid feature very much, even it is very easy add an option to disable those kind validation in production env. I

question about jsp:element and jsp:attribute

2004-04-06 Thread Eric Suen
Hi Is the following code correct? jsp:element name=fo:table-column jsp:attribute name=column-width jsp:expressionwidths[i]/jsp:expression /jsp:attribute jsp:scriptlet if (bgColors[i] != null) { /jsp:scriptlet jsp:attribute name=background-color

Question about tomcat 5.0.19 jsp XML syntax and Validation and output?

2004-03-18 Thread Eric Suen
Hi, I have a jspx file like this: | ?xml version=1.0? | fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; | xmlns:jsp=http://java.sun.com/JSP/Page; | | fo:blocklt;fo:inlinegt;/fo:block | fo:block![CDATA[fo:inline]]/fo:block | /fo:root and I try tomcat 5.0.19 resin 3.0.6, and the

Question about jspx and CDATA

2004-03-16 Thread Eric Suen
Hi, I have a file like this: | ?xml version=1.0? | fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; | xmlns:jsp=http://java.sun.com/JSP/Page; | | fo:blocklt;fo:inlinegt;/fo:block | fo:block![CDATA[fo:inline]]/fo:block | /fo:root and the output is: | ?xml version=1.0

the problem of jsp:include / in XML view page(tomcat 5.0.19)

2004-03-11 Thread Eric Suen
I have two file hello.jspx world.jspx like: hello.jspx: | ?xml version=1.0? | fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; | xmlns:jsp=http://java.sun.com/JSP/Page; | jsp:include page=world.jspx/ | /fo:root world.jspx: | fo:block

Question about Jasper Configuration - largefile options in tomcat 5

2004-03-09 Thread Eric Suen
Hi, I just read http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html and found something like this: largefile - Should we store the static content of JSP pages in external data files, to reduce the size of the generated servlets? true or false, default false. but that option is

Re: Entity Declarations in JSP/XML

2004-03-08 Thread Eric Suen
If you really want add internal entity declarations in you jspx, maybe you should enter a feature request at http://issues.apache.org/bugzilla/. And you can change the org.apache.jasper.compiler.JspDocumentParser source, modify the startDTD(...) method to fit your need. and if you don't want to

Re: Entity Declarations in JSP/XML

2004-03-05 Thread Eric Suen
Hi, Long time ago, I ask the same question, and got no answer. and I found these in JavaServer Pages Specification 2.0: JSP.6.2.4 JSP Document Validation A JSP Document with a DOCTYPE declaration must be validated by the container in the translation phase. Validation errors must be

some question about JSPX and the output format

2004-02-02 Thread Eric Suen
Hi, I have a jspx like this: ?xml version=1.0 encoding=UTF-8? !DOCTYPE fo:root [ !ENTITY nbsp #160; ] fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:jsp=http://java.sun.com/JSP/Page; test name=test value=test/test /fo:root it can be parsed by xerces2.6, but when I run it,