Hi Lawrence,

the original schema is from BMECAT.ORG and has more then 7000 lines. I will 
send you this schema in seperate mail.

There are 5 definitions like

        <xsd:complexType name="typeMLSTRING00050">
                <xsd:simpleContent>
                        <xsd:restriction base="dtMLSTRING">
                                <xsd:maxLength value="50"/>
                                <xsd:minLength value="1"/>
                        </xsd:restriction>
                </xsd:simpleContent>
        </xsd:complexType>
        <xsd:complexType name="typeMLSTRING00080">
                <xsd:simpleContent>
                        <xsd:restriction base="dtMLSTRING">
                                <xsd:maxLength value="80"/>
                                <xsd:minLength value="1"/>
                        </xsd:restriction>
                </xsd:simpleContent>
        </xsd:complexType>
        <xsd:complexType name="typeMLSTRING00250">
                <xsd:simpleContent>
                        <xsd:restriction base="dtMLSTRING">
                                <xsd:maxLength value="250"/>
                                <xsd:minLength value="1"/>
                        </xsd:restriction>
                </xsd:simpleContent>
        </xsd:complexType>
        <xsd:complexType name="typeMLSTRING06000">
                <xsd:simpleContent>
                        <xsd:restriction base="dtMLSTRING">
                                <xsd:maxLength value="6000"/>
                                <xsd:minLength value="1"/>
                        </xsd:restriction>
                </xsd:simpleContent>
        </xsd:complexType>
        <xsd:complexType name="typeMLSTRING64000">
                <xsd:simpleContent>
                        <xsd:restriction base="dtMLSTRING">
                                <xsd:maxLength value="64000"/>
                                <xsd:minLength value="1"/>
                        </xsd:restriction>
                </xsd:simpleContent>
        </xsd:complexType>

and they all cause an error in scomp.


In line 3681 typeMLSTRIN00250 is used the first time:

        <xsd:element name="ARTICLE_STATUS">
                <xsd:complexType>
                        <xsd:complexContent>
                                <xsd:extension base="typeMLSTRING00250">
                                        <xsd:attribute name="type" 
use="required">
                                                <xsd:simpleType>
                                                        <xsd:restriction 
base="dtSTRING">
                                                                <xsd:minLength 
value="1"/>
                                                                <xsd:maxLength 
value="20"/>
                                                                <xsd:enumeration 
value="bargain"/>
                                                                <xsd:enumeration 
value="core_product"/>
                                                                <xsd:enumeration 
value="new"/>
                                                                <xsd:enumeration 
value="new_product"/>
                                                                <xsd:enumeration 
value="old_product"/>
                                                                <xsd:enumeration 
value="refurbished"/>
                                                                <xsd:enumeration 
value="used"/>
                                                                <xsd:enumeration 
value="others"/>
                                                        </xsd:restriction>
                                                </xsd:simpleType>
                                        </xsd:attribute>
                                </xsd:extension>
                        </xsd:complexContent>
                </xsd:complexType>
        </xsd:element>

IMHO all of the following type definitions are at the top level:

...
<xsd:simpleType name="dtSTRING">
        <xsd:restriction base="xsd:string"/>
</xsd:simpleType>
...
<xsd:complexType name="dtMLSTRING">
        <xsd:simpleContent>
                <xsd:extension base="dtSTRING">
                        <xsd:attribute name="lang" type="dtLANG" 
use="optional"/>
                </xsd:extension>
        </xsd:simpleContent>
</xsd:complexType>
...
<xsd:complexType name="typeMLSTRING00250">
        <xsd:simpleContent>
                <xsd:restriction base="dtMLSTRING">
                        <xsd:maxLength value="250"/>
                        <xsd:minLength value="1"/>
                </xsd:restriction>
        </xsd:simpleContent>
</xsd:complexType>
...

Thanks,
Holger
begin:vcard
fn:Holger Riess
n:Riess;Holger
org:CBS GmbH
adr;dom:;;Curiestr. 3a;Chemnitz;;09117
email;internet:[EMAIL PROTECTED]
tel;work:+49 371 8102574
tel;fax:+49 371 8102576
x-mozilla-html:FALSE
url:http://www.cbs.ag
version:2.1
end:vcard


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to