When generating LaTeX validation rules, the internal ID is used instead of the 'XML name'.
As an example:

The 'rangeId' attribute is actually just 'range' in the XML, but the validation rules (both in the generated C++ and in the LaTeX) claim that it is 'rangeId'.