W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2008

Re: anyAttribute via attributeGroup refs problem

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Fri, 14 Nov 2008 13:56:28 +0000
To: Michael Glavassevich <mrglavas@ca.ibm.com>
Cc: "Michael Kay" <mike@saxonica.com>, "'Christian Roth'" <roth@visualclick.de>, "'XML Schema Development List'" <xmlschema-dev@w3.org>
Message-ID: <f5br65ecsxf.fsf@hildegard.inf.ed.ac.uk>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Glavassevich writes:

>>  <xs:attributeGroup name="standard">
>>   <xs:attributeGroup ref="v1:standard"/>
>>   <xs:attribute ref="v2:status"/>
>>   <xs:anyAttribute namespace="##other" processContents="lax"/>
>>  </xs:attributeGroup>
>
> Assuming v1 and v2 are bound to different namespaces I don't believe this
> is legal [1] (see clause 2 of Attribute Group Definition Representation OK)
> in XML Schema 1.0. I'm pretty sure in Xerces we emit an error because the
> intersection [2] of the two negations is not expressible.

You're right, of course -- the discussion of this example arose in the
context of XML Schema 1.1, where the intersection _is_ expressible.

ht
- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
                         Half-time member of W3C Team
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFJHYOMkjnJixAXWBoRAhznAKCALrhGY/uARI19hLA+W4AHLxX2jACfWDKH
n959IagKYNM/Wu7A9cir/AY=
=Pvxr
-----END PGP SIGNATURE-----
Received on Friday, 14 November 2008 13:57:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:09 GMT