Re: [xmlc] XHTML output?
Jacob Kjome <[email protected]> Fri, 2 Sep 2005 09:51:47 -0500
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format... ------------=_1125672751-27247-148 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Quoting [email protected]: > Me again. :-) > > I'm sure I'm missing something really obvious, but I can't, for the life = of > me, figure out how to get xmlc to output proper xhtml. > > I've tried just about every combination of booleans in OutputOptions (yes, > including "setEnableXHTMLCompatibility(true)"), and if I put xhtml header= s in > my html files, the xmlc interface generation chokes. What I mean by "pro= per > xhtml" is a file that starts with... > --- > <?xml version=3D"1.0" encoding=3D"iso-8859-1"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns=3D"http://www.w3.org/1999/xhtml"> > --- > ...and then actually holds up to xhtml validation. > > When I outputOptions.setFormat(OutputOptions.FORMAT_XML), it comes closes= t, > properly generating the xml version line at the top, but it does stupid > things like taking: > --- > <div id=3D"rowToRepeat"> > <hr/> > <div id=3D"dataHere">data</div> > </div> > --- > and, trying to be intelligent, change it to: > --- > <div id=3D"rowToRepeat"> > <hr> > <div id=3D"dataHere">data</div> > </hr> > </div> > --- > > It's like it's not using xhtml-intelligent versions of the dom element > classes or something. Has anyone got xmlc generating proper xhtml? > I'll have to see if I can reproduce this when I get home from work. Haven't seen that happen, personally. What version of XMLC are you using? Also, w= hat DOMFactory are you using? One of these?... http://cvs.forge.objectweb.org/cgi-bin/viewcvs.cgi/xmlc/xmlc/xmlc/modules/x= html/src/org/enhydra/xml/xhtml/ I won't be able to comment more today until I get home. Jake > Erik > > ------------=_1125672751-27247-148 Content-Type: text/plain; name="message-footer.txt" Content-Disposition: inline; filename="message-footer.txt" Content-Transfer-Encoding: 8bit -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws ------------=_1125672751-27247-148--