RE: Validation problem with user-defined derived complex types

I can't see anything wrong with it, but that doesn't necessarily mean there
isn't anything wrong with it... Can you reduce the problem to a form where
you can supply a complete schema that can be tested in other tools?

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Huditsch Roman
> Sent: 23 November 2004 11:57
> To: xmlschema-dev@w3.org
> Subject: AW: Validation problem with user-defined derived 
> complex types
> 
> 
> Hi, 
> 
> Can someone give me a hint, please, if the reported error 
> message (see mail below) is an XML Spy bug or is just a 
> stupid mistake by myself?
> 
> Thank you very much in advance!
> 
> Wbr,
> Roman
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Huditsch Roman
> > Gesendet: Donnerstag, 18. November 2004 12:34
> > An: 'xmlschema-dev@w3.org'
> > Betreff: Validation problem with user-defined derived complex types
> > 
> > Hi all,
> > 
> > I just tested the new version of XMLSpy 2005 (which I use with Saxon
> > 8.1.1) and encountered that it reports a validation error for my XML
> > Schema:
> > 
> > "The content model of complexType "fussnoteType" must be a 
> valid extension
> > of its Base Type Definition's content model"
> > 
> > Unfortunately, I can't figure out what this error message 
> is trying to
> > tell me...
> > 
> > The corresponding Schema parts are:
> > 
> > <xs:complexType name="fussnoteType" mixed="true">
> > 	<xs:complexContent mixed="true">
> > 		<xs:extension base="markedTextType">
> > 			<xs:attribute name="nummer">
> > 				<xs:simpleType>
> > 					<xs:restriction 
> base="xs:string"/>
> > 				</xs:simpleType>
> > 			</xs:attribute>
> > 			<xs:attribute name="id" use="optional">
> > 				<xs:simpleType>
> > 					<xs:restriction base="xs:ID">
> > 						<xs:pattern 
> value="fn-?\d+"/>
> > 					</xs:restriction>
> > 				</xs:simpleType>
> > 			</xs:attribute>
> > 			<xs:attributeGroup ref="herausgeberAttributes"/>
> > 		</xs:extension>
> > 	</xs:complexContent>
> > </xs:complexType>
> > 
> > Which is derived from
> > 
> > <xs:complexType name="markedTextType" mixed="true">
> > 	<xs:complexContent mixed="true">
> > 		<xs:restriction base="markedTextVersionType">
> > 			<xs:choice minOccurs="0" maxOccurs="unbounded">
> > 				<xs:element name="klammer_eckig"
> > type="markedTextType" minOccurs="0"/>
> > 					<xs:element name="fett"
> > type="markedTextType" minOccurs="0"/>
> > 					<xs:element name="kursiv"
> > type="markedTextType" minOccurs="0"/>
> > 					<xs:element name="hoch"
> > type="markedTextType" minOccurs="0"/>
> > 					<xs:element name="tief"
> > type="markedTextType" minOccurs="0"/>
> > 					<xs:element name="fussnote"
> > type="fussnoteType" minOccurs="0"/>
> > 					<xs:element ref="fussnote_ref"
> > minOccurs="0"/>
> > 					<xs:element ref="satz" 
> minOccurs="0"/>
> > 					<xs:element ref="zeilenumbruch"
> > minOccurs="0"/>
> > 					<xs:element ref="fuellzeichen"
> > minOccurs="0"/>
> > 					<xs:element ref="verweis_int"
> > minOccurs="0"/>
> > 					<xs:element ref="verweis_ext"
> > minOccurs="0"/>
> > 					<xs:element ref="verweis_url"
> > minOccurs="0"/>
> > 					<!-- Added 2004-10-19 
> by Roman Huditsch -->
> > 				</xs:choice>
> > 			</xs:restriction>
> > 		</xs:complexContent>
> > </xs:complexType>
> > 
> > Which is furthermore derived from
> > 
> > <xs:complexType name="markedTextVersionType" mixed="true">
> > 	<xs:choice minOccurs="0" maxOccurs="unbounded">
> > 		<xs:element name="klammer_eckig" 
> type="markedTextVersionType"
> > minOccurs="0"/>
> > 		<xs:element name="fett" type="markedTextVersionType"
> > minOccurs="0"/>
> > 		<xs:element name="kursiv" type="markedTextVersionType"
> > minOccurs="0"/>
> > 		<xs:element name="hoch" type="markedTextVersionType"
> > minOccurs="0"/>
> > 		<xs:element name="tief" type="markedTextVersionType"
> > minOccurs="0"/>
> > 		<xs:element name="fussnote" type="fussnoteType"
> > minOccurs="0"/>
> > 		<xs:element ref="fussnote_ref" minOccurs="0"/>
> > 		<xs:element ref="version" minOccurs="0"/>
> > 		<xs:element ref="satz" minOccurs="0"/>
> > 		<xs:element ref="zeilenumbruch" minOccurs="0"/>
> > 		<xs:element ref="fuellzeichen" minOccurs="0"/>
> > 		<xs:element ref="verweis_int" minOccurs="0"/>
> > 		<xs:element ref="verweis_ext" minOccurs="0"/>
> > 		<xs:element ref="verweis_url" minOccurs="0"/>
> > 	</xs:choice>
> > </xs:complexType>
> > 
> > It is interesting that validating this schema in another 
> view of XMLSpy
> > other than "text" is giving me no error....
> > Therefore I am a little bit mixed up, if there is a problem 
> with my Schema
> > or with the validation process....
> > 
> > Thank you very much for your help in advance.
> > 
> > wbr,
> > Roman
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.com
> **********************************************************************
> 
> 
> 

Received on Tuesday, 23 November 2004 12:06:37 UTC