[xhtml2] behavior of xsi:schemaLocation

Hi,
This is a QA Review comment for "XHTML 2.0"
http://www.w3.org/TR/2006/WD-xhtml2-20060726/
2006-07-26
8th WD

About http://www.w3.org/TR/2006/WD-xhtml2-20060726/mod-document.html

 "xsi:schemaLocation = URIs
     This attribute allows the specification of a 
  location where an XML Schema [XMLSCHEMA] for 
  the document can be found. The syntax of this 
  attribute is defined in xsi_schemaLocation. The 
  behavior of this attribute in XHTML documents is 
  defined in Strictly Conforming Documents."

What is the behavior defined in Document Conformance section? It is not explicit.

In the relaxNG schema, there is 

<define name="html.attlist">
  <ref name="Common.attrib"/>
  <ref name="version.attrib"/>
  <optional>
    <ref name="XSI.schemaLocation"/>
  </optional>
</define>

And then 
<define name="XSI.schemaLocation">
  <attribute name="xsi:schemaLocation">
    <list>
      <oneOrMore>
        <data type="anyURI"/>
        <data type="anyURI"/>
      </oneOrMore>
    </list>
  </attribute>
</define>

Why the  default value is 
 "http://www.w3.org/2002/06/xhtml2/
  http://www.w3.org/MarkUp/SCHEMA/xhtml2.xsd"

Being implied with a default value will help user agents implementers and authors to not have to write everything when they want to validate. It will make the process of authoring lighter.




-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***

Received on Thursday, 17 August 2006 03:28:05 UTC