Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Validation problem with user-defined derived complex types

From: "Huditsch Roman" <Roman.Huditsch@----------.-->
To: <xmlschema-dev@--.--->
Date: 11/18/2004 1:34:00 PM
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
**********************************************************************


From frans.englich@t... Thu Nov 18 14:25:06 2004
Received: from lisa.w3.org ([128.30.52.41])
	by frink.w3.org with esmtp (Exim 4.34)
	id 1CUnDe-0003Ru-R


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent