OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   content model

[ Lists Home | Date Index | Thread Index ]
  • From: David Valera <dvalera@pcl-hage.nl>
  • To: xml-dev@lists.xml.org
  • Date: Mon, 09 Oct 2000 15:09:14 +0200

hi,

I am having some problems with the software (XMLSpy 3 beta 3) I use to
validate my XML files. I have a general XSD file, lets say 'general.xsd',
wich includes (xsd:include) a different schema wich I use for all datatypes
and enumerations, lets call that one 'datatypes.xsd'. This last one does not
have any kind of complextype nor element declaration, just sympletypes and
enumerations. The program that I use to validate complains about this and
says there is no content model available for validation.

After including the following in the 'datatypes.xsd' file:

	<xsd:complexType name="dummy" content="elementOnly">
		<xsd:element name="dummy2" type="xsd:string"/>
	</xsd:complexType>

it works fine.

if I comment out the xsd:element declaration then I get the same error.

Is the declaration of at least one element neccesary and obligatory in an
XML schema file? even if this schema is not used to declare elements, but to
declare datatypes and enumerations?

If it is not neccesary to declare at least one element then I assume the
program is checking for something it should not, and report the bug to the
makers.

TIA.

David Valera





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS