public XdmNode loadDocument(Load load) { boolean validate = load.getOption(_dtd_validate, false); RuntimeValue href = load.getOption(_href); String base = href.getBaseURI().toASCIIString(); if (runtime.getSafeMode() && base.startsWith("file:")) { throw XProcException.dynamicError(21); } return runtime.parse(href.getString(), base, validate); }
public XdmNode loadDocument(Load load) { boolean validate = load.getOption(_dtd_validate, false); RuntimeValue href = load.getOption(_href); String base = href.getBaseURI().toASCIIString(); if (runtime.getSafeMode() && base.startsWith("file:")) { throw XProcException.dynamicError(21); } return runtime.parse(href.getString(), base, validate); }
public void run() throws SaxonApiException { super.run(); try { XdmNode doc = runtime.getConfigurer().getXMLCalabashConfigurer().loadDocument(this); result.write(doc); } catch (XProcException e) { logger.debug(e.getMessage(), e); if (err_XD0011.equals(e.getErrorCode())) { RuntimeValue href = getOption(_href); String baseURI = href.getBaseURI().toASCIIString(); boolean validate = getOption(_dtd_validate, false); throw XProcException.stepError(11, "Could not load " + href.getString() + " (" + baseURI + ") dtd-validate=" + validate); } throw e; } catch (Exception e) { throw new XProcException(e); } } }
public void run() throws SaxonApiException { super.run(); try { XdmNode doc = runtime.getConfigurer().getXMLCalabashConfigurer().loadDocument(this); result.write(doc); } catch (XProcException e) { logger.debug(e.getMessage(), e); if (err_XD0011.equals(e.getErrorCode())) { RuntimeValue href = getOption(_href); String baseURI = href.getBaseURI().toASCIIString(); boolean validate = getOption(_dtd_validate, false); throw XProcException.stepError(11, "Could not load " + href.getString() + " (" + baseURI + ") dtd-validate=" + validate); } throw e; } catch (Exception e) { throw new XProcException(e); } } }