/** * Get the display name of the range variable, for diagnostics only * * @return the lexical QName of the range variable. For system allocated * variables, the conventional namespace prefix "zz" is used. */ public String getVariableName() { if (variableName == null) { return "zz:var" + computeHashCode(); } else { return variableName.getDisplayName(); } }
/** * Get the display name of the range variable, for diagnostics only * * @return the lexical QName of the range variable. For system allocated * variables, the conventional namespace prefix "zz" is used. */ public String getVariableName() { if (variableName == null) { return "zz:var" + computeHashCode(); } else { return variableName.getDisplayName(); } }
/** * Get the name of the range variable as a Name or EQName. * * @return the name of the range variable. For system allocated * variables, the namespace "http://ns.saxonica.com/anonymous-var" * is used. For names in no namespace, the local name alone is used */ public String getVariableEQName() { if (variableName == null) { return "Q{http://ns.saxonica.com/anonymous-var}var" + computeHashCode(); } else if (variableName.hasURI("")) { return variableName.getLocalPart(); } else { return variableName.getEQName(); } }
/** * Get the name of the range variable as a Name or EQName. * * @return the name of the range variable. For system allocated * variables, the namespace "http://ns.saxonica.com/anonymous-var" * is used. For names in no namespace, the local name alone is used */ public String getVariableEQName() { if (variableName == null) { return "Q{http://ns.saxonica.com/anonymous-var}var" + computeHashCode(); } else if (variableName.hasURI("")) { return variableName.getLocalPart(); } else { return variableName.getEQName(); } }