commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Trimmer" <baby.d...@gte.net>
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: <dion@multitask.com.au>
To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
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:
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

--
To unsubscribe, e-mail:
<mailto:commons-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:commons-user-help@jakarta.apache.org>


Mime
View raw message