Hi,
The YANG 1.1 ABNF says:
;; An identifier MUST NOT start with (('X'|'x') ('M'|'m') ('L'|'l'))
identifier = (ALPHA / "_")
*(ALPHA / DIGIT / "_" / "-" / ".")
There is no explanation given why.
The same restriction was copied to RESTCONF, also without explanation.
Supposedly, XML does not allow identifiers to start with XML.
Looks like this restriction only applies to the PITarget [17], not Name [5]
https://www.w3.org/TR/REC-xml/#sec-pi
We have been applying this restriction to element names
but it only applies to processing instructions.
IMO it should be removed.
It confuses people when they get an error for naming a data node
with a string that matches.
Andy
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod