W3C home > Mailing lists > Public > www-html@w3.org > May 2003

Re: Using RELAX NG in XHTML 2.0

From: Karl Ove Hufthammer <karl@huftis.org>
Date: Wed, 14 May 2003 23:46:40 +0200
Message-Id: <n2m-g.Xns937BF1E0F4720huftis@ID-99504.news.dfncis.de>
To: www-html@w3.org

Masayasu Ishikawa <mimasa@w3.org> wrote in
news:20030514.194214.78713849.mimasa@w3.org:

> Having said that, the WG would try to approximate intended
> constraints to the extent possible by DTD if people still find
> it useful, but I'm still not convinced that requiring DTD
> validity is a good idea.

I agree. Requiring DTD validity to be a conforming XHTML document
means that we can have two canonically equivalent XHTML documents,
where one is valid (and conforming), and the other is not.

Example:

Document 1:
<html xmlns="http://www.w3.org/1999/xhtml"
      xml:lang="en-GB">...</html>

Document 2:
<prefix:html xmlns:prefix="http://www.w3.org/1999/xhtml"
             xml:lang="en-GB">...</html>

These are equivalent, but only the first would be valid XHTML 1.0.
And yes, this could be a problem in practice. For example, an XSLT
transformation on two identical source documents could lead to
either of these resulting documents.

-- 
Karl Ove Hufthammer
http://blogg.huftis.org/
Received on Wednesday, 14 May 2003 17:47:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:55 GMT