protected void startSelf() { super.startSelf(); final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // TODO: @schemaLocation is optional. String namespace = startTag.getAttribute("namespace"); if( namespace==null ) namespace=""; if( namespace.equals(reader.currentSchema.targetNamespace) ) { reader.reportError( XMLSchemaReader.ERR_IMPORTING_SAME_NAMESPACE ); return; } if( reader.isSchemaDefined( reader.getOrCreateSchema(namespace) ) ) // this grammar is already defined. // so ignore it. return; try { reader.switchSource( this, new RootIncludedSchemaState(reader.sfactory.schemaHead(namespace)) ); } catch( AbortException e ) { // recover by ignoring the error } } }
protected void startSelf() { super.startSelf(); final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // TODO: @schemaLocation is optional. String namespace = startTag.getAttribute("namespace"); if( namespace==null ) namespace=""; if( namespace.equals(reader.currentSchema.targetNamespace) ) { reader.reportError( XMLSchemaReader.ERR_IMPORTING_SAME_NAMESPACE ); return; } if( reader.isSchemaDefined( reader.getOrCreateSchema(namespace) ) ) // this grammar is already defined. // so ignore it. return; try { reader.switchSource( this, new RootIncludedSchemaState(reader.sfactory.schemaHead(namespace)) ); } catch( AbortException e ) { // recover by ignoring the error } } }
protected void startSelf() { super.startSelf(); final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // TODO: @schemaLocation is optional. String namespace = startTag.getAttribute("namespace"); if( namespace==null ) namespace=""; if( namespace.equals(reader.currentSchema.targetNamespace) ) { reader.reportError( XMLSchemaReader.ERR_IMPORTING_SAME_NAMESPACE ); return; } if( reader.isSchemaDefined( reader.getOrCreateSchema(namespace) ) ) // this grammar is already defined. // so ignore it. return; try { reader.switchSource( this, new RootIncludedSchemaState(reader.sfactory.schemaHead(namespace)) ); } catch( AbortException e ) { // recover by ignoring the error } } }
ExpressionPool pool ) { super(controller,parserFactory,pool,new RootState(stateFactory.schemaHead(null))); this.sfactory = stateFactory;
ExpressionPool pool ) { super(controller,parserFactory,pool,new RootState(stateFactory.schemaHead(null))); this.sfactory = stateFactory;
ExpressionPool pool ) { super(controller,parserFactory,pool,new RootState(stateFactory.schemaHead(null))); this.sfactory = stateFactory;
ExpressionPool pool ) { super(controller,parserFactory,pool,new RootState(stateFactory.schemaHead(null))); this.sfactory = stateFactory;
protected void startSelf() { super.startSelf(); final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // TODO: @schemaLocation is optional. String namespace = startTag.getAttribute("namespace"); if( namespace==null ) namespace=""; if( namespace.equals(reader.currentSchema.targetNamespace) ) { reader.reportError( XMLSchemaReader.ERR_IMPORTING_SAME_NAMESPACE ); return; } if( reader.isSchemaDefined( reader.getOrCreateSchema(namespace) ) ) // this grammar is already defined. // so ignore it. return; try { reader.switchSource( this, new RootIncludedSchemaState(reader.sfactory.schemaHead(namespace)) ); } catch( AbortException e ) { // recover by ignoring the error } } }
/** * Parses an additional schema. * * The caller can call this method many times to parse * multiple schemas. * * If possible, the caller should set the system Id to the InputSource. */ public void parse( InputSource is ) { reader.switchSource( is, new RootIncludedSchemaState( reader.sfactory.schemaHead(null)) ); }
/** * Parses an additional schema. * * The caller can call this method many times to parse * multiple schemas. * * If possible, the caller should set the system Id to the InputSource. */ public void parse( InputSource is ) { reader.switchSource( is, new RootIncludedSchemaState( reader.sfactory.schemaHead(null)) ); }
/** * Parse a schema supplied by a javax.xml.transform Source. * @param source */ public void parse(Source source) { reader.switchSource(source, new RootIncludedSchemaState( reader.sfactory.schemaHead(null)) ); }
/** * Parses an additional schema. * * The caller can call this method many times to parse * multiple schemas. * * If possible, the caller should set the system Id to the InputSource. */ public void parse( InputSource is ) { reader.switchSource( is, new RootIncludedSchemaState( reader.sfactory.schemaHead(null)) ); }
/** * Parses an additional schema. * * The caller can call this method many times to parse * multiple schemas. * * If possible, the caller should set the system Id to the InputSource. */ public void parse( InputSource is ) { reader.switchSource( is, new RootIncludedSchemaState( reader.sfactory.schemaHead(null)) ); }
/** * Parse a schema supplied by a javax.xml.transform Source. * @param source */ public void parse(Source source) { reader.switchSource(source, new RootIncludedSchemaState( reader.sfactory.schemaHead(null)) ); }