Davide Brunato
bc78682fe8
Extend fn:string() to schema nodes
...
- Removed node_string_value(), replaced entirely by the method
string_value() of the class XPathToken.
2019-08-13 18:06:49 +02:00
Davide Brunato
aeba3aab05
Split xpath_helpers module in two parts
...
- Datatype conversion helpers moved fo token class
- Node helpers moved to a new module
- Kept boolean_value() for backward compatibility
2019-08-03 22:53:37 +02:00
Davide Brunato
9bfdedc831
Raise a more specific error for wrong number of arguments
...
- Applied to functions and constructors
- Raises a TypeError instead of a generic SyntaxError
- Added tests for execptions in test_helpers.py
2019-05-20 11:08:49 +02:00
Davide Brunato
a1506e8334
Hotfix release v1.1.5
...
- Fix issue #3 splitting xs:gYear type, creating an unordered base
type XPathGregorianYear and then deriving GregorianYear10 also from
OrderedDateTime to implement comparison operators.
- Rewritten in the same way the remaining gregorian types, inverting
the bases (put XSD 1.0 only types as the base).
2019-02-23 22:25:14 +01:00
Davide Brunato
808d0ef75d
Closing the release v1.1.4
...
- Add get_primitive_type() to XMLSchemaProxy
- Restore boolean_value() usage with an additional token=None argument
to preserve compatibility with xmlschema v1.0.9
- Remove XPathToken.boolean()
- XSD_BUILTIN_TYPES sample values completed
2019-02-21 19:46:17 +01:00
Davide Brunato
7539b5b0e1
Add tests for value comparison operators
...
- Remove the usage of boolean_value() helper from package, replaced
by XPathToken.boolean() helper
- Update the changelog
2019-02-21 16:06:54 +01:00
Davide Brunato
4230146f97
Add base_element to AbstractSchemaProxy
...
- base_element as initial context item in static analysis phase
2019-02-16 09:55:14 +01:00
Davide Brunato
dcfa6209f4
Add schema to static analysis phase
...
- Added XPathSchemaContext class to schema_proxy.py
2019-02-15 18:44:18 +01:00
Davide Brunato
b392d7534e
Realize a full static analysis
2019-02-15 14:00:49 +01:00
Davide Brunato
43ba4e2a5e
Add fn:dateTime() and update changelog
2019-01-13 00:00:38 +01:00
Davide Brunato
c03e88906f
Update tests and docs
...
- Add 2019 to copyright information
- Update Shphinx docs about XPath 2 status
- Tests splitted into several modules (all tests are runned as before
by the script test_elementpath.py or by "python -m unitest")
2019-01-12 10:28:44 +01:00
Davide Brunato
f945f56af2
Develop XSD datatypes
...
- Code cleaning
- Add common_era_delta property
- Add OrderedDateTime class as base for Date and DateTime
- Use Date10, DateTime10, GregorianYear10 and GregorianYearMonth10
for XPath 2.0 constructors.
2019-01-11 17:41:20 +01:00
Davide Brunato
d94824167f
Rewrite AbstractDateTime for supporting years > 9999
2019-01-04 19:08:55 +01:00
Davide Brunato
c1478df580
Code cleaning on error management and constructors
2018-12-23 02:06:29 +01:00
Davide Brunato
3c286e9c83
Add cast method to constructors and revise error generation
...
- Add xpath_error helper method to exceptions module
2018-12-23 00:08:15 +01:00
Davide Brunato
94c991cc02
Code cleaning and documentation updated
...
- xpath2_parser splitted into three modules
- Update documentation APIs
2018-12-21 22:58:31 +01:00