protected State createChildState( StartTagInfo tag ) {
// accepts elements from the same namespace only.
if( !startTag.namespaceURI.equals(tag.namespaceURI) ) return null;
if( tag.localName.equals("annotation") ) return new IgnoreState();
if( tag.localName.equals("simpleType") ) return new SimpleTypeState();
if( FacetState.facetNames.contains(tag.localName) ) {
if( incubator==null ) {
reader.reportError( GrammarReader.ERR_MISSING_ATTRIBUTE, "restriction", "base" );
onEndChild(new XSDatatypeExp(StringType.theInstance,reader.pool));