Conformance of Sense IDs to xsd:ID in XML #749
Labels
release format
This issue refers to the WNDB or RDF export, so no changes will be made to this repository
Milestone
Sense IDs conform to the old ID definition but not the more recent xsd:ID. The former are Names, the latter must be NCNames (NonColonizedName) which are defined by production:
NCName ::= Name - (Char* ':' Char*)
which is Name minus the colon.
see https://www.w3.org/TR/xmlschema-2/#ID
Validators which use the Java std runtime (1), Woodstox (2), RNG (3), ... will raise errors. I can confirm (1) and (2). (3) by https://stackoverflow.com/questions/6811188
(1)
[E] org.xml.sax.SAXParseException; systemId: file://src/xml/wn-noun.body.xml; lineNumber: 13; columnNumber: 82; cvc-datatype-valid.1.2.1: 'ewn-organ_of_hearing__1:08:00::' is not a valid value for 'NCName'. javax.xml.transform.stream.StreamSource@7530d0a
(2)
[E] attribute "id" has a bad value: "ewn-organ_of_hearing__1:08:00::" does not satisfy the "ID" type [row,col,system-id]: [13,7,"file:src/xml/wn-noun.body.xml"]
The text was updated successfully, but these errors were encountered: