ESQL-to-XPath mapping table

A table that summarizes the mappings from ESQL to XPath.

ESQL XPath 1.0 XPath 1.0 usage notes
BOOLEAN data types
  • True
 
  • True()
 
  • Equivalent to Boolean "1" or "True"
  • False
  • False()
  • Equivalent to Boolean "0" or "False"
  • Unknown
  • No equivalent
 
Date Time data types
  • No equivalent
 
NULL data type
  • No equivalent
 
Numeric data types  
  • 12678967.543233 with or without quotation marks
 
  • Cannot express an exponent or a leading plus sign.
  • 1.7976931348623158 with or without quotation marks
  • Cannot express an exponent or a leading plus sign.
  • 9223372036854775807 with or without quotation marks
  • Cannot express an exponent or a leading plus sign.
REFERENCE data type
  • FilterExpression '/' RelativeLocationPath
  • For example, $InputRoot/MQMD/Priority
String data types    
  • No equivalent
  • No equivalent
  • Literal
  •  
  •  
  • For example 'a "b"' or "a 'b'"
  • NAME
  • $NAME
  • Can assign such a variable any valid value, of type Boolean, number, or string.
Simple comparison operators    
  • >
  • <
  • >=
  • '='
  • <>
  • >
  • <
  • >=
  • '='
  • !=
 
Complex comparison operators
  • No equivalent
 
Logical operators    
  • AND
  • OR
  • NOT
  • and
  • or
  • not (operand)
  •  
  •  
  • The not function returns true if its argument is false, and false otherwise.
Numeric operators    
  • Unary -
  • +
  • -
  • *
  • /
  • - Unary expression
  • +
  • -
  • *
  • div
  •  
  •  
  •  
  • Multiplication operator
String operator
  • No equivalent
 
Date time functions
  • No equivalent
 
Numeric functions    
  • floor (number)
  • ceiling (number)
  • No equivalent
 
String manipulation functions  
  • substring(string, number, number)
 
  • translate(string, string, string)