public ParsedPattern parseExternal(String uri, SchemaBuilder schemaBuilder, Scope s, String inheritedNs) throws BuildException, IllegalSchemaException { try { XMLReader xr = xrc.createXMLReader(); SchemaParser sp = new SchemaParser(this, xr, eh, schemaBuilder, null, s, inheritedNs); xr.parse(makeInputSource(xr, uri)); return sp.getParsedPattern(); } catch (SAXException e) { throw SAXParseable.toBuildException(e); } catch (IOException e) { throw new BuildException(e); } }
public ParsedPattern parseExternal(String uri, SchemaBuilder schemaBuilder, Scope s, String inheritedNs) throws BuildException, IllegalSchemaException { try { XMLReader xr = xrc.createXMLReader(); SchemaParser sp = new SchemaParser(this, xr, eh, schemaBuilder, null, s, inheritedNs); xr.parse(makeInputSource(xr, uri)); return sp.getParsedPattern(); } catch (SAXException e) { throw SAXParseable.toBuildException(e); } catch (IOException e) { throw new BuildException(e); } }
public ParsedPattern parseInclude(String uri, SchemaBuilder schemaBuilder, IncludedGrammar g, String inheritedNs) throws BuildException, IllegalSchemaException { try { XMLReader xr = xrc.createXMLReader(); SchemaParser sp = new SchemaParser(this, xr, eh, schemaBuilder, g, g, inheritedNs); xr.parse(makeInputSource(xr, uri)); return sp.getParsedPattern(); } catch (SAXException e) { throw SAXParseable.toBuildException(e); } catch (IOException e) { throw new BuildException(e); } }
public ParsedPattern parseInclude(String uri, SchemaBuilder schemaBuilder, IncludedGrammar g, String inheritedNs) throws BuildException, IllegalSchemaException { try { XMLReader xr = xrc.createXMLReader(); SchemaParser sp = new SchemaParser(this, xr, eh, schemaBuilder, g, g, inheritedNs); xr.parse(makeInputSource(xr, uri)); return sp.getParsedPattern(); } catch (SAXException e) { throw SAXParseable.toBuildException(e); } catch (IOException e) { throw new BuildException(e); } }