|
|
|
context(self)
Get the xpathContext from an xpathParserContext |
source code
|
|
|
xpathAddValues(self)
Implement the add operation on XPath objects: The numeric
operators convert their operands to numbers as if by calling the
number function. |
source code
|
|
|
xpathBooleanFunction(self,
nargs)
Implement the boolean() XPath function boolean boolean(object) The
boolean function converts its argument to a boolean as follows: - a
number is true if and only if it is neither positive or negative zero
nor NaN - a node-set is true if and only if it is non-empty - a
string is true if and only if its length is non-zero |
source code
|
|
|
xpathCeilingFunction(self,
nargs)
Implement the ceiling() XPath function number ceiling(number) The
ceiling function returns the smallest (closest to negative infinity)
number that is not less than the argument and that is an integer. |
source code
|
|
|
|
|
xpathConcatFunction(self,
nargs)
Implement the concat() XPath function string concat(string,
string, string*) The concat function returns the concatenation of its
arguments. |
source code
|
|
|
xpathContainsFunction(self,
nargs)
Implement the contains() XPath function boolean contains(string,
string) The contains function returns true if the first argument
string contains the second argument string, and otherwise returns
false. |
source code
|
|
|
xpathCountFunction(self,
nargs)
Implement the count() XPath function number count(node-set) |
source code
|
|
|
xpathDivValues(self)
Implement the div operation on XPath objects @arg1 / @arg2: The
numeric operators convert their operands to numbers as if by calling
the number function. |
source code
|
|
|
xpathEqualValues(self)
Implement the equal operation on XPath objects content: @arg1 ==
@arg2 |
source code
|
|
|
xpathErr(self,
error)
Handle an XPath error |
source code
|
|
|
xpathEvalExpr(self)
Parse and evaluate an XPath expression in the given context, then
push the result on the context stack |
source code
|
|
|
xpathFalseFunction(self,
nargs)
Implement the false() XPath function boolean false() |
source code
|
|
|
xpathFloorFunction(self,
nargs)
Implement the floor() XPath function number floor(number) The
floor function returns the largest (closest to positive infinity)
number that is not greater than the argument and that is an
integer. |
source code
|
|
|
xpathFreeParserContext(self)
Free up an xmlXPathParserContext |
source code
|
|
|
xpathIdFunction(self,
nargs)
Implement the id() XPath function node-set id(object) The id
function selects elements by their unique ID (see [5.2.1 Unique
IDs]). |
source code
|
|
|
xpathLangFunction(self,
nargs)
Implement the lang() XPath function boolean lang(string) The lang
function returns true or false depending on whether the language of
the context node as specified by xml:lang attributes is the same as
or is a sublanguage of the language specified by the argument
string. |
source code
|
|
|
xpathLastFunction(self,
nargs)
Implement the last() XPath function number last() The last
function returns the number of nodes in the context node list. |
source code
|
|
|
xpathLocalNameFunction(self,
nargs)
Implement the local-name() XPath function string
local-name(node-set?) The local-name function returns a string
containing the local part of the name of the node in the argument
node-set that is first in document order. |
source code
|
|
|
xpathModValues(self)
Implement the mod operation on XPath objects: @arg1 / @arg2 The
numeric operators convert their operands to numbers as if by calling
the number function. |
source code
|
|
|
xpathMultValues(self)
Implement the multiply operation on XPath objects: The numeric
operators convert their operands to numbers as if by calling the
number function. |
source code
|
|
|
xpathNamespaceURIFunction(self,
nargs)
Implement the namespace-uri() XPath function string
namespace-uri(node-set?) The namespace-uri function returns a string
containing the namespace URI of the expanded name of the node in the
argument node-set that is first in document order. |
source code
|
|
|
xpathNextAncestor(self,
cur)
Traversal function for the "ancestor" direction the
ancestor axis contains the ancestors of the context node; the
ancestors of the context node consist of the parent of context node
and the parent's parent and so on; the nodes are ordered in reverse
document order; thus the parent is the first node on the axis, and
the parent's parent is the second node on the axis |
source code
|
|
|
xpathNextAncestorOrSelf(self,
cur)
Traversal function for the "ancestor-or-self" direction
he ancestor-or-self axis contains the context node and ancestors of
the context node in reverse document order; thus the context node is
the first node on the axis, and the context node's parent the second;
parent here is defined the same as with the parent axis. |
source code
|
|
|
xpathNextAttribute(self,
cur)
Traversal function for the "attribute" direction TODO:
support DTD inherited default attributes |
source code
|
|
|
xpathNextChild(self,
cur)
Traversal function for the "child" direction The child
axis contains the children of the context node in document order. |
source code
|
|
|
xpathNextDescendant(self,
cur)
Traversal function for the "descendant" direction the
descendant axis contains the descendants of the context node in
document order; a descendant is a child or a child of a child and so
on. |
source code
|
|
|
xpathNextDescendantOrSelf(self,
cur)
Traversal function for the "descendant-or-self"
direction the descendant-or-self axis contains the context node and
the descendants of the context node in document order; thus the
context node is the first node on the axis, and the first child of
the context node is the second node on the axis |
source code
|
|
|
xpathNextFollowing(self,
cur)
Traversal function for the "following" direction The
following axis contains all nodes in the same document as the context
node that are after the context node in document order, excluding any
descendants and excluding attribute nodes and namespace nodes; the
nodes are ordered in document order |
source code
|
|
|
xpathNextFollowingSibling(self,
cur)
Traversal function for the "following-sibling" direction
The following-sibling axis contains the following siblings of the
context node in document order. |
source code
|
|
|
xpathNextNamespace(self,
cur)
Traversal function for the "namespace" direction the
namespace axis contains the namespace nodes of the context node; the
order of nodes on this axis is implementation-defined; the axis will
be empty unless the context node is an element We keep the XML
namespace node at the end of the list. |
source code
|
|
|
xpathNextParent(self,
cur)
Traversal function for the "parent" direction The parent
axis contains the parent of the context node, if there is one. |
source code
|
|
|
xpathNextPreceding(self,
cur)
Traversal function for the "preceding" direction the
preceding axis contains all nodes in the same document as the context
node that are before the context node in document order, excluding
any ancestors and excluding attribute nodes and namespace nodes; the
nodes are ordered in reverse document order |
source code
|
|
|
xpathNextPrecedingSibling(self,
cur)
Traversal function for the "preceding-sibling" direction
The preceding-sibling axis contains the preceding siblings of the
context node in reverse document order; the first preceding sibling
is first on the axis; the sibling preceding that node is the second
on the axis and so on. |
source code
|
|
|
xpathNextSelf(self,
cur)
Traversal function for the "self" direction The self
axis contains just the context node itself |
source code
|
|
|
xpathNormalizeFunction(self,
nargs)
Implement the normalize-space() XPath function string
normalize-space(string?) The normalize-space function returns the
argument string with white space normalized by stripping leading and
trailing whitespace and replacing sequences of whitespace characters
by a single space. |
source code
|
|
|
xpathNotEqualValues(self)
Implement the equal operation on XPath objects content: @arg1 ==
@arg2 |
source code
|
|
|
xpathNotFunction(self,
nargs)
Implement the not() XPath function boolean not(boolean) The not
function returns true if its argument is false, and false
otherwise. |
source code
|
|
|
xpathNumberFunction(self,
nargs)
Implement the number() XPath function number number(object?) |
source code
|
|
|
|
|
xpathParseName(self)
parse an XML name [4] NameChar ::= Letter | Digit | '.' | '-' |
'_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' |
':') (NameChar)* |
source code
|
|
|
|
|
|
|
|
|
xpathPositionFunction(self,
nargs)
Implement the position() XPath function number position() The
position function returns the position of the context node in the
context node list. |
source code
|
|
|
xpathRoot(self)
Initialize the context to the root of the document |
source code
|
|
|
xpathRoundFunction(self,
nargs)
Implement the round() XPath function number round(number) The
round function returns the number that is closest to the argument and
that is an integer. |
source code
|
|
|
xpathStartsWithFunction(self,
nargs)
Implement the starts-with() XPath function boolean
starts-with(string, string) The starts-with function returns true if
the first argument string starts with the second argument string, and
otherwise returns false. |
source code
|
|
|
xpathStringFunction(self,
nargs)
Implement the string() XPath function string string(object?) The
string function converts an object to a string as follows: - A
node-set is converted to a string by returning the value of the node
in the node-set that is first in document order. |
source code
|
|
|
xpathStringLengthFunction(self,
nargs)
Implement the string-length() XPath function number
string-length(string?) The string-length returns the number of
characters in the string (see [3.6 Strings]). |
source code
|
|
|
xpathSubValues(self)
Implement the subtraction operation on XPath objects: The numeric
operators convert their operands to numbers as if by calling the
number function. |
source code
|
|
|
xpathSubstringAfterFunction(self,
nargs)
Implement the substring-after() XPath function string
substring-after(string, string) The substring-after function returns
the substring of the first argument string that follows the first
occurrence of the second argument string in the first argument
string, or the empty stringi if the first argument string does not
contain the second argument string. |
source code
|
|
|
xpathSubstringBeforeFunction(self,
nargs)
Implement the substring-before() XPath function string
substring-before(string, string) The substring-before function
returns the substring of the first argument string that precedes the
first occurrence of the second argument string in the first argument
string, or the empty string if the first argument string does not
contain the second argument string. |
source code
|
|
|
xpathSubstringFunction(self,
nargs)
Implement the substring() XPath function string substring(string,
number, number?) The substring function returns the substring of the
first argument starting at the position specified in the second
argument with length specified in the third argument. |
source code
|
|
|
xpathSumFunction(self,
nargs)
Implement the sum() XPath function number sum(node-set) The sum
function returns the sum of the values of the nodes in the argument
node-set. |
source code
|
|
|
xpathTranslateFunction(self,
nargs)
Implement the translate() XPath function string translate(string,
string, string) The translate function returns the first argument
string with occurrences of characters in the second argument string
replaced by the character at the corresponding position in the third
argument string. |
source code
|
|
|
xpathTrueFunction(self,
nargs)
Implement the true() XPath function boolean true() |
source code
|
|
|
xpathValueFlipSign(self)
Implement the unary - operation on an XPath object The numeric
operators convert their operands to numbers as if by calling the
number function. |
source code
|
|
|
xpatherror(self,
file,
line,
no)
Formats an error message. |
source code
|
|
|
xpointerEvalRangePredicate(self)
[8] Predicate ::= '[' PredicateExpr ']' [9] PredicateExpr ::=
Expr Evaluate a predicate as in xmlXPathEvalPredicate() but for a
Location Set instead of a node set |
source code
|
|
|
xpointerRangeToFunction(self,
nargs)
Implement the range-to() XPointer function |
source code
|
|