/** * Get the display name of this node. For elements and attributes this is [prefix:]localname. * For unnamed nodes, it is an empty string. * * @return The display name of this node. For a node with no name, return * an empty string. */ public String getDisplayName() { return original.getDisplayName(); }
/** * The name of the element (DOM interface). */ public String getTagName() { return node.getDisplayName(); }
/** * Get the display name, that is the lexical QName in the form [prefix:]local-part * * @return the lexical QName */ public String getDisplayName() { return node.getDisplayName(); }
/** * Get the display name of this node. For elements and attributes this is [prefix:]localname. * For unnamed nodes, it is an empty string. * * @return The display name of this node. For a node with no name, return * an empty string. */ public String getDisplayName() { return original.getDisplayName(); }
/** * Get the display name of this node. For elements and attributes this is [prefix:]localname. * For unnamed nodes, it is an empty string. * * @return The display name of this node. * For a node with no name, return an empty string. */ public String getDisplayName() { return node.getDisplayName(); }
/** * Get a name identifying the kind of instruction, in terms meaningful to a user. This method * is not used in the case where the instruction name code is a standard name (<1024). * * @return a name identifying the kind of instruction, in terms meaningful to a user. * The name will always be in the form of a lexical XML QName, and should match the name used * in explain() output displaying the instruction. */ public String getInstructionName(){ return ((NodeInfo)locator).getDisplayName(); }
/** * Get the display name of this node. For elements and attributes this is [prefix:]localname. * For unnamed nodes, it is an empty string. * @return The display name of this node. * For a node with no name, return an empty string. */ public String getDisplayName() { return node.getDisplayName(); }
/** * Get a name identifying the kind of instruction, in terms meaningful to a user. This method * is not used in the case where the instruction name code is a standard name (<1024). * * @return a name identifying the kind of instruction, in terms meaningful to a user. * The name will always be in the form of a lexical XML QName, and should match the name used * in explain() output displaying the instruction. */ public String getInstructionName(){ return ((NodeInfo)locator).getDisplayName(); }
/** * Get the display name of this node. For elements and attributes this is [prefix:]localname. * For unnamed nodes, it is an empty string. * * @return The display name of this node. For a node with no name, return * an empty string. */ public String getDisplayName() { return original.getDisplayName(); }
/** * The name of the element (DOM interface). */ public String getTagName() { return node.getDisplayName(); }
/** * The name of the element (DOM interface). */ public String getTagName() { return node.getDisplayName(); }
/** * Get the display name of this node. For elements and attributes this is [prefix:]localname. * For unnamed nodes, it is an empty string. * * @return The display name of this node. For a node with no name, return * an empty string. */ public String getDisplayName() { return original.getDisplayName(); }
/** * Get the display name of this node. For elements and attributes this is [prefix:]localname. * For unnamed nodes, it is an empty string. * @return The display name of this node. * For a node with no name, return an empty string. */ public String getDisplayName() { return node.getDisplayName(); }
/** * Get the display name of this node. For elements and attributes this is [prefix:]localname. * For unnamed nodes, it is an empty string. * * @return The display name of this node. * For a node with no name, return an empty string. */ public String getDisplayName() { return node.getDisplayName(); }
/** * Get the display name, that is the lexical QName in the form [prefix:]local-part * * @return the lexical QName */ public String getDisplayName() { return node.getDisplayName(); }
/** * Get the display name of this node. For elements and attributes this is [prefix:]localname. * For unnamed nodes, it is an empty string. * @return The display name of this node. * For a node with no name, return an empty string. */ public String getDisplayName() { return node.getDisplayName(); }
@Override public StringValue evaluate(Item item, XPathContext context) throws XPathException { return StringValue.makeStringValue(((NodeInfo) item).getDisplayName()); }
@Override public StringValue evaluate(Item item, XPathContext context) throws XPathException { return StringValue.makeStringValue(((NodeInfo) item).getDisplayName()); }
/** * Check that no no-namespace attributes are present on an element, unless they have a specified local name * @param element the element to be checked * @param allowedNames a list of permitted local names of attributes, in sorted order * @throws XPathException if there is a no-namespace attribute present whose name is not the name supplied */ private static void restrictAttributes(NodeInfo element, String... allowedNames) throws XPathException { element.iterateAxis(AxisInfo.ATTRIBUTE).forEachOrFail(att -> { if ("".equals(att.getURI()) && Arrays.binarySearch(allowedNames, att.getLocalPart()) < 0) { throw new XPathException("In serialization parameters, attribute @" + att.getLocalPart() + " must not appear on element " + element.getDisplayName(), "SEPM0017"); } }); }
public void validate(ComponentDeclaration decl) throws XPathException { AxisIterator kids = iterateAxis(AxisInfo.CHILD); NodeInfo child; while ((child = kids.next()) != null) { if (child.getNodeKind() == Type.TEXT) { compileError("Character content is not allowed as a child of xsl:use-package"); } else if (child instanceof XSLAccept || child instanceof XSLOverride) { // no action } else { compileError("Child element " + Err.wrap(child.getDisplayName(), Err.ELEMENT) + " is not allowed as a child of xsl:use-package", "XTSE0010"); } } }