commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@multitask.com.au
Subject Re: [jelly]Using Jelly to output HTML content
Date Tue, 07 Jan 2003 22:37:24 GMT
For html output, see the core:file tag: 
http://jakarta.apache.org/commons/sandbox/jelly/tags.html#core:file

Especially the outputMode attribute.


Paul Libbrecht <paul@activemath.org> wrote on 08/01/2003 09:07:33 AM:

> 
> On Mardi, janv 7, 2003, at 20:16 Europe/Brussels, Kelly Chen wrote:
> > 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 2. The second class of problems: some usage of HTML keyword 
> > break XML parsing completely. For example:
> > <td nowrap ...>
> 
> For this the practice is to use XHTML in your jelly source (or whatever 
> XML) then use an XML outputter "for html". This is the way most 
> stylesheet processor work: you have an html output-format in xsltproc, 
> xalan, saxon...
> 
> > <?xml version="1.0" encoding="utf8"?>
> > <j:jelly trim="false" xmlns:j="jelly:core" xmlns:x="jelly:xml" 
> > xmlns:html="jelly:html">
> > .... HTML content
> > </j:jelly>
> 
> I am not sure there is an HTML output method for Jelly, it would not be 
> hard to write, presumably using a Xerces or Xalan for just that must be 
> doable (doesn't NeckoHTML include this? it should be a tag as well!).

--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au

Mime
View raw message