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: <[EMAIL PROTECTED]> To: "Jakarta Commons Users List" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
