[Pmwiki-users] Valid XHTML generation

Patrick R. Michaud pmichaud at pobox.com
Wed Jun 4 10:48:26 CDT 2003

On Wed, Jun 04, 2003 at 10:10:30AM -0400, Kirill Lapshin wrote:
> Well, I see quite a lot of sites switching to XHTML, so it should be
> supported quite well by at least 99% of the browsers. Also keep in mind that
> to be truly XHTML compatible, you have to serve pages as text/xml MIME, not
> text/html. 

Ah yes, good point.  I've changed the pmwiki-xhtml test site to use
the text/xml MIME type so we can see its impact and get the advantage
of having the browsers do syntax checking.

> I would suggest to use text/html by default but give user ability to set
> mime type and DTD from local.php. For instance I would use text/xml mime and
> supply url to special MathML enabled DTD.


> It might be tricky though to make sure you generate valid xhtml all the
> time. Closing tags is one problem, not allowing situations like
> <p><ul></p></ul> is the other.

Yup, this is indeed the tricky part.  I think I've already covered at least
90% of the cases--it's that other 10% I'm worried about, and for which I
need help.  :-)

More in a bit.


More information about the pmwiki-users mailing list