- From: <MarkH@i2.co.uk>
- Date: Mon, 15 Jan 2001 15:46:21 -0000
- To: ht@cogsci.ed.ac.uk, xmlschema-dev@w3.org
Here's the def of endType and its base elementType... <!-- Content Objects --> <complexType name="elementType" abstract="true"> <annotation> <documentation>Abstract base type for content objects (ends, links, references)</documentation> </annotation> <sequence> <element name="properties" type="vlvx:elementProperties"> <annotation> <documentation>Properties available for visualization and/or application specific use. Users can extend by deriving elements from elementType, and properties from elementProperties without breaking compatibility with the vlvx document type.</documentation> </annotation> </element> <element name="reference" type="vlvx:referenceType" minOccurs="0"> <annotation> <documentation>Locates a reference to this element (e.g. in a document).</documentation> </annotation> </element> <element name="vlvf" type="vlvx:vlvfFragmentType" minOccurs="0"> <annotation> <documentation>Optional override of default VLVF directives. Any ids in this fragment MUST match the corresponding id attributes of referenced ends or links etc.</documentation> </annotation> </element> </sequence> <attribute name="id" type="ID" use="required"/> <attribute name="type" type="CDATA" use="required"/> <attribute name="metaItem" type="boolean" use="default" value="false"/> </complexType> <!-- Element Properties --> <simpleType name="property"> <annotation> <documentation>Properties are represented using elements with limted types, or restrictions of those types (e.g. ranges or enumerations). We may choose to extend the range of types, and or to provide additional types (i.e. restrictions of simple types).</documentation> </annotation> <union memberTypes="string long double date"/> </simpleType> <complexType name="elementProperties"> <annotation> <documentation>The root base type for all element property sets.</documentation> </annotation> <sequence> <element name="displayName" type="vlvx:property"> <annotation> <documentation>Mandatory for all elements.</documentation> </annotation> </element> </sequence> </complexType> <complexType name="endType" abstract="true"> <annotation> <documentation>Content object: end</documentation> </annotation> <complexContent> <extension base="vlvx:elementType"/> </complexContent> </complexType> thanks Mark PS I simplified the instance by removing the "type" attribute from my sample. The unadulterated instance was... <ends> <end id="e0001" type="???isThisRedundant" xsi:type="vlvx:miscEnd"> <properties> <displayName>end e0001</displayName> </properties> </end> </ends> > -----Original Message----- > From: ht@cogsci.ed.ac.uk [mailto:ht@cogsci.ed.ac.uk] > Sent: 15 January 2001 15:46 > To: MarkH@i2.co.uk > Cc: xmlschema-dev@w3.org > Subject: Re: XSV v XML Spy 3.5 beta 4 disagreement > > > MarkH@i2.co.uk writes: > > > XML Spy v3.5 beta 4 complains about the following, saying > that miscType must > > be derived from vlvd:endType by -extension-. In fact it is > derived by > > -restriction-. XSV didn't complain when validating the > instance. Who's > > right? > > > > Extract from the instance: > > <ends> > > <end id="e0001" xsi:type="vlvx:miscEnd"> > > <properties> > > <displayName>end > e0001</displayName> > > </properties> > > </end> > > </ends> > > > > Extracts from the schema: > > <complexType name="miscEnd"> > > <annotation> > > <documentation>End Type: miscEnd > > (miscellaneous)</documentation> > > </annotation> > > <complexContent> > > <restriction base="vlvx:endType"> > > <sequence> > > <element name="properties" > > type="vlvx:elementProperties"/> > > </sequence> > > </restriction> > > </complexContent> > > </complexType> > > > > ... > > > > <element name="ends"> > > <complexType> > > <sequence> > > <element name="end" type="vlvx:endType" > > minOccurs="0" maxOccurs="unbounded"/> > > </sequence> > > </complexType> > > </element> > > I don't see an error, but without the definition of endType (is it > simple or complex?) I can't tell for sure. > > ht > -- > Henry S. Thompson, HCRC Language Technology Group, > University of Edinburgh > W3C Fellow 1999--2001, part-time member of W3C Team > 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) > 131 650-4440 > Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk > URL: http://www.ltg.ed.ac.uk/~ht/ >
Received on Monday, 15 January 2001 10:53:33 UTC