public void patch() { Expression e=null; if( reader.isSchemaNamespace(s[0]) ) // datatypes of XML Schema part 2 e = reader.resolveBuiltinSimpleType(s[1]); if(e==null) { XMLSchemaSchema g = reader.getOrCreateSchema(s[0]/*uri*/); e = g.simpleTypes.get(s[1]/*local name*/); if(e==null) e = g.complexTypes.get(s[1]); if(e==null ) { // both simpleType and complexType are undefined. reader.reportError( XMLSchemaReader.ERR_UNDEFINED_ELEMENTTYPE, typeQName ); e = Expression.nullSet; // recover by dummy definition. } } ref.exp = e; } });
public void patch() { Expression e=null; if( reader.isSchemaNamespace(s[0]) ) // datatypes of XML Schema part 2 e = reader.resolveBuiltinSimpleType(s[1]); if(e==null) { XMLSchemaSchema g = reader.getOrCreateSchema(s[0]/*uri*/); e = g.simpleTypes.get(s[1]/*local name*/); if(e==null) e = g.complexTypes.get(s[1]); if(e==null ) { // both simpleType and complexType are undefined. reader.reportError( XMLSchemaReader.ERR_UNDEFINED_ELEMENTTYPE, typeQName ); e = Expression.nullSet; // recover by dummy definition. } } ref.exp = e; } });
public void patch() { Expression e=null; if( reader.isSchemaNamespace(s[0]) ) // datatypes of XML Schema part 2 e = reader.resolveBuiltinSimpleType(s[1]); if(e==null) { XMLSchemaSchema g = reader.getOrCreateSchema(s[0]/*uri*/); e = g.simpleTypes.get(s[1]/*local name*/); if(e==null) e = g.complexTypes.get(s[1]); if(e==null ) { // both simpleType and complexType are undefined. reader.reportError( XMLSchemaReader.ERR_UNDEFINED_ELEMENTTYPE, typeQName ); e = Expression.nullSet; // recover by dummy definition. } } ref.exp = e; } });
public void patch() { Expression e=null; if( reader.isSchemaNamespace(s[0]) ) // datatypes of XML Schema part 2 e = reader.resolveBuiltinSimpleType(s[1]); if(e==null) { XMLSchemaSchema g = reader.getOrCreateSchema(s[0]/*uri*/); e = g.simpleTypes.get(s[1]/*local name*/); if(e==null) e = g.complexTypes.get(s[1]); if(e==null ) { // both simpleType and complexType are undefined. reader.reportError( XMLSchemaReader.ERR_UNDEFINED_ELEMENTTYPE, typeQName ); e = Expression.nullSet; // recover by dummy definition. } } ref.exp = e; } });