- Protect facets validators from type and value errors
- Add strictly_equal() helper to check fixed value equality
- Move get_instance_type() from XsdType to global maps
- Add iter_substitutes() to Xsd11Element to fix upa.xsd/upa2.xsd
tests with instances. Now for XsdElement the abstract substitutes
are simply ignored by iter_substitutes().
- Fixed etree encoding checks for py2
- Fixed XSD 1.1 meta-schema restriction checking
- Set memory lazy tests to higher level (something
changed after lazy meta-schema build, need to be
checked with large XML files)
- Added XMLSchemaNamespaceError for namespace related errors
- version_check moved to schema class
- resolve_qname() now raises KeyError if namespace prefix is not found
- resolve_qname() now raises XMLSchemaNamespaceError if a namespace
is mapped with a prefix but is not loaded by an import
- Checked and improved 'built' properties for XSD components:
* Simple types, attributes and attribute group are now built
withoug cheching on base types.
* Don't check global subcomponents: the scope of built is to
assure that local parts are built.
- Split global maps checks from build phase:
* XsdGlobals._check_schema substituted by check() method with
two opional arguments. The new methos is useful also to check
global maps also after schema building.
- Added validator=None argument to parse_error() method
- Default and fixed values are inserted during the decode or
encode process
- Update tox.ini to include coverage and flake8 to environments
and an optional environment to build source and wheel packages
- Added a test case and a test method for this
- Modified iter_components for XsdComplexType to also count the
base type if it's a local declaration
- Modified XsdGroup.iter_components() to yield also the redefined group
- Added facets to numerical XSD builtins but keep validator functions
- More checks on min/max value facets
- Removed HFP namespace from base schemas (used only for meta-schema wildcars)
- Added check on type matching of same elements
- Added XsdGroup.check_particles() for check Unique Particle Attribution
Constraint of schema
- Fixed group redefine (clear in any case when _parse begins)
- Refine iter_components for schemas: now filter the globals that
don't belong to the schema (same namespace but different schemas)
- Cleaned XsdGlobals.all_errors property
- Replace equivalent code in XMLSchemaMeta
- Used by XsdGlobals to replace meta schema in case of import of
a base-schema namespace (XSD, XSI, XML, XLINK, HFP)
- Added meta_maps argument to XMLSchemaBase
- Fixed content_type assignement in _parse_complex_content_extension:
now it's set after base_type usage, using a local variable.
- Same fix for method _parse_complex_content_restriction.