W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2000

Re: Attribute remapping support in XML Schemas

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 22 May 2000 09:56:47 +0100
To: "Martin Gudgin" <marting@develop.com>
Cc: <www-xml-schema-comments@w3.org>
Message-ID: <f5bzopj3quo.fsf@cogsci.ed.ac.uk>
"Martin Gudgin" <marting@develop.com> writes:

> The way I read the namespace rec unprefixed attributes are *always* locally
> scoped by their containing element. The only way to have a global attribute
> is to give it a prefix. So assuming a namespace decl for prefix x1;
>     <x1:foo bar='somevalue' x1:bar='somevalue'/>
>     <x1:quux bar='somevalue' x1:bar='somevalue'/>
> x1:bar is the same attribute in both cases, has the same meaning etc etc.
> The bar attribute in x1:foo is not the same as the bar attribute in x1:quux.
> So the two unprefixed bar attributes could have completely different meaning
> dependant on whether they are scoped by x1:foo or x1:quux.
> Are you asking that XML Schema override the namespace rec by providing a way
> to specify that an unprefixed attribute is in some explicit namespace rather
> than being locally scoped by the containing element?
> I don't think this is a good idea as it means that the namespace of an
> attribute could potentially change based purely on whether a given instance
> document was validated against a schema or not.
> What am I missing here?

Nothing, as far as I can tell:  our analysis agrees with mine.

  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, 22 May 2000 04:56:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:47 UTC