public class EscapeNCName extends SystemFunction
saxon:escape-NCName
function takes an arbitrary string and converts it to an NCName.
Characters that are not legal in an NCName are converted to the form _xxxx_
. A
zero length string is converted to a single underscore. An underscore is converted to
a pair of underscores. The conversion can be reversed using saxon:unescape-NCName
;Constructor and Description |
---|
EscapeNCName() |
Modifier and Type | Method and Description |
---|---|
StringValue |
call(XPathContext context,
Sequence[] arguments)
Evaluate this function call at run-time
|
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getCompilerName, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, getUniStringArg, hashCode, importAttributes, isSequenceVariadic, isTrustedResultType, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getUnicodeStringValue, isArray, isMap, makeNewContext, simplify, typeCheck
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLength, getStringValue, head, isStreamed, itemAt, iterate, reduce, subsequence
asIterable, concatenate, containsNode, materialize
makeRepeatable
public StringValue call(XPathContext context, Sequence[] arguments) throws XPathException
context
- The XPath dynamic evaluation context. Not used in this casearguments
- The values of the arguments to the function call.XPathException
- if lazy evaluation of the supplied argument failsCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.