W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2004

AW: Validation problem with user-defined derived complex types

From: Huditsch Roman <Roman.Huditsch@lexisnexis.at>
Date: Tue, 23 Nov 2004 12:57:28 +0100
Message-ID: <AA7BAD89B2B0C746A26452F44939F1E340705D@LNGVIEEX1.orac.local>
To: <xmlschema-dev@w3.org>

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 11:57:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:40:23 UTC