本文整理了Java中net.sf.saxon.s9api.XdmDestination.setBaseURI()
方法的一些代码示例,展示了XdmDestination.setBaseURI()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XdmDestination.setBaseURI()
方法的具体详情如下:
包路径:net.sf.saxon.s9api.XdmDestination
类名称:XdmDestination
方法名:setBaseURI
[英]Set the base URI for the document node that will be created when the XdmDestination is written to. This method must be called before writing to the destination; it has no effect on an XdmNode that has already been constructed.
[中]设置XDMDestation写入时将创建的文档节点的基本URI。在写入目标之前必须调用此方法;它对已经构建的XdmNode没有影响。
代码示例来源:origin: msokolov/lux
@Override
public Result resolve(String href, String base) throws TransformerException {
try {
XdmDestination dest = new XdmDestination();
URI uri = new URI("lux:/").resolve(href);
dest.setBaseURI(uri);
Configuration config = getCompiler().getProcessor().getUnderlyingConfiguration();
Receiver receiver = dest.getReceiver(config);
receiver.setSystemId(href);
XdmDestinationProxy xdmDestinationProxy = new XdmDestinationProxy(receiver, dest);
xdmDestinationProxy.setSystemId(href);
return xdmDestinationProxy;
} catch (SaxonApiException e) {
throw new TransformerException(e);
} catch (URISyntaxException e) {
throw new TransformerException(e);
}
}
代码示例来源:origin: com.xmlcalabash/xmlcalabash
dest.setBaseURI(node.getBaseURI());
S9apiUtils.writeXdmValue(runtime, node, dest, node.getBaseURI());
XdmNode newNode = dest.getXdmNode();
代码示例来源:origin: org.daisy.libs/com.xmlcalabash
dest.setBaseURI(node.getBaseURI());
S9apiUtils.writeXdmValue(runtime, node, dest, node.getBaseURI());
XdmNode newNode = dest.getXdmNode();
代码示例来源:origin: com.xmlcalabash/xmlcalabash
result.setBaseURI(new URI(outputBaseURI));
} catch (URISyntaxException use) {
代码示例来源:origin: org.daisy.libs/com.xmlcalabash
result.setBaseURI(new URI(outputBaseURI));
} catch (URISyntaxException use) {
内容来源于网络,如有侵权,请联系作者删除!