commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelly Chen" <>
Subject [jelly]Using Jelly to output HTML content
Date Tue, 07 Jan 2003 19:16:31 GMT
  I am investigating output HTML contents using Jelly. The quick 
experiment that I have done is taking a existing HTML page and wrap 
around its content with Jelly. For example:
<?xml version="1.0" encoding="utf8"?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:x="jelly:xml" 
.... HTML content

I ran into several XML parsing error in this test.
1. OK in HTML: <img src="./dot.gif" height="5" width="20">
Error in XML, because <img> is not closed. There are several other tags that are causing
this problem like: <br>, <meta ... >, etc. To work around this issue, I artificially
close the tag. Browser seems still to be able to understand this afterwards. For example,
<br> becomes <br/>.

2. The second class of problems: some usage of HTML keyword break XML parsing completely.
For example:
<td nowrap ...>

For this case, I don't have a work around that can preserve the original HTML and also makes
Jelly parser happy. 

Question 1: Has anyone used Jelly to output a sophisticated HTML page? The example in tutorial
is way too simple. Suggestions on how to approach this kind of issue are welcome.

Question 2: Does Jelly XML parser use any sort of DTD?

Kelly Chen                       Tumbleweed Communication Corp.
T:650-216-2043                   700 Saginaw Drive
F:650-216-2565                   Redwood City, CA 94063

View raw message