TXPathEnvironment class
Provides access to functions and variables available in the XPath environment.
Declaration
TXPathEnvironment = classDescription
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
FunctionCount | public | Indicates the number of XPath functions in the XPath environment. |
VariableCount | public | Indicates the number of variables defined in the XPath environment. |
Functions | public | Provides indexed access to XPath functions in the environment. |
FunctionsByName | public | Gets an XPath function with the specified name. |
Variables | public | Provides indexed access to XPath variables in the XPath environment. |
VariablesByName | public | Gets an XPath variable with the specified name. |
Methods
xpLast | protected | Implements the last() function from the XPath Core Function Library. |
xpPosition | protected | Implements the position() function from the XPath Core Function Library. |
xpCount | protected | Implements the count() function from the XPath Core Function Library. |
xpId | protected | Implements the id() function from the XPath Core Function Library. |
xpLocalName | protected | Implements the local-name() function from the XPath Core Function Library. |
xpNamespaceURI | protected | Implements the namespace-uri() function from the XPath Core Function Library. |
xpName | protected | Implements the name() function from the XPath Core Function Library. |
xpString | protected | Implements the string() function from the XPath Core Function Library. |
xpConcat | protected | Implements the concat() function from the XPath Core Function Library. |
xpStartsWith | protected | Implements the starts-with() function from the XPath Core Function Library. |
xpContains | protected | Implements the contains() function from the XPath Core Function Library. |
xpSubstringBefore | protected | Implements the substring-before() function from the XPath Core Function Library. |
xpSubstringAfter | protected | Implements the substring-after() function from the XPath Core Function Library. |
xpSubstring | protected | Implements the substring() function from the XPath Core Function Library. |
xpStringLength | protected | Implements the string-length() function from the XPath Core Function Library. |
xpNormalizeSpace | protected | Implements the normalize-space() function from the XPath Core Function Library. |
xpTranslate | protected | Implements the translate() function from the XPath Core Function Library. |
xpBoolean | protected | Implements the boolean() function from the XPath Core Function Library. |
xpNot | protected | Implements the not() function from the XPath Core Function Library. |
xpTrue | protected | Implements the true() function from the XPath Core Function Library. |
xpFalse | protected | Implements the false() function from the XPath Core Function Library. |
xpLang | protected | Implements the lang() function from the XPath Core Function Library. |
xpNumber | protected | Implements the number() function from the XPath Core Function Library. |
xpSum | protected | Implements the sum() function from the XPath Core Function Library. |
xpFloor | protected | Implements the floor() function from the XPath Core Function Library. |
xpCeiling | protected | Implements the ceiling() function from the XPath Core Function Library. |
xpRound | protected | Implements the round() function from the XPath Core Function Library. |
Create | public | Constructor for the class instance. |
Destroy | public | Destructor for the class instance. |
GetFunctionIndex | public | Gets the ordinal position of the XPath function with the specified name. |
GetVariableIndex | public | Gets the ordinal position of the variable with the specified name. |
AddFunction | public | Adds a function to the Functions property with the specified name. |
AddVariable | public | Adds a variable with the given name and value to the Variables property. |
RemoveFunction | public | Removes a function with the specified name or ordinal position from the Functions property. |
RemoveVariable | public | Removes 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.
