logo       

Re[2]: XMLC decided to change the HTML structure: msg#00031

java.enhydra.xmlc

Subject: Re[2]: XMLC decided to change the HTML structure

Hello Petr,

Note also that you will have to use the OutputOptions to set the
doctype public and system id's. for instance....

OutputOptions oo =
HTMLFormatter.getDefaultOutputOptions();

oo.setOmitDocType(false);
oo.setPublicId("-//W3C//DTD XHTML 1.0 Strict//EN");
oo.setSystemId("http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";);
oo.setDropHtmlSpanIds(false);


Aside...
I haven't looked much into the XHTML stuff, but there might be
an XHTMLFormatter.getDefaultOutputOptions(). It would be logical.
Seems to me, in that case, that the default for setDropHtmlSpanIds
should be false since IE4, the problem browser, doesn't understand XHTML
anyway.


Jake


Tuesday, December 17, 2002, 2:13:43 PM, you wrote:

PS> On Út, 2002-12-17 at 20:46, David Li wrote:
>> Peter,
>>
>> Do not use Tidy to compile XHMTL, use the XHTML module. It's
>> -domfactory and the XHTML uses org.enhydra.xml.xhtml.XHTMLDomFactory.

PS> Wow, I didn't know about this.

>> The error is probably cause by Tidy trying to correct HTML because your
>> input is closed using /> instead of >.

PS> I thought so as well so I removed the "/" from "/>" but it didn't help.
PS> Later I tried to replace the "<h2>" with something else and even later I
PS> found out that there was "<form>" missing. After adding the <form> it
PS> started to work better, but it's still not OK.

PS> Hopefully the XHTML module will fix all my current issues.

PS> Thanks a lot!

PS> Petr



PS> _______________________________________________
PS> XMLC mailing list
PS> XMLC@xxxxxxxxxxx
PS> http://www.enhydra.org/mailman/listinfo.cgi/xmlc



--
Best regards,
Jacob mailto:hoju@xxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise