Hi all,
I've been trying to validate xml files against the latest (kernel-4.4) DataCite schema definition using a Python package called xmlschema. I had some issues validating the schema file itself (metadata.xsd) due to the use of xsi:type in some of the declared elements.
I raised an issue with xmlschema here and the conclusion was that while the issue is generally ignored by most xml validators, the use of the xsi:type attribute is reserved for xml instances and not valid within schema definition files. They have labelled the issue as a bug and will modify their code base to not raise an error but they also suggest to change xsi:type to a simple type declaration in the schema file.
I'm not so experienced in xml myself so I'm just relaying the message. Best course of action is obviously up to you :)
Hi all,
I've been trying to validate xml files against the latest (kernel-4.4) DataCite schema definition using a Python package called xmlschema. I had some issues validating the schema file itself (metadata.xsd) due to the use of
xsi:typein some of the declared elements.I raised an issue with xmlschema here and the conclusion was that while the issue is generally ignored by most xml validators, the use of the
xsi:typeattribute is reserved for xml instances and not valid within schema definition files. They have labelled the issue as a bug and will modify their code base to not raise an error but they also suggest to changexsi:typeto a simpletypedeclaration in the schema file.I'm not so experienced in xml myself so I'm just relaying the message. Best course of action is obviously up to you :)