W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to 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>

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


<?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: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 name="foo">
  <xsd:attribute name="foo" type="xsd:int"/>
 <xsd:attributeGroup name="bar">
  <xsd:attribute name="bar" type="mySimpleType"/>
 <xsd:simpleType name="mySimpleType">
  <xsd:restriction base="xsd:positiveInteger">
   <xsd:maxExclusive value="100"/>
Received on Sunday, 24 March 2002 19:24:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:59 UTC