tag:blogger.com,1999:blog-5048327124946889578.post8533459092632545737..comments2023-11-11T12:59:40.254+05:30Comments on Mukul Gandhi: Co-occurrence constraints and Conditional Type Assignment, with XML Schema 1.1Mukul Gandhihttp://www.blogger.com/profile/18274168324155284011noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5048327124946889578.post-87185408590536122732020-02-14T06:10:45.507+05:302020-02-14T06:10:45.507+05:30I apologize, that I saw your comment late.
The XS...I apologize, that I saw your comment late.<br /><br />The XSD processor that you're using, doesn't seem to support XSD 1.1, and that's why you're getting errors that xs:assert element isn't recognized within your schema document. Two good XSD 1.1 processors that I'm aware of are, Apache Xerces and Saxon (there could be others as well) that you may use.Mukul Gandhihttps://www.blogger.com/profile/18274168324155284011noreply@blogger.comtag:blogger.com,1999:blog-5048327124946889578.post-28545246294419939312019-08-28T22:04:38.729+05:302019-08-28T22:04:38.729+05:30While trying to execute the above xsd. I am gettin...While trying to execute the above xsd. I am getting this error. I have xmlschema 1.0.14 version installed. Could you please help identify why I am seeing this issue.<br /><br />>>> import xmlschema<br />>>> my_schema = xmlschema.XMLSchema('/home/centos/sample1.xsd')<br />Traceback (most recent call last):<br /> File "/usr/local/lib/python3.6/site-packages/xmlschema/validators/schema.py", line 360, in __init__<br /> self.check_schema(root, self.namespaces)<br /> File "/usr/local/lib/python3.6/site-packages/xmlschema/validators/schema.py", line 674, in check_schema<br /> raise error<br />xmlschema.validators.exceptions.XMLSchemaChildrenValidationError: failed validating with XsdGroup(model='sequence', occurs=[1, 1]):<br /><br />Reason: Unexpected child with tag 'xs:assert' at position 3.<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br /> File "", line 1, in <br /> File "/usr/local/lib/python3.6/site-packages/xmlschema/validators/schema.py", line 362, in __init__<br /> self.parse_error(e.reason, elem=e.elem)<br /> File "/usr/local/lib/python3.6/site-packages/xmlschema/validators/xsdbase.py", line 168, in parse_error<br /> raise error<br />xmlschema.validators.exceptions.XMLSchemaParseError: Unexpected child with tag 'xs:assert' at position 3:<br /><br />Satish Botlahttps://www.blogger.com/profile/03628843494491251098noreply@blogger.com