W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2001

Re: Using xml:lang as an <attribute> name

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 10 Sep 2001 14:39:38 +0100
To: kboo@ca.ibm.com
Cc: xmlschema-dev@w3.org
Message-ID: <f5b7kv788rp.fsf@cogsci.ed.ac.uk>
kboo@ca.ibm.com writes:

> Consider the following:
>    <attribute name="xml:lang" type="string"/>
>
> The above would not be allowed because "xml:lang" is not a valid NCName,
> but the xsv seems to think it is ok.

Bug in XSV -- it should reject QNames as the names of anything.

> Also, is there any way that "xml:lang" or "xmlns" for that matter could be
> used as an <attribute>'s name value?

No, both of those are ruled out by the REC.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Monday, 10 September 2001 09:39:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:12:44 GMT