Peter,
Do not use Tidy to compile XHMTL, use the XHTML module. It's
-domfactory and the XHTML uses org.enhydra.xml.xhtml.XHTMLDomFactory.
The error is probably cause by Tidy trying to correct HTML because your
input is closed using /> instead of >.
David
On Wednesday, Dec 18, 2002, at 03:31 Asia/Shanghai, Petr Stehlik wrote:
Hi,
the HTML guy I talk about in another mail created a page that looked
well when viewed as static HTML in all current browsers. It's XHTML 1.0
transitional, checked with http://validator.w3.org/ (no errors, no
warnings, perfectly valid).
I then compiled it with XMLC. No errors, no warnings.
At last Enhydra created the dynamic page and sent it to the browser.
The
result was a complete mess, both visually and also the structure of the
HTML document has changed.
For example consider the following piece of HTML (writing from memory
so
it might not be precise):
<h2 class="search">
Search <input id="search" name="search" type="text"
size="15" value="" />
</h2>
<div class="spacer"> </div>
Enhydra generates the dynamic page _without_ the closing </h2> -
actually it generated it but much much later in the page. So the
resulting structure was invalid and also visually it was messed up.
Is it possible that the XMLC can compile HTML without any warnings but
decide not to preserve the original DOM? Basically destroying the page?
Petr
_______________________________________________
XMLC mailing list
XMLC@xxxxxxxxxxx
http://www.enhydra.org/mailman/listinfo.cgi/xmlc
|