cellml / libcellml

Repository for libCellML development.
https://libcellml.org
Apache License 2.0
17 stars 21 forks source link

id strings could be anything? #438

Closed kerimoyle closed 5 years ago

kerimoyle commented 5 years ago

I see that there was discussion on "allowing" id attributes everywhere ... but they're never used? They're not currently checked in the validator, and I'm trying to explain what they are/do in the tutorials ...

agarny commented 5 years ago

They are "just" a way to identify a CellML element so that it can, for example, be used for annotation.

kerimoyle commented 5 years ago

Weird name for them then! I would have thought id required something stricter than name. Ah well.

nickerso commented 5 years ago

The id attribute is defined as an ID type attribute - simply providing a unique identifier to any element in the XML document. Typically these are only used when wanting to directly address a specific element in the document - for example when annotating or defining an XPath expression in SED-ML.

If they are not being validated, then that is the actual bug :) will close this one and open a new one for that.