Davide Brunato
b7b6fef418
Base modules refactoring for fix ElementTree import
2019-10-07 15:31:18 +02:00
Davide Brunato
9e58e99e01
Add XSD 1.1 support and XSD components API to documentation
2019-08-19 13:52:30 +02:00
Davide Brunato
6e90de7b4c
Add Version Control namespace attributes
...
- Added xsd_version property to XSD components
- Add version_check() helper to XsdValidator base class
2019-07-31 14:19:02 +02:00
Davide Brunato
3d33424541
Refactor and clean reference and name attributes parsing
...
- Add an helper method _parse_reference()
- Removed ref property, replaced by attribute
2019-07-29 16:01:48 +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
b01a8579d2
Complete W3C tests with valid schemas for XSD 1.0
...
- Added XsdElement.get_path()
- Fixes for XSD types, identities and pattern facets
2019-03-19 10:58:12 +01:00
Davide Brunato
19cde9ec39
Update documentation
2019-02-02 23:16:45 +01:00
Davide Brunato
9d6b88baae
Change copyright years info
2019-01-20 16:56:10 +01: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
Davide Brunato
c790838d13
Move XSD builtin QNames to qnames.py module
2018-10-08 15:32:50 +02:00
Davide Brunato
a34033ee2f
Improve matching and use unicode_literals
...
- Added names attribute for XSD declarations
2018-09-15 22:18:16 +02:00
Davide Brunato
ea16244f4d
Add 'parent' attribute to XsdComponent classes
...
- Attribute 'is_global' turned to a property
- XSD builtins creation rewritten and simplyfied
2018-08-08 17:23:20 +02:00
Davide Brunato
175d3a1ab3
Extension of validator error classes done
...
- Now all errors include reference to XML resource and namespaces
- Added namespaces argument to iter_errors() and validate() methods
- Modified etree_iterpath to map namespaces and to add position
predicates for repeated tags
- Added namespaces, relative and add_position to etree_getpath
- XsdValidator._parse_error() renamed to parse_error
- ValidationMixin._validation_error() renamed to validation_error
- Added test for errors completeness
2018-08-07 21:45:30 +02:00
Davide Brunato
a823e1d504
Rename XsdBaseComponent as XsdValidator
2018-08-06 07:11:37 +02:00
Davide Brunato
a9bc080ae5
Simplifying XSD components hierarchy
...
- Removed XsdAnnotated
- XsdAnnotated._parse() now is owned by XsdComponent
- XsdAnnotation _parse() method skip parent (XsdComponent) method
2018-04-05 09:28:49 +02:00
Davide Brunato
43d0c77eee
Fixed bug #34 , updated copyright information.
2018-01-08 09:15:09 +01:00
Davide Brunato
094caa146e
Some refactoring and bug fixes.
...
- Fixed issues #28 and #29
- Code cleaning
- Created a "validators" subpackage that includes schemas, xsd global
maps and all the XSD components
- Added "prefixed_name" property to XsdComponent class
2017-12-15 15:56:07 +01:00