Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


AW: Validation problem with user-defined derived complex types

From: "Huditsch Roman" <Roman.Huditsch@----------.-->
To: "Michael Kay" <mike@--------.--->
Date: 11/23/2004 2:25:00 PM
Hmm, I just validated it via the W3C Schema Validator and MSXML, too and =
didn't get an error either. 
So I suppose that there is really something very strange happening =
inside XMLSpy">XMLSpy 2005.
Thank you very much!

Wbr,
Roman

> -----Urspr=FCngliche Nachricht-----
> Von: Michael Kay [mailto:mike@s...]
> Gesendet: Dienstag, 23. November 2004 13:07
> An: Huditsch Roman
> Cc: xmlschema-dev@w...
> Betreff: 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@w...
> > [mailto:xmlschema-dev-request@w...] On Behalf Of Huditsch Roman
> > Sent: 23 November 2004 11:57
> > To: xmlschema-dev@w...
> > 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 XMLSpy">XMLSpy bug or is just a
> > stupid mistake by myself?
> >
> > Thank you very much in advance!
> >
> > Wbr,
> > Roman
> >
> > > -----Urspr=FCngliche Nachricht-----
> > > Von: Huditsch Roman
> > > Gesendet: Donnerstag, 18. November 2004 12:34
> > > An: 'xmlschema-dev@w...'
> > > 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
> > =
**********************************************************************
> >
> >
> >


From george@o... Tue Nov 23 12:38:35 2004
Received: from lisa.w3.org ([128.30.52.41])
	by frink.w3.org with esmtp (Exim 4.34)
	id 1CWZwJ-0007P6-18
	for xmlschema-dev@l...; Tue, 23 Nov 2004 12:38:35 +0000
Re


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