W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 2006

[xhtml2] behavior of xsi:schemaLocation

From: <karl@w3.org>
Date: Thu, 17 Aug 2006 03:27:47 -0000
To: www-html-editor@w3.org
Message-Id: <20060817032753.B74974F52F@homer.w3.org>

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 GMT

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