XLSForm/pyxform

Forbid colon as first character in XML identifiers

lognaturel opened this issue · 1 comments

Colons are currently allowed as the first character of XML identifiers: https://github.com/XLSForm/pyxform/blob/master/pyxform/xlsparseutils.py#L8

This is consistent with https://www.w3.org/TR/REC-xml/#NT-NameStartChar but doesn't really make sense in real usage as described at https://stackoverflow.com/a/40446164/137744

We should probably forbid colons in the identifiers at all since we don't really support namespacing of body elements (#105 (comment)).

Validate doesn't allow leading colons anyway so we really should update the message and logic.