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


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

schema dialect conversion

does anybody know reliable tools for schema 2 schema mapping , it should support sox, xdr and xsd, I tried XML Authority and it has some bugs which make the resulting xsd files invalid.
-----Original Message-----
From: Lyndon J B Nixon [mailto:nixon@fokus.gmd.de]
Sent: Tuesday, March 13, 2001 4:54 PM
To: xml-dev@lists.xml.org
Subject: XML Schema restriction contradiction?


is the current definition of <restriction> in the XML Schema CR 24/10/2001 contradictory or am i missing something?

in Part 1:Structures Appendix A: Schema for XML Schemas (normative)

<complexType name="restrictionType">
                <extension base="annotated">
                                        <group ref="typeDefParticle" minOccurs="0"/>
                                        <group ref="simpleRestrictionModel" minOccurs="0"/>
                        <group ref="attrDecls"/>
                <attribute name="base" type="QName" use="required"/>

This seems to conform to the Schema validation that I am using (XML Spy 3.5) which returns an error that the base attribute is required when i use a XML Schema containing restrictions without a base but with a simpleType child.

However in Part 2:Datatypes section 5.1.1

"Either the base  [attribute] or the simpleType  [child] must be present, but not both."

which matches with the given Schema for Datatype Definitions which states

<element name="restriction" substitutionGroup="simpleDerivation" id="restriction">
                        <documentation xml:lang="en" source="http://www.w3.org/TR/xmlschema-2/#element-restriction">
                        base attribute and simpleType child are mutually exclusive, but one or other is required
                        <extension base="annotated">
                                <group ref="simpleRestrictionModel"/>
                                <attribute name="base" type="QName" use="optional"/>

So, is the base attribute optional or required? Is the XML Spy validator correctly validating my XML Schema?
The offending (error producing) XML Schema code is:

<simpleType name="SFColor">
            <list itemType="xmta:ZeroToOneFloat"/>
         <length value="3"/>



Lyndon J B Nixon ... MAGIC Centre, GMD FOKUS ... Berlin, Germany
"what is now proved was once only imagined" - william blake
PhD Student, Integration of Internet into MPEG-4 & MPEG-7
nixon@fokus.gmd.de   members.tripod.co.uk/~madeejit/phd.htm