[xmlc] XHTML output?
[email protected] Fri, 02 Sep 2005 10:18:56 +0200
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format...
------------=_1125649143-27247-52
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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 headers in my html files, the xmlc interface generation chokes. What I mean by "proper xhtml" is a file that starts with...
---
<?xml version="1.0" encoding="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="http://www.w3.org/1999/xhtml">
---
...and then actually holds up to xhtml validation.
When I outputOptions.setFormat(OutputOptions.FORMAT_XML), it comes closest, properly generating the xml version line at the top, but it does stupid things like taking:
---
<div id="rowToRepeat">
<hr/>
<div id="dataHere">data</div>
</div>
---
and, trying to be intelligent, change it to:
---
<div id="rowToRepeat">
<hr>
<div id="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?
Erik
------------=_1125649143-27247-52
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
------------=_1125649143-27247-52--