The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# test invalid Schema Component Constraints
# only 1 test per file, as first test will always fail the whole file when the schema is parsed

--- |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="bad_length-minLength-maxLength" type="bad_length-minLength-maxLength"/>
  <xs:simpleType name="bad_length-minLength-maxLength">
    <xs:restriction base="xs:string">
      <xs:length value="2"/>
      <xs:maxLength value="2"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

--- |
  <bad_length-minLength-maxLength>ab</bad_length-minLength-maxLength>
--- >
FAIL /Facet <length> is defined in addition to facets <minLength> or <maxLength>/