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

Re: Union of attribute uses

From: Rahul Srivastava <Rahul.Srivastava@Sun.COM>
Date: Mon, 15 Oct 2001 20:01:42 +0000 (Asia/Calcutta)
Message-Id: <200110151433.f9FEXeH10977@blr-root.India.Sun.COM>
To: xmlschema-dev@w3.org
> Henry Thompson wrote...
> Rahul Srivastava <Rahul.Srivastava@Sun.COM> writes:
> > Hi,
> > 
> > You are right. But, once all group references are resolved to
> > attribute uses, you have a collection of attribute uses. Now, this
> > collection of attribute uses may have two or more attribute uses,
> > having same name from same targetNamespace OR two or more attribute
> > uses having type as ID or derived from ID.
> > 
> > My doubt is, how to perform a union of these attribute uses now?.
> I'm sorry, I don't understand.  Such a collection (i.e. one with
> duplicates or multiple ID types) is an error -- you can't do
> _anything_ with it.

Let me give an example...

<xsd:attribute name="Attr" type="xsd:string"/>

<xsd:attributeGroup name="GroupB">
    <xsd:attribute ref="Attr" use="required"/>

<xsd:attributeGroup name="GroupA">
    <xsd:attribute ref="Attr" use="optional"/>
    <xsd:attributeGroup ref="GroupB"/>

Here, the attributeGroup - GroupA, has two attributes, both having the same 
name, from same targetNamespace, but different use.

So, how do we compute union of attribute uses in this case, OR, is it straight 
way an error.

Received on Monday, 15 October 2001 10:33:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:54 UTC