|
Re: [xmlc] XHTML output?: msg#00017java.enhydra.xmlc
Quoting i_am_erik@xxxxxxxxx: > 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? > 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, what DOMFactory are you using? One of these?... http://cvs.forge.objectweb.org/cgi-bin/viewcvs.cgi/xmlc/xmlc/xmlc/modules/xhtml/src/org/enhydra/xml/xhtml/ I won't be able to comment more today until I get home. Jake > Erik > > -- You receive this message as a subscriber of the xmlc@xxxxxxxxxxxxx mailing list. To unsubscribe: mailto:xmlc-unsubscribe@xxxxxxxxxxxxx For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [xmlc] XHTML output?, i_am_erik |
|---|---|
| Next by Date: | Re: [xmlc] XHTML output?, Erik Rasmussen |
| Previous by Thread: | [xmlc] XHTML output?, i_am_erik |
| Next by Thread: | Re: [xmlc] XHTML output?, Erik Rasmussen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |