[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

content model

  • From: David Valera <dvalera@p...>
  • To: xml-dev@l...
  • Date: Mon, 09 Oct 2000 15:09:14 +0200

no content model available
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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.