generate-id() on attribute and namespace nodes may produce a non-ASCII string
The rules for generate-id() require that the returned ID consists entirely of ASCII alphanumerics. Saxon-JS does not conform to this when the node in question is an attribute or namespace; it copies the (local) name of the node into the generated ID.
The spec states:
The returned identifier must consist of ASCII alphanumeric characters and must start with an alphabetic character. Thus, the string is syntactically an XML name.
But of course, not every valid XML name consists entirely of ASCII alphanumeric characters.
Please register to edit this issue