W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2001

Re: ##other for anyAttribute

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 07 Feb 2001 10:01:01 +0000
To: James Clark <jjc@jclark.com>
Cc: XML Schema Comments <www-xml-schema-comments@w3.org>
Message-ID: <f5bk872stgi.fsf@cogsci.ed.ac.uk>
One feature, one bug :-(

James Clark <jjc@jclark.com> writes:

> I was trying to figure out what 
>  <anyAttribute namespace="##other"/>
> means.  Suppose my target namespace is "http://www.example.com", and
> suppose I have an element "foo" in that namespace which declares
> <anyAttribute namespace="##other"/>.
> My reading of the spec was that:
>   <eg:foo eg:xyzzy="whatever" xmlns:eg="http://www.example.com"/>
> would not be valid, but

Correct -- ##other means "qualified with NS other than the target . . ."

and this is qualified with the target, so invalid.

>   <eg:foo xyzzy="whatever"/>
> would be valid, which is not what I would expect

Agreed wrt you expectation.  We could/should special-case this wrt
attribute wildcards.

> (and apparently not what XSV implements).  So I guess I'm missing
> something in the spec.

No, just a bug in XSV :-(  Weird -- the code explicitly special-cases
this for attributes, just as I said we could do above -- let me check
the spec. a little harder . . . no, definitely nothing there.  When I
wrote that bit of the code, I clearly thought you were right.  I'll
raise this with the WG.

  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 Wednesday, 7 February 2001 05:01:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:54 UTC