Open bilalshaikh42 opened 2 years ago
Related to #108
Because the RNG file was created long ago, fixing it at the source seems like a slow path.
I see two options:
validation.py
. The former is more elegant, but the latter seems easier because it doesn't require understanding the CellML and MathML RNG schemas.
Actually, I don't think the schema is wrong. It seems that most of the files that are running into this issue are actually CellML 1.1 files, that have the namespace incorrectly set to CellML 1.0. I will look into that and confirm if that is actually what is happening
Many of the errors in importing the Physiome CellMl models are are due to the attribute "id" being present in the equation element, which is flagged by the schema as incorrect. However, the CellML primer explicitly mentions that this is expected use. https://www.cellml.org/getting-started/cellml-primer
Therefore the schema used in this package, which is taken directly from the CellML page, is incorrect. This needs to be corrected at the source or a temporary workaround can be added here until then, with this issue being a reminder to fix upstream