Sign in Join
FPDoc Onlineexperiment

TXPathEnvironment class

In unit Laz2_XPath

Provides access to functions and variables available in the XPath environment.

Declaration

pascal
TXPathEnvironment = class

Description

TXPathEnvironment is a class which provides access to the core function library and variable bindings available for use in an XPath context. TXPathEnvironment is not an interface that is directly mandated in the XPath specification, but the functionality it provides is required for any XPath Context node.

TXPathEnvironment provides methods used to add or remove Functions or Variables in the XPath environment. Properties are provided to access Functions and Variables by their name or their ordinal position. The Functions property is pre-populated with the Core Function Library described in the XPath specification.

See also

Properties

FunctionCountpublicIndicates the number of XPath functions in the XPath environment.
VariableCountpublicIndicates the number of variables defined in the XPath environment.
FunctionspublicProvides indexed access to XPath functions in the environment.
FunctionsByNamepublicGets an XPath function with the specified name.
VariablespublicProvides indexed access to XPath variables in the XPath environment.
VariablesByNamepublicGets an XPath variable with the specified name.

Methods

xpLastprotectedImplements the last() function from the XPath Core Function Library.
xpPositionprotectedImplements the position() function from the XPath Core Function Library.
xpCountprotectedImplements the count() function from the XPath Core Function Library.
xpIdprotectedImplements the id() function from the XPath Core Function Library.
xpLocalNameprotectedImplements the local-name() function from the XPath Core Function Library.
xpNamespaceURIprotectedImplements the namespace-uri() function from the XPath Core Function Library.
xpNameprotectedImplements the name() function from the XPath Core Function Library.
xpStringprotectedImplements the string() function from the XPath Core Function Library.
xpConcatprotectedImplements the concat() function from the XPath Core Function Library.
xpStartsWithprotectedImplements the starts-with() function from the XPath Core Function Library.
xpContainsprotectedImplements the contains() function from the XPath Core Function Library.
xpSubstringBeforeprotectedImplements the substring-before() function from the XPath Core Function Library.
xpSubstringAfterprotectedImplements the substring-after() function from the XPath Core Function Library.
xpSubstringprotectedImplements the substring() function from the XPath Core Function Library.
xpStringLengthprotectedImplements the string-length() function from the XPath Core Function Library.
xpNormalizeSpaceprotectedImplements the normalize-space() function from the XPath Core Function Library.
xpTranslateprotectedImplements the translate() function from the XPath Core Function Library.
xpBooleanprotectedImplements the boolean() function from the XPath Core Function Library.
xpNotprotectedImplements the not() function from the XPath Core Function Library.
xpTrueprotectedImplements the true() function from the XPath Core Function Library.
xpFalseprotectedImplements the false() function from the XPath Core Function Library.
xpLangprotectedImplements the lang() function from the XPath Core Function Library.
xpNumberprotectedImplements the number() function from the XPath Core Function Library.
xpSumprotectedImplements the sum() function from the XPath Core Function Library.
xpFloorprotectedImplements the floor() function from the XPath Core Function Library.
xpCeilingprotectedImplements the ceiling() function from the XPath Core Function Library.
xpRoundprotectedImplements the round() function from the XPath Core Function Library.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
GetFunctionIndexpublicGets the ordinal position of the XPath function with the specified name.
GetVariableIndexpublicGets the ordinal position of the variable with the specified name.
AddFunctionpublicAdds a function to the Functions property with the specified name.
AddVariablepublicAdds a variable with the given name and value to the Variables property.
RemoveFunctionpublicRemoves a function with the specified name or ordinal position from the Functions property.
RemoveVariablepublicRemoves a variable with the specified name or ordinal position.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.