Bug #3561

Updated by Michael Kay almost 5 years ago

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.