Re: Undefined types in XHTML Modularization Schemas

Laurens Holst wrote:

> Maybe these posts that I wrote earlier will help you:
>
> http://lists.w3.org/Archives/Public/www-html-editor/2006AprJun/0015
> http://lists.w3.org/Archives/Public/www-html-editor/2006AprJun/0016

Wow. I added

. <http://www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml11.xsd>
. <http://www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml11-model-1.xsd>
. <http://www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml11-modules-1.xsd>
. <http://www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-basic10.xsd>
. <http://www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-basic10-model-1.xsd>
. <http://www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-basic10-modules-1.xsd>,

and the schemas compiled. Without any modification. In MSXML 5.0 and
.NET 2.0. That's it. Thanks a lot.

I then tried to validate a simple XHTML Basic document:

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
      "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head><title/></head>
  <body>
  <p>...</p>
  </body>
  </html>

My validator says that the "html" was not declared. Indeed, there's a

    <xs:element
        name="html"
        type="xhtml.html.type"/>

declaration in
<http://www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml11-model-1.xsd>,
but
<http://www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-basic10-model-1.xsd>
lacks such a declaration.

Okay, another simple document, XHTML 1.1 this time:

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
      "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head><title/></head>
  <body>
  <p><a href="." onmouseover="foo()" onfocus="bar()" /></p>
  </body>
  </html>

My validator complains about the "onmouseover" attribute, but accepts
the "onfocus" attribute. See the following declaration in
<http://www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-events-1.xsd>:

    <!--
    additional attributes on anchor element
    -->
    <xs:attributeGroup name="xhtml.a.events.attlist">
        <xs:attribute name="onfocus" type="xh11d:Script"/>
        <xs:attribute name="onblur" type="xh11d:Script"/>
    </xs:attributeGroup>

The comment says that "onfocus" and "onblur" are "additional".
However, I can't find any indication that the "xhtml.Events.attrib"
attribute group, which declares the "onmouseover" attribute, is
applied to the "a" element type.

-- 
<http://schneegans.de/>                                              |

Received on Tuesday, 2 May 2006 23:58:04 UTC