Home
Description
Publications

Available Resources
Text Acknowledgements
Related links


Events


CLaRK System

CLaRK System Online Manual


Bulgarian dialects'
electronic archive




eXTReMe Tracker

 

 

 

 

 

 

 


XPath Error Messages

  • A closing bracket expected in: string!

    This message occurs when the number of the opening brackets is less than the number of closing ones or the brackets are nested incorrectly in the given string.

  • An operand in Union Expression does not produce a node-set.

    This message occurs when after evaluation an operand is expected to return a node set in the result, but it returns something else - a number, a string or a boolean value. The | operator computes the union of its operands, which must be node-sets.

  • Cannot convert expression to a number (string)!

    This error message occurs when there is an operator or function that expects a number value and the string which is its operand cannot be converted to a number. The expression is not a number or it is an infinite value.

  • Document Axis does not allow any context Location Steps!

    This message occurs when in the XPath there is an axis document which is not in the beginning of the expression. That axis can only appear in the beginning of an XPath expression.

  • Empty Path Expression!

    This message occurs when the system tries to process an empty XPath expression.

  • Empty Relative Location Path!

    This message occurs when the system tries to process an empty XPath expression.

  • Empty Union Expression!

    This message occurs when the XPath expression starts or ends with |. The | binary operator computes the union of the results of its operands, which must be node-sets.

  • Error in regular expression regular expression!

    This message occurs when there is a complex text() node test - with two, three or four arguments. In this case if the last argument is in brackets it is expected to be a regular expression.

  • Error in opening grammar query regular expression!

    This message occurs when there is a complex text() node test - with two arguments. When the second argument is without brackets it is treated as a grammar query name, saved in the system. If there is no such a query in the system or it is not a valid query.

  • Expected ')' in string!

    This message occurs when an opening bracket is used without a closing one, or there are incorrectly nested brackets.

  • Expected at least one Step!

    This message occurs when the XPath contains only the symbol /. The / selects the document root (which is always the parent of the document element). A location path consists of a sequence of one or more location steps separated by /.

  • Expected node test or name specification after axis operator "operator" !

    Each location step has three parts:

    1. an axis, which specifies the tree relationship between the nodes selected by the location step and the context node (Axis :: ),
    2. a node test, which specifies the node type or the names of the nodes selected by the location step, and
    3. zero or more predicates, which use arbitrary expressions to further refine the set of nodes selected by the location step.

  • Illegal expression in arguments of function 'function'.

    This message occurs when there is an argument of the function that is not in appropriate format or it is missing.

  • Incompatible Context: string1 and string2

    This message occurs when there is a location step that receives as a context something that is not a node or a node-set (a number, a string or a boolean value).

  • Incompatible XPath key 'string' (node-set expected as result)!

    This message occurs when there is a predicate or a location path from an XPath key that is not evaluated as a node-set in the required place.

  • Incorrect Variable Binding: bindings not allowed in expression.

    This message occurs when there is a variable declaration that is not in the beginning of the XPath expression. The variable declarations are allowed only in the beginning of the XPath.

  • Incorrect Variable Binding: expected '{'.

    This message occurs when there is a variable declaration and there is a curly closing bracket before a opening one.

  • Incorrect Variable Binding: expected '}'.

    This message occurs when there is a variable declaration and there is a curly opening bracket without a closing one.

  • Incorrect Variable Binding: expected ':=' in 'variable definition'.

    This message occurs when there is a variable declaration and there is no := operand that assigns a value to the variable.

  • Incorrect Variable Binding: expected variable name in 'variable definition'.

    This message occurs when there is a variable declaration and there is no variable name but variable assignment.

  • Incorrect Variable Binding: expected variable value in 'variable definition'.

    This message occurs when there is a variable declaration and there is no value assigned to the variable.

  • Invalid additive expression. Missing left operand for "op"!

    The + and - are binary operators. These numeric operators convert their operands to numbers by calling the number() function. In this case there is a missing left operand.

  • Invalid additive expression. Missing right operand for "op"!

    The + and - are binary operators. These numeric operators convert their operands to numbers by calling the number() function. In this case there is a missing right operand.

  • Invalid AND expression. Missing left operand!

    An and is a binary operator. The and expression is evaluated by considering each operand and converting its value to a boolean value by a call to the boolean() function. In this case there is a missing left operand.

  • Invalid AND expression. Missing right operand!

    An and is a binary operator. The and expression is evaluated by considering each operand and converting its value to a boolean value by a call to the boolean() function. In this case there is a missing right operand.

  • Invalid atomic expression: string) !

    This message occurs when the expression is not recognized as number, text, expression in brackets, a variable reference or a function call.

  • Invalid attribute name: 'string'!

    This message occurs when there is an attribute addressed in the XPath expression and the attribute name is not a proper name. The attribute name is a token beginning with a letter or underscore, and continuing with letters, digits, hyphens, underscores, colons, or full stops. For details see the XML Specifications.

  • Invalid Axis Name "name" !

    This message occurs when in the XPath expression there is an Axis Specifier. Valid axis specifiers are: ancestor, ancestor-or-self, attribute, child, descendant, descendant-or-self, following, following-sibling, namespace, parent, preceding, preceding-sibling and self.

  • Invalid bracketed expression detected: '()'!

    This message occurs when the expression is (). A function name or an expression in the brackets is expected

  • Invalid Brackets in string!

    This message occurs when there is a closing bracket without an opening one and vice versa. Also it is possible that the brackets are incorrectly nested.

  • Invalid element name: 'name'!

    This message occurs when there is an element addressed in the XPath expression and the element name is not a proper name. The element name is a token beginning with a letter or underscore, and continuing with letters, digits, hyphens, underscores, colons, or full stops. For details see the XML Specifications.

  • Invalid element or attribute name: 'string'!

    This message occurs when there is an element or an attribute addressed in the XPath and the element name is not a proper name. A valid name is a token beginning with a letter or underscore, and continuing with letters, digits, hyphens, underscores, colons, or full stops. For details see the XML Specifications.

  • Invalid equality expression. Missing left operand for "operator"!

    The = and != are binary relations. They expect two operands to be compared. In this case there is a missing left operand.

  • Invalid equality expression. Missing right operand for "operator"!

    The = and != are binary relations. They expect two operands to be compared. In this case there is a missing right operand.

  • Invalid Expression

    This message occurs when there is a unary operation '-' to an expression that is not a numeric one.

  • Invalid expression: 'string'!

    This message occurs when there is a expression after a quoted expression.

  • Invalid multiplicative expression. Missing left operand for "operator"!

    The *, div and mod are binary operators. They expect two operands. This operators convert their operands to numbers by calling the number() function. In this case there is a missing left operand.

  • Invalid multiplicative expression. Missing right operand for "op"!

    The *, div and mod are binary operators. They expect two operands. This operators convert their operands to numbers as if by calling the number() function. In this case there is a missing right operand.

  • Invalid Node Test: "string".

    Each location step has three parts:

    1. an axis, which specifies the tree relationship between the nodes selected by the location step and the context node (Axis :: ),
    2. a node test, which specifies the node type or the names of the nodes selected by the location step, and
    3. zero or more predicates, which use arbitrary expressions to further refine the set of nodes selected by the location step.

  • Invalid Node Test: 'string'. Expected: 'n(doc_name)'.

    This message occurs when document axis is used. The syntax for document axis is document::n(document name), where document name is a name of a document saved in the system.

  • Invalid OR expression. Missing left operand!

    An or is a binary operator. The or expression is evaluated by considering each operand and converting its value to a boolean value by a call to the boolean() function. In this case there is a missing left operand.

  • Invalid OR expression. Missing right operand!

    An or is a binary operator. The or expression is evaluated by considering each operand and converting its value to a boolean value by a call to the boolean() function. In this case there is a missing right operand.

  • Invalid Predicates List "string"!

    This message occurs when there is a predicate list without a closing square bracket, or the brackets are incorrectly nested.

  • Invalid Relative Location Path "string"!

    This message occurs when the XPath expression ends with /. A relative location path consists of a sequence of one or more location steps separated by /.

  • Invalid relational expression. Missing left operand for "operator"!

    The <, >, <= and >= are binary relations. They expect two operands to be compared. In this case there is a missing left operand.

  • Invalid relational expression. Missing right operand for "operator"!

    The <, >, <= and >= are binary relations. They expect two operands to be compared. In this case there is a missing right operand.

  • Invalid suffix: 'string'!

    This message occurs when there is an expression after an expression in brackets.

  • Invalid Union Expression "expression"!

    This message occurs when the XPath expression starts or ends with |. The | operator computes the union of the results of its operands, which must be node-sets.

  • Invalid variable name: 'variable name'.

    This message occurs when the variable name contains spaces, opening square brackets or colons.

  • Invalid variable value type for 'variable name':expected node-set.

    This message occurs when the variable type is expected to be a node set, but it is something else (a number, a string or a boolean value).

  • Literal not closed! Expected ' in : string!

    This message occurs when there is a citation of a text that is not closed.

  • Missing XPath key 'key'!

    This message occurs when there is a key addressing % and there is no key with such name saved in the system.

  • Missing XPath key name!

    This message occurs when there is a key addressing % and the name of the key that is addressed is missing.

  • This XPath Expression selects 0 nodes for any context!

    This message occurs when there is a location step selecting child or descendant nodes of a node that cannot have descendants. For example, children of a text node, an attribute or a comment.

  • There is Path Expression that returns other than Node Set

    This message occurs when the Path Expression is expected to return a node set in the result, but it returns something else (a number, a string or a boolean value).

  • Variable 'variable name' not defined!

    There is a variable that is used in the XPath expression and is not defined. Variable definitions are in the beginning of the XPath expressions.