Category Archives: HTTP

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.

Caching XML data at install time

The W3C web server is spending most of its time serving DTDs to various bits of XML processing software. While XSLT processors such as xsltproc and Xalan have no technical dependency on the XHTML DTDs, I suspect they're used with XHTML enough that shipping copies of the DTDs along with the XSLT processing software is a win all around.

Character encoding in HTML

In this first issue in the cookbook for the web series, we look at character encoding, or "charset"s. Discussing the ingredients, giving a reliable recipe for the detection of character encodings in (x)html, and a quick tip for web authors on an html diet.