Re: a small doubt

Hi Rahul,

> Is the following valid...
>
> <xsd:attribute name="attr"/>
>
> <xsd:attributeGroup name="attrGrp">
>    <xsd:attribute name="attr"/>
>    <xsd:attribute ref="attr" />
> </xsd:attributeGroup>
>
> ...when attributeFormDefault is qualified/unqualified.

You cannot have two attribute uses of the same name and target
namespace within a particular attribute group (or within a particular
complex type).

So assuming that you have a target namespace, I think it's valid when
the attributeFormDefault is unqualified (since the global attr is in
the target namespace while the local attr is in no namespace), but
invalid when the attributeFormDefault is qualified (since then both
attr attributes are in the target namespace).

It's invalid if you don't have a target namespace, no matter what
attributeFormDefault is.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Wednesday, 12 December 2001 07:00:55 UTC