Subject:This schema doesn't appear to be valid by itself Author:mathan kumar Date:05 Jan 2006 07:51 AM Originally Posted: 05 Jan 2006 07:45 AM
Hi,
I am getting the following error while saving Debit_CN.xsd.Plz help me to proceed further.
" This schema doesn't appear to be valid by itself (as part of another schema, it might still be OKUnexpected element 'xs:element' in element 'xs:complexType' "
I have given a reference to one more schema DataTypeSchema.xsd.
Subject:This schema doesn't appear to be valid by itself Author:Tony Lavinio Date:05 Jan 2006 09:58 AM
DataTypeSchema.xsd contains a number of errors that should be fixed
before relying on it. Using the green "validate" button will catch
these and inform you of them.
For example, xs:byte is restricted in several places with xs:minLength
and xs:maxLength, but these are not valid facets for xs:byte. Instead,
xs:totalDigits should be used. smallint is set to be based on xs:byte,
but with xs:fractionDigits set to 3, when bytes cannot have fractions.
Debit_CN.xsd also had problems, with missing xs:sequence wrappers
around complex content.
This looks like is was written by hand. Are you using Stylus Studio's
XML Schema editor? It produces only syntactically valid code, and also
lets you validate the schema with a number of schema checkers.
I've posted the corrected schemas - at least I've posted valid schemas.
There may be differences between the changes I made to make them valid
and how you wish them to behave, but I did the best I could without
documentation.
Subject:This schema doesn't appear to be valid by itself Author:mathan kumar Date:05 Jan 2006 11:51 AM
Tony,
Thanks a lot for your updates.
Debit_CN.xsd and DataTypeSchema.xsd is working fine for my application.
Could you please list some of the schema checkers.
Subject:This schema doesn't appear to be valid by itself Author:Tony Lavinio Date:05 Jan 2006 12:31 PM
They are all installed within Stylus Studio, under the green validate
button. If you're not using it already (which you should be, since
you're asking the question on the Stylus Studio Developers Network ;) )
then you can download an evaluation copy at http://www.stylusstudio.com/xml_download.html