net.sf.saxon.s9api.XdmDestination.setBaseURI()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(182)

本文整理了Java中net.sf.saxon.s9api.XdmDestination.setBaseURI()方法的一些代码示例,展示了XdmDestination.setBaseURI()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XdmDestination.setBaseURI()方法的具体详情如下:
包路径:net.sf.saxon.s9api.XdmDestination
类名称:XdmDestination
方法名:setBaseURI

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

  1. @Override
  2. public Result resolve(String href, String base) throws TransformerException {
  3. try {
  4. XdmDestination dest = new XdmDestination();
  5. URI uri = new URI("lux:/").resolve(href);
  6. dest.setBaseURI(uri);
  7. Configuration config = getCompiler().getProcessor().getUnderlyingConfiguration();
  8. Receiver receiver = dest.getReceiver(config);
  9. receiver.setSystemId(href);
  10. XdmDestinationProxy xdmDestinationProxy = new XdmDestinationProxy(receiver, dest);
  11. xdmDestinationProxy.setSystemId(href);
  12. return xdmDestinationProxy;
  13. } catch (SaxonApiException e) {
  14. throw new TransformerException(e);
  15. } catch (URISyntaxException e) {
  16. throw new TransformerException(e);
  17. }
  18. }

代码示例来源:origin: com.xmlcalabash/xmlcalabash

  1. dest.setBaseURI(node.getBaseURI());
  2. S9apiUtils.writeXdmValue(runtime, node, dest, node.getBaseURI());
  3. XdmNode newNode = dest.getXdmNode();

代码示例来源:origin: org.daisy.libs/com.xmlcalabash

  1. dest.setBaseURI(node.getBaseURI());
  2. S9apiUtils.writeXdmValue(runtime, node, dest, node.getBaseURI());
  3. XdmNode newNode = dest.getXdmNode();

代码示例来源:origin: com.xmlcalabash/xmlcalabash

  1. result.setBaseURI(new URI(outputBaseURI));
  2. } catch (URISyntaxException use) {

代码示例来源:origin: org.daisy.libs/com.xmlcalabash

  1. result.setBaseURI(new URI(outputBaseURI));
  2. } catch (URISyntaxException use) {

相关文章