W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2002

attgD005 (test case)

From: Stanley Guan <stanley.guan@oracle.com>
Date: Sun, 24 Mar 2002 16:23:40 -0800
Message-ID: <3C9E6E0C.4A01BAF6@oracle.com>
To: schema comments w3c <www-xml-schema-comments@w3.org>, Schema XML <xmlschema-dev@w3.org>
Hi,

The content type of "doc" seems to me is "empty" even "mixed='true'"
is declared.  So, the expected result of attgD005 should be invalid!

-Stanley

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <xsd:attribute name="att1" type="xsd:string"/>
 <xsd:attribute name="att2" type="xsd:string"/>
 <xsd:element name="doc">
  <xsd:complexType mixed="true">
   <xsd:attributeGroup ref="main"/>
  </xsd:complexType>
 </xsd:element>
 <xsd:attributeGroup name="main">
  <xsd:attribute ref="att1"/>
  <xsd:attributeGroup ref="foo"/>
  <xsd:attribute ref="att2"/>
  <xsd:attributeGroup ref="bar"/>
  <xsd:attribute name="att3" type="xsd:int"/>
 </xsd:attributeGroup>
 <xsd:attributeGroup name="foo">
  <xsd:annotation/>
  <xsd:attribute name="foo" type="xsd:int"/>
 </xsd:attributeGroup>
 <xsd:attributeGroup name="bar">
  <xsd:annotation/>
  <xsd:attribute name="bar" type="mySimpleType"/>
 </xsd:attributeGroup>
 <xsd:simpleType name="mySimpleType">
  <xsd:restriction base="xsd:positiveInteger">
   <xsd:maxExclusive value="100"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:schema>
Received on Sunday, 24 March 2002 19:24:05 GMT

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