/** * Get the System ID for the node. * * @return the System Identifier of the entity in the source document * containing the node, or null if not known. Note this is not the * same as the base URI: the base URI can be modified by xml:base, but * the system ID cannot. */ public String getSystemId() { return element.getSystemId(); }
/** * Get the System ID for the node. * @return the System Identifier of the entity in the source document containing the node, * or null if not known. Note this is not the same as the base URI: the base URI can be * modified by xml:base, but the system ID cannot. */ public String getSystemId() { return node.getSystemId(); }
/** * Get the System ID for the node. * * @return the System Identifier of the entity in the source document containing the node, * or null if not known. Note this is not the same as the base URI: the base URI can be * modified by xml:base, but the system ID cannot. */ /*@Nullable*/ public String getSystemId() { return node.getSystemId(); }
/** * Get the System ID for the node. * * @return the System Identifier of the entity in the source document containing the node, * or null if not known. Note this is not the same as the base URI: the base URI can be * modified by xml:base, but the system ID cannot. */ /*@Nullable*/ public String getSystemId() { return node.getSystemId(); }
/** * Get the System ID for the node. * * @return the System Identifier of the entity in the source document * containing the node, or null if not known. Note this is not the * same as the base URI: the base URI can be modified by xml:base, but * the system ID cannot. */ public String getSystemId() { return element.getSystemId(); }
/** * Get the System ID for the node. * @return the System Identifier of the entity in the source document containing the node, * or null if not known. Note this is not the same as the base URI: the base URI can be * modified by xml:base, but the system ID cannot. */ public String getSystemId() { return node.getSystemId(); }
/** * Get the System ID for the node. * * @return the System Identifier of the entity in the source document * containing the node, or null if not known. Note this is not the * same as the base URI: the base URI can be modified by xml:base, but * the system ID cannot. */ /*@Nullable*/ public String getSystemId() { return element.getSystemId(); }
public String getSystemId() { return node.getSystemId(); } };
/** * Get the System ID for the node. * * @return the System Identifier of the entity in the source document * containing the node, or null if not known. Note this is not the * same as the base URI: the base URI can be modified by xml:base, but * the system ID cannot. */ /*@Nullable*/ public String getSystemId() { return element.getSystemId(); }
/** * Get the System ID for the node. * @return the System Identifier of the entity in the source document containing the node, * or null if not known. Note this is not the same as the base URI: the base URI can be * modified by xml:base, but the system ID cannot. */ public String getSystemId() { return node.getSystemId(); }
public String getResourceURI() { if (doc == null) { return source.getSystemId(); } else { return doc.getSystemId(); } }
public String getResourceURI() { if (doc == null) { return source.getSystemId(); } else { return doc.getSystemId(); } }
public String getSystemId() { NodeInfo info=(NodeInfo)context.getContextItem(); return info.getSystemId(); }
public AttributeLocation(NodeInfo element, StructuredQName attributeName) { this.systemId = element.getSystemId(); this.lineNumber = element.getLineNumber(); this.columnNumber = element.getColumnNumber(); this.elementName = Navigator.getNodeName(element); this.attributeName = attributeName; }
public AttributeLocation(NodeInfo element, StructuredQName attributeName) { this.systemId = element.getSystemId(); this.lineNumber = element.getLineNumber(); this.columnNumber = element.getColumnNumber(); this.elementName = Navigator.getNodeName(element); this.attributeName = attributeName; }
/** * Called when an item becomes the context item */ public void startCurrentItem(Item item) { if (item instanceof NodeInfo) { NodeInfo curr = (NodeInfo) item; out.println(AbstractTraceListener.spaces(indent) + "<source node=\"" + Navigator.getPath(curr) + "\" line=\"" + curr.getLineNumber() + "\" file=\"" + ExpressionLocation.truncateURI(curr.getSystemId()) + "\">"); } indent++; }
public static void dumpTree(XdmNode tree, String message) { NodeInfo treeNode = tree.getUnderlyingNode(); System.err.println(message); System.err.println("Dumping tree: " + treeNode.getSystemId() + ", " + tree.getBaseURI()); XdmSequenceIterator iter = tree.axisIterator(Axis.CHILD); while (iter.hasNext()) { XdmNode child = (XdmNode) iter.next(); dumpTreeNode(child, " "); } }
public static void dumpTree(XdmNode tree, String message) { NodeInfo treeNode = tree.getUnderlyingNode(); System.err.println(message); System.err.println("Dumping tree: " + treeNode.getSystemId() + ", " + tree.getBaseURI()); XdmSequenceIterator iter = tree.axisIterator(Axis.CHILD); while (iter.hasNext()) { XdmNode child = (XdmNode) iter.next(); dumpTreeNode(child, " "); } }
public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { if (context.getContextItem() instanceof NodeInfo) { return new AnyURIValue( ((NodeInfo) context.getContextItem()).getSystemId()); } throw new XPathException( "Unexpected XPath context for saxon:system-id"); } };
/** * Called when an item becomes the context item */ public void startCurrentItem(Item item) { if (item instanceof NodeInfo) { NodeInfo curr = (NodeInfo) item; out.info(AbstractTraceListener.spaces(indent) + "<source node=\"" + Navigator.getPath(curr) + "\" line=\"" + curr.getLineNumber() + "\" file=\"" + StandardErrorListener.abbreviatePath(curr.getSystemId()) + "\">"); } indent++; }