Project

Profile

Help

The use of dataTypes in Saxon-B (DOM)

Added by Anonymous over 18 years ago

Legacy ID: #3837315 Legacy Poster: oneil (ond1)

Hi, does the getSchemaTypeInfo() method in Saxon's DOM Element Node implmentation do anything? My thought is the parser have to look at the schema and get the data-types of the element and attributes. However the Saxon-B is not Schema aware so is it fair to say this would always return untyped?


Replies (1)

RE: The use of dataTypes in Saxon-B (DOM) - Added by Anonymous over 18 years ago

Legacy ID: #3837326 Legacy Poster: Michael Kay (mhkay)

The Javadoc says that it will always return null if the node is untyped (which is always the case in Saxon-B). Looking at the code, however, I think it might return a SchemaType object representing the type xs:untyped. Saxon-SA will, if the element has been validated against a schema, return an object representing the type annotation.

    (1-1/1)

    Please register to reply