Commit Graph

23 Commits

Author SHA1 Message Date
Davide Brunato b7b6fef418 Base modules refactoring for fix ElementTree import 2019-10-07 15:31:18 +02:00
Davide Brunato 7fcacde313 Fix issue #136
- 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
2019-10-03 22:00:32 +02:00
Davide Brunato 23390a1ed7 Fix xs:keyref ref building and add count_digits() helper 2019-09-20 11:49:01 +02:00
Davide Brunato 590c7e6c41 Add intersection() to XsdWildcard
- Renamed XsdWildcard.extend() to union()
2019-09-17 16:37:16 +02:00
Davide Brunato f8ad4d975c Code cleaning: remove get_xml_bool_attribute() helper function 2019-08-09 12:45:11 +02:00
Davide Brunato d4bb951a45 Improve schema checks
- 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
2019-07-30 14:52:51 +02:00
Davide Brunato 3db78707b1 Complete openContent and defaultOpenContent parsing 2019-07-12 18:22:11 +02:00
Davide Brunato 1f3a72a2c8 Code cleaning for converter classes
- Add lossy property as a replace for lossless (not lossy)
  - replace _unmap_attribute_qname() with unmap_prefixed()
  - Add deprecation warnings for old methods
2019-07-02 15:46:59 +02:00
Davide Brunato 281a426ec4 Code optimization on parse helpers
- Remove iter_xsd_components() and has_hsd_components() helpers
    replaced by filter() and any() calls
2019-06-26 07:27:18 +02:00
Davide Brunato 36dbb1a904 Move and fix XsdType.is_derived()
- Method replaced by an abstract method and moved to XsdSimpleType
2019-04-15 18:49:42 +02:00
Davide Brunato 85cdd364ad Fix facets for XSD builtin types
- 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)
2019-03-28 07:26:36 +01:00
Davide Brunato d58f8b7130 Add helper function get_xsd_form_attribute() 2019-03-27 15:20:13 +01:00
Davide Brunato 5917873b7f Add resolve_qname() to XMLSchemaBase
- Replace prefixed_to_qname() with resolve_qname()
  - Code cleaning for helpers.py module
  - Add schema defaults as XMLSchemaBase class attributes
2019-03-14 15:18:28 +01:00
Davide Brunato 5ca74c769e Continuing W3C tests integration
- Passed first 4817 valid schemas tests
2019-03-09 10:05:19 +01:00
Davide Brunato 326ea24785 Rewrite XSD derivation properties and attributes 2019-03-02 23:32:11 +01:00
Davide Brunato bcf6f7b21b Replace XsdSimpleType.check_facets() with _parse_facets() 2019-03-02 09:39:11 +01:00
Davide Brunato 878a1815db Add _parse_xpath_default_namespace() to XsdComponent
- Removed get_xpath_default_namespace() helper and its tests
  - Removed xpath_default_namespace property from XsdComponent
2019-02-23 12:45:44 +01:00
Davide Brunato b8b31f95ca Remove old XSD datetime types validators
- Add test subclass TestDecoding11
  - Remove unused regex patterns related to datetime types
2019-01-20 22:59:23 +01:00
Davide Brunato 9d6b88baae Change copyright years info 2019-01-20 16:56:10 +01:00
Davide Brunato 9d393fbc81 Complete the tests for XSD 1.1 builtin types
- Update CHANGELOG.rst for releasing
2018-10-21 08:10:52 +02:00
Davide Brunato 9a3329dfbe Fix builtin types for XSD 1.1
- Added dayTimeDuration and yearMonthDuration
  - Split XSD 1.0 and XSD 1.1 builtins and tests
2018-10-20 16:31:55 +02:00
Davide Brunato 3c7e4d2577 Fix for issue #85 2018-10-18 19:05:29 +02:00
Davide Brunato bd90cacc7a QNames refactoring
- Moved all QNames to the same module
  - Create module helpers.py that includes XSD parse utils and name
    manipulation helper functions
2018-10-08 23:47:18 +02:00