WXS schema .* failed to compile

Classification

Validator

Validator version

Error message type

lxml

4.6.5.0

File format

Version

Specification

Description

Location

text/xml

1.0

corpus

text/xml

1.0

corpus

Analyses

Possible solutions

Output example

/corpus/file-scraper/tests/data/text_xml/supplementary/local_nons.xsd:2: namespace error : Namespace prefix xsd on schema is not defined
<xsd:schema elementFormDefault="qualified" attributeFormDefault="unqualified">
                                                                             ^
/corpus/file-scraper/tests/data/text_xml/supplementary/local_nons.xsd:4: namespace error : Namespace prefix xsd on element is not defined
    <xsd:element name="note" type="noteType"/>
                                            ^
/corpus/file-scraper/tests/data/text_xml/supplementary/local_nons.xsd:6: namespace error : Namespace prefix xsd on complexType is not defined
    <xsd:complexType name="noteType">
                                    ^
/corpus/file-scraper/tests/data/text_xml/supplementary/local_nons.xsd:7: namespace error : Namespace prefix xsd on sequence is not defined
        <xsd:sequence>
                     ^
/corpus/file-scraper/tests/data/text_xml/supplementary/local_nons.xsd:8: namespace error : Namespace prefix xsd on element is not defined
            <xsd:element name="name" type="xsd:string"/>
                                                      ^
/corpus/file-scraper/tests/data/text_xml/supplementary/local_nons.xsd:9: namespace error : Namespace prefix xsd on element is not defined
            <xsd:element name="date" type="xsd:string"/>
                                                      ^
/corpus/file-scraper/tests/data/text_xml/supplementary/local_nons.xsd:10: namespace error : Namespace prefix xsd on element is not defined
            <xsd:element name="heading" type="xsd:string"/>
                                                         ^
/corpus/file-scraper/tests/data/text_xml/supplementary/local_nons.xsd:11: namespace error : Namespace prefix xsd on element is not defined
            <xsd:element name="body" type="xsd:string"/>
                                                      ^
/tmp/file-scraper-mqal3bxa.tmp:2: element import: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}import': The XML document '/corpus/file-scraper/tests/data/text_xml/supplementary/local_nons.xsd' is not a schema document.
WXS schema /tmp/file-scraper-mqal3bxa.tmp failed to compile

Notes on the error