- From: Rahul Srivastava <Rahul.Srivastava@Sun.COM>
- Date: Wed, 12 Dec 2001 17:33:41 +0000 (Asia/Calcutta)
- To: jeni@jenitennison.com
- Cc: xmlschema-dev@w3.org
Thanks Jeni. This is what I presumed, but I was doubtful. Thanks for the wonderful answer. Cheers, Rahul. > From: Jeni Tennison <jeni@jenitennison.com> > > 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:08:19 UTC