W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2000

Error in example

From: Mabry, F. DR EECS <df6954@exmail.usma.army.mil>
Date: Thu, 3 Aug 2000 17:38:05 -0400
Message-ID: <A0AEC2C4E61AD311875700104B7223D655C92E@exmail05.eecs.usma.edu>
To: www-xml-schema-comments@w3.org
I believe there are a couple of errors in the first example given for
section 4.3.3.  On line 1 the "xs:complexType" element is defined as an
empty element (a "/" in the element reference).

On line 10 a reference is made to a type "dt:non-positive-integer" in the
"xs:element" for name="size".  I suspect that the reference should be to
"dt:non-negative-integer."

The source from the XML file I am referring to follows:

 1 <xs:complexType name="length1" base="dt:non-negative-integer"
derivedBy="extension"/>
 2  <xs:attribute name="unit" type="dt:NMTOKEN"/>
 3 </xs:complexType>
 4 
 5 <xs:element name="width" type="length1"/>
 6 
 7   <width unit="cm">2.54</width>
 8 
 9 <xs:complexType name="length2">
10  <xs:element name="size" type="dt:non-positive-integer"/>
11  <xs:element name="unit" type="dt:NMTOKEN"/>
12 </xs:complexType>
13 
14 <xs:element name="depth" type="length2"/>
15 
16   <depth>
17    <size>2.54</size><unit>cm</unit>
18   </depth>


Am I misunderstanding either of these points?

Frank
Dr. Frank Mabry
Dept. of EE&CS, U.S. Military Academy
West Point, NY 10996
email: df6954@exmail.usma.edu
Phone: (845) 938-2960
Received on Thursday, 3 August 2000 17:36:31 UTC

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