commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Trimmer" <>
Subject Re: [jelly]Using Jelly to output HTML content
Date Wed, 08 Jan 2003 01:44:12 GMT
WHen I use the outputMode of core:file and explicitly set to XML, it still
expands empty tags. Everything in CVS source shows it tries its damnest to
produce XML output, but the empty tags still expand. So it this an
underlying DOM4J error? How can I specify setExpandEmptyElements(false) like
with JDOM?

Todd Trimmer

----- Original Message -----
From: <>
To: "Jakarta Commons Users List" <>
Sent: Tuesday, January 07, 2003 4:37 PM
Subject: Re: [jelly]Using Jelly to output HTML content

For html output, see the core:file tag:

Especially the outputMode attribute.

Paul Libbrecht <> 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message