[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU recode 3.6: XHTML support

From: Kevin Rodgers
Subject: GNU recode 3.6: XHTML support
Date: Fri, 9 Jan 2004 12:36:46 -0700

Here's a patch to add support for XHTML 1.0, whose spec is dated 26
January 2000 (http://www.w3.org/TR/xhtml1/), a year before recode 3.6
was released.  XHTML 1.0 is just a reformulation of HTML 4 as an XML 1.0
application, and recode's implementation of the HTML 1/2/3/4 <-> UCS-2
mapping is very flexible, so the patch is very simple.

The canonical name for the new XHTML charset is XHTML_1.0, plus these
aliases: hx, XHTML, and hx.  XHTML and hx are reserved for the highest
XHTML level supported by recode, just as HTML and h are reserved for the
highest supported HTML level.  (You could argue that HTML and h should
now be aliases for XHTML_1.0, but I wanted to minimize the effect of
this patch to encourage its adoption.)

The only difference between HTML 4 and XHTML 1.0 with respect to recode
is that "&apos;" is now mapped (as well as references to the other XML
predefined character entities; see

Attachment: recode-3.6/contrib/xhtml.patch
Description: XHTML support

reply via email to

[Prev in Thread] Current Thread [Next in Thread]