W3C home > Mailing lists > Public > www-html-editor@w3.org > January to March 2007

Uncorrected errors in the XML Schema driver for XHTML 1.1 and updating problem (draft of 16 February 2007)

From: Alexandre Alapetite <alexandre@alapetite.net>
Date: Sat, 17 Feb 2007 04:29:03 +0100
To: "'Shane McCarron'" <shane@aptest.com>, "'Masayasu Ishikawa'" <mimasa@w3.org>
Cc: <www-html-editor@w3.org>, "'Christoph Schneegans'" <Christoph@Schneegans.de>
Message-ID: <000001c75243$c8e6bdc0$3740a750@athlon1100>
Dear HTML editors,
Some errors in the XML Schema driver for XHTML 1.1 have been reported on www-html-editor@w3.org and www-html@w3.org for a long
time. This driver has just been updated in the current "XHTML 1.1" working draft
[http://www.w3.org/TR/2007/WD-xhtml11-20070216/], but without addressing the reported issues:

1) As you may know, XHTML 1.1 is based on XHTML Modularisation. Could you therefore please update the XHTML Modularisation
schemas in [http://www.w3.org/MarkUp/SCHEMA/] (copy dated 20 April 2005) with their latest version, as available in
[http://www.w3.org/TR/2006/WD-xhtml-modularization-20060705/SCHEMA/] (dated 5 July 2006), so that there is a chance to have a
functional schema?

Has anybody tried to compile the XHTML 1.1 driver and its dependencies from its official location
[http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd]? It currently fails due to old versions of XHTML Modularisation schemas. After the
updating, there are still the remaining errors reported below.

The current old schemas at [http://www.w3.org/MarkUp/SCHEMA/] are broken anyway, so I do not see the purpose of refraining from
updating them with the newer ones.


2) The XHTML 1.1 XML Schema driver, in contradiction with the specification and the DTD, has still not been corrected to allow
references to event attributes such as "onmouseover" etc. as it should.

The specification has indeed "Intrinsic Events Module" listed as one of the XHTML modules used by XHTML 1.1
[http://www.w3.org/TR/2007/WD-xhtml11-20070216/doctype.html#s_doctype] and this "Intrinsic Events Module" defines the "Events"
attribute collection [http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_intrinsiceventsmodule]. The DTD agrees
with that and declares correctly in xhtml1.1.dtd on line 103:
	<!ENTITY % xhtml-events.module "INCLUDE" >

This issue has already been reported so many times. e.g.:
[http://lists.w3.org/Archives/Public/public-qa-dev/2006Jul/0021.html]
[http://lists.w3.org/Archives/Public/www-html-editor/2006JulSep/0002.html]
[http://lists.w3.org/Archives/Public/www-html-editor/2006AprJun/0026.html]
[http://lists.w3.org/Archives/Public/www-html/2006Jun/0029.html] (this post seems to have been deleted...)
[http://lists.w3.org/Archives/Public/www-html-editor/2006AprJun/0014.html]

I suggest to correct the xs:attributeGroup "xhtml.Common.extra" in xhtml11-model-1.xsd on line 68 with (see also the corrected
version in attachment xhtml11-model-1.xsd):

	<xs:attributeGroup ref="xhtml.Events.attrib">
		<xs:annotation>
			<xs:documentation> Attributes from Events Module </xs:documentation>
		</xs:annotation>
	</xs:attributeGroup>


3) Another minor issue in XHTML 1.1 drivers has been reported, regarding a compilation warning/error for the schema location of
"XHTML data types":
[http://lists.w3.org/Archives/Public/www-html-editor/2006JulSep/0002.html]. See
[http://lists.w3.org/Archives/Public/xmlschema-dev/2004Jun/0065.html] for details about the xs:import issue. Basically, the
location of this sub-schema should be declared in the XHTML 1.1 driver.

I suggest adding this declaration in xhtml11.xsd on line 95 with (see also the corrected version in attachment xhtml11.xsd):

	<xs:import namespace="http://www.w3.org/1999/xhtml/datatypes/"
		schemaLocation="xhtml-datatypes-1.xsd" />


4) A last point slightly out of the topic, but as XHTML 1.1 builds upon XHTML Modularisation, I will remind here once again some
previously suggested corrections and improvements to XHTML Modularisation 1.1:

- Please put online asap the corrections of the many acknowledged errors (both in the documentation and in the schema) in XHTML
Modularisation 1.1, where the "id" attribute is not defined as it should and therefore invalidating some compliant documents.
See the bug report from July 2006 [http://lists.w3.org/Archives/Public/www-html-editor/2006JulSep/0031.html] (see also corrected
versions in attachments xhtml-script-1.xsd, xhtml-style-1.xsd, xhtml-struct-1.xsd, xhtml-struct-1.mod).

It is hard for me to understand the rationale behind waiting so many months to patch known and acknowledged bugs, especially
when there are that many...


- Improve the XHTML Modularisation 1.1 definition of the Datatypes for "Charset", "ContentType", "MultiLengths" that are
currently lazily defined (as strings, without any additional constraint).
An example of the current situation in xhtml-datatypes-1.xsd:

	<!-- comma-separated list of media types, as per [RFC2045] -->
	<xs:simpleType name="ContentTypes">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>

This issue has already been reported (see also the improved version in attachment xhtml-datatypes-1.xsd):
[http://lists.w3.org/Archives/Public/public-qa-dev/2006Jul/0021.html]
[http://lists.w3.org/Archives/Public/www-html-editor/2006JulSep/0022.html]
[http://lists.w3.org/Archives/Public/www-html-editor/2006JulSep/0015.html]


Thank you for your attention.

Cordially,
Alexandre
http://alexandre.alapetite.net




Received on Saturday, 17 February 2007 03:29:26 GMT

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