Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1014 Unknown namecode during XSD validation with xml:lang

v9.2
closed
Michael Kay
5
2012-10-08
2009-12-04
Michael Kay
No

Saxon has the schema for the XML namespace built-in (it does not need to be compiled from a source schema document). This is used when <xs:import namespace="(XML namespace)"/> is encountered with no schemaLocation.

Within this schema, the union type used for the type of xml:lang (a union of xs:language and a zero-length string) has no name allocated, which may cause the unrecoverable error "Unknown name code" during instance document validation.

A fix has been produced in the development branch (line 50 of XMLNamespaceSchema.java), it will be issued for Saxon 9.2 in due course.

Discussion

  • Michael Kay
    Michael Kay
    2010-01-27

    Fixed in 9.2.0.5