|
Re: xhtml compatibility guideline: msg#00050java.enhydra.xmlc
On So, 2002-12-21 at 22:27, Jacob Kjome wrote: > The appropriate mime-type for xhtml is: application/xhtml+xml > the only real way to serve it is to send it as text/html. I figured that out. > I would think you should be able to set the mime type on your own. I would but I thought I could somehow modify the public void buildDocument() { setDocument(lazyDocument, "text/html", "UTF-8"); } which is automagically generated by XMLC in the compiled HTML class. The point is that XMLC has a command line option for changing the encoding (-html:encoding <X>) which changes the third parameter in the setDocument() call above. And now I am suggesting to add a command line option for changing the data type (the second parameter of the setDocument()) globally, without hacking the Enhydra's writeDoc() methods. I believe that anybody trying to play with XHTML will run into this issue and if the XMLC pregenerated functions are to have any useful purpose then it should be possible to fix the data type, just like it's possible to fix the encoding now. Petr
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: xhtml compatibility guideline, Mark Diekhans |
|---|---|
| Next by Date: | Re: xhtml compatibility guideline, Petr Stehlik |
| Previous by Thread: | Re: xhtml compatibility guideline, Jacob Kjome |
| Next by Thread: | Re: xhtml compatibility guideline, Mark Diekhans |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |