Re: [xml] Euro sign in xml:id

On 06/04/2022 00:40, Einhard Leichtfuß wrote:
I noticed that xmllint complains about the Euro sign ("€") in an xml:id.
  - "validity error : xml:id : attribute value € is not an NCName"

The W3C's XML specification, however, seems to allow this:
  * '€' is #x20ac which is in the range [#x2070-#x218F], a subset of
    NameStartChar, and may, therefore, occur anywhere in an NCName.

Am I mistaken above, should I look at another specification, or is this
a bug?

This is a bug. The xmlValidate*Name functions in tree.c weren't updated to XML 1.0, Fifth Edition which includes the following change:

This issue is now tracked here:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]