W3C

All posts by Bert Bos

Serving XHTML with math: a recipe for Apache

The future version 5 of HTML will allow math in a Web page, but the current version 4 does not. You can use XHTML instead, but not all Web clients understand it. Here is a recipe for the Apache Web server to make it return XHTML as HTML to such clients. That HTML will be invalid, of course, because it contains math, but the non-math parts are still handled. It's not as good a solution as having two versions of a page, but it's cheap.
More…