W3C home > Mailing lists > Public > www-international@w3.org > October to December 2005

Re: New article published: xml:lang in XML document schemas

From: Felix Sasaki <fsasaki@w3.org>
Date: Fri, 25 Nov 2005 01:52:01 +0900
To: "Sebastian Rahtz" <sebastian.rahtz@oucs.ox.ac.uk>, "Richard Ishida" <ishida@w3.org>
Cc: www-international@w3.org
Message-ID: <op.s0q7szjkx1753t@ibm-60d333fc0ec>

On Fri, 25 Nov 2005 01:36:28 +0900, Sebastian Rahtz  
<sebastian.rahtz@oucs.ox.ac.uk> wrote:

>
> To follow on from Felix' note, there is an amusing contradiction in the
> document:
>
> It says that "XML Schema requires that the xml namespace be declared and
> imported before using xml:lang (and other xml namespace values)"
> and then "RELAX NG predeclares the xml namespace, as in XML, so no
> additional declaration is needed."
>
> But an XML Schema itself is an XML document,

yes, and the schema for XML Schemas imports xml.xsd, see  
http://www.w3.org/TR/xmlschema-1/#normative-schemaSchema :)
you are right, "as in XML" is confusing and should not be here. Richard,  
too late for an eratum?

-- Felix

> like the document instance
> which needs no declaration; so why declare the XML namespace in a schema?
> If I can declare xml:lang in my schema, I can presumably *mis*declare
> it, thereby setting up an internal conflict.
>
> I do find the W3C Schema approach to the XML namespace rather flawed.
> It's a pain in the neck on a daily basis
> when one's schema has to import xml.xsd all the time, for attributes
> which we all agree have a fixed
> definition.
>
Received on Thursday, 24 November 2005 16:52:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:06 GMT