Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1051 Validation against schema-for-schemas

v9.2
closed
Michael Kay
5
2012-10-08
2010-03-18
Michael Kay
No

During validation of a document against the W3C schema-for-schemas, an element might be validated against the type named xs:attribute; as a result, this will be the type annotation on the node. Subsequent processing may attempt to retrieve the complex type definition corresponding to this annotation. The attempt to look up this type fails, returning null, which is very likely to cause a NullPointerException. The reason it fails is that xs:attribute is a "built-in" name (one that is given a fixed fingerprint rather than a dynamic one allocated from the NamePool), and Saxon is assuming that a type with a built-in name is a built-in type, which xs:attribute is not. The same problem could occur if other built-in names, for example xsl:version, are used for user-defined types.

A patch to module EnterpriseConfiguration.java (in the Saxonica private code) is being raised.

Discussion

  • Michael Kay
    Michael Kay
    2010-04-26

    Fixed in 9.2.1.1