private void doInclude(final URL url, final XsdAtom xsdAtom, final XsltX xsltX) throws IOException { final Collection<Element> children = ElementU.getChildren(xsdAtom.getElement(), XsdU.INCLUDE); for (final Element child : children) { final String schemaLocation = ElementU.getAttribute(child, XsdU.SCHEMA_LOCATION); final URL urlInclude = URLCodec.resolve(url, schemaLocation); add(null, urlInclude, xsltX); } }
private void doImport(final URL url, final XsdAtom xsdAtom, final XsltX xsltX) throws IOException { final Collection<Element> children = ElementU.getChildren(xsdAtom.getElement(), XsdU.IMPORT); for (final Element child : children) { final String namespace = ElementU.getAttribute(child, XsdU.NAMESPACE); final String schemaLocation = ElementU.getAttribute(child, XsdU.SCHEMA_LOCATION); final URL urlImport = URLCodec.resolve(url, schemaLocation); add(namespace, urlImport, xsltX); } }