Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - SV: Element names guidelines >Thread Next - AW: Validation problem with user-defined derived complex types AW: Validation problem with user-defined derived complex typesTo: <xmlschema-dev@--.---> Date: 11/23/2004 1:57:00 PM 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 mike@s... Tue Nov 23 12:06:37 2004 Received: from bart.w3.org ([128.30.52.40]) by frink.w3.org with esmtp (Exim 4.34) id 1CWZRN-0004Bx-FL for xmlschema-d | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
