/** * Get the base URI for the node. Default implementation for child nodes gets * the base URI of the parent node. */ public String getBaseURI() { return node.getBaseURI(); }
/** * Get the base URI of a copied element node (the base URI is retained in the new copy) * * @param context XPath dynamic evaluation context * @param copiedNode the node being copied (for xsl:copy), otherwise null * @return the base URI */ public String getNewBaseURI(XPathContext context, NodeInfo copiedNode) { return copiedNode.getBaseURI(); }
/** * Protected constructor: create a virtual copy of a node * @param base the node to be copied */ protected VirtualCopy(NodeInfo base) { original = base; systemId = base.getBaseURI(); }
/** * Get the base URI of a copied element node (the base URI is retained in the new copy) * * @param context XPath dynamic evaluation context * @param copiedNode the node being copied (for xsl:copy), otherwise null * @return the base URI */ public String getNewBaseURI(XPathContext context, NodeInfo copiedNode) { return copiedNode.getBaseURI(); }
/** * Get the Base URI for the node, that is, the URI used for resolving a relative URI contained * in the node. In the JDOM model, base URIs are held only an the document level. We don't * currently take any account of xml:base attributes. */ public String getBaseURI() { return node.getBaseURI(); }
/** * Get the Base URI for the node, that is, the URI used for resolving a relative URI contained * in the node. In the JDOM model, base URIs are held only an the document level. We don't * currently take any account of xml:base attributes. */ public String getBaseURI() { return node.getBaseURI(); }
/** * Protected constructor: create a virtual copy of a node * * @param base the node to be copied * @param root the node in the source tree corresponding to the root of the virtual tree. This must be an ancestor * of the base node */ protected VirtualCopy(NodeInfo base, NodeInfo root) { original = base; systemId = base.getBaseURI(); this.root = root; }
/** * Get the base URI for the node. Default implementation for child nodes gets * the base URI of the parent node. */ public String getBaseURI() { return node.getBaseURI(); }
/** * Protected constructor: create a virtual copy of a node * * @param base the node to be copied * @param root the node in the source tree corresponding to the root of the virtual tree. This must be an ancestor * of the base node */ protected VirtualCopy(NodeInfo base, NodeInfo root) { original = base; systemId = base.getBaseURI(); this.root = root; }
/** * Protected constructor: create a virtual copy of a node * @param base the node to be copied */ protected VirtualCopy(NodeInfo base) { original = base; systemId = base.getBaseURI(); }
/** * Get the base URI for the node. Default implementation for child nodes gets * the base URI of the parent node. */ public String getBaseURI() { return (getParent()).getBaseURI(); }
/** * Get the base URI for the node. Default implementation for child nodes gets * the base URI of the parent node. */ public String getBaseURI() { return (getParent()).getBaseURI(); }
/** * Get the base URI for the node. Default implementation for child nodes gets * the base URI of the parent node. */ public String getBaseURI() { return getParent().getBaseURI(); }
/** * Get the base URI of this node * * @return the base URI, as defined in the XDM model */ public URI getBaseURI() { try { return new URI(getUnderlyingNode().getBaseURI()); } catch (URISyntaxException e) { throw new IllegalStateException("baseURI"); } }
/** * Get the base URI of a copied element node (the base URI is retained in the new copy) * @param context XPath dynamic evaluation context * @return the base URI */ public String getNewBaseURI(XPathContext context) { return ((NodeInfo)context.getContextItem()).getBaseURI(); }
public Item map(Item item) throws XPathException { String b = baseURI; if (b==null) { if (item instanceof NodeInfo) { b = ((NodeInfo)item).getBaseURI(); } else { b = stylesheetURI; } } return makeDoc(item.getStringValue(), b, context, locator); } }
public Item map(Item item) throws XPathException { String b = baseURI; if (b==null) { if (item instanceof NodeInfo) { b = ((NodeInfo)item).getBaseURI(); } else { b = stylesheetURI; } } return makeDoc(item.getStringValue(), b, context, locator); } }
public static BaseURIAwareXMLStreamReader nodeReader(NodeInfo node, Configuration configuration) throws XPathException { PullFromIterator provider= new PullFromIterator(node.iterate()); provider.setPipelineConfiguration(new PipelineConfiguration(configuration)); return new BaseURIAwarePullToStax( provider, node.getBaseURI() == null ? null : URI.create(node.getBaseURI())); }
/** * Provide information about the node being copied. This method is called immediately before * the startElement call for the element node in question. * * @param element the node being copied, which must be an element node */ public void notifyElementNode(NodeInfo element) { setSystemId(element.getBaseURI()); setLineNumber(element.getLineNumber()); }
public ZeroOrOne<AnyURIValue> call(XPathContext context, Sequence[] arguments) throws XPathException { NodeInfo node = (NodeInfo)arguments[0].head(); if (node == null) { return ZeroOrOne.empty(); } String s = node.getBaseURI(); if (s == null) { return ZeroOrOne.empty(); } return new ZeroOrOne<>(new AnyURIValue(s)); }