The X in XHTML
X in XHTML means
But if I try to validate such a page, I get a problem, because it is invalid. Which is a real problem, because my blog will force validity on my entries.
What I need, is a DOCTYPE that accepts HTML as valid under the following two conditions:
- The page is wellformed XML
- The page would be valid XHTML if all tags from other namespaces were removed
Note that testing removal of elements from other namespaces would be too liberal, test by removing foreign tags with their content left in place.
Work by W3C is addressing ways to specify conformance for documents involving multiple namespaces.
But they seem concerned with specific extensions like MathML, I want a DOCTYPE to handle general extensions.
I want my validator to say:
The way you use your extensions may be bullshit, but at least it is wellformed bullshit placed in a valid XHTML context.
An example of the problem, is the G O Sars page. It contains a pair of geo:lat and geo:long elements, but to make the page valid, I had to place them in CDATA. That transforms them from elements to text. Fortunately, they are still treated as geo: elements by Blogmapper
The Relaxed! validator at http://badame.vse.cz/validator/ will validate extended XHTML without the need of an extended DOCTYPE. (But that will still not help an extension through the mechanics of this blog.)