int annotation = getTypeAnnotation();
if ((annotation & NodeInfo.IS_DTD_TYPE) != 0) {
annotation = StandardNames.XS_UNTYPED_ATOMIC;
}
if (annotation == -1 || annotation == StandardNames.XS_UNTYPED_ATOMIC || annotation == StandardNames.XS_UNTYPED) {
return new UntypedAtomicValue(getStringValueCS());
} else {
SchemaType stype = getConfiguration().getSchemaType(annotation);
if (stype == null) {
String typeName = getNamePool().getDisplayName(annotation);
throw new XPathException("Unknown type annotation " +