Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect evaluation on assertions containing intergers list? #311

Closed
piscvau opened this issue Jun 25, 2022 · 3 comments
Closed

incorrect evaluation on assertions containing intergers list? #311

piscvau opened this issue Jun 25, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@piscvau
Copy link

piscvau commented Jun 25, 2022

Hello
Sorry to come back but I have strong doubts on the evaluation by XMLSchema of the assertions on list. Here is a zip containing 2 files one is considered as valid the other one considered as invalid. The only difference to me is that the incorrect one contains a list for nextsnum which to me should be considered as valid asit contains a list of valid partNumbers 1 and 3.
Or else the assertion on list is not correct.
issue_with_list.tar.gz.zip
.

@brunato
Copy link
Member

brunato commented Jul 5, 2022

Hi,
it seems that also the incorrect_with_list.xml is good. The problem is the XPath processor (elementpath).
The type is matched but the list is non considered when check the values. I'll try to make a fix for this soon.

Thank you

@brunato brunato added the bug Something isn't working label Jul 7, 2022
@brunato
Copy link
Member

brunato commented Jul 11, 2022

It was incomplete implementation of XPath atomization. Will be fixed in xmlschema v2.0, that will be based on elementpath v3.0

@brunato
Copy link
Member

brunato commented Jul 18, 2022

Should be fixed in xmlschema==2.0.0, and also issue #312.
If is it, close both o reply where the error persists.

Thank you

@brunato brunato closed this as completed Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants