Key: name function axis operator literal variable type comment numeric

if (count($splitToken/trees[@type='op']) ne sum($sets) and $a castable as xs:integer) (:te
st:)

   then dxt:main[attribute::place + 1.34e-27 = 28]

else for $spans in $splitToken[some $type in $types[@name = 'prop'] satisfies $type mod 2 eq 0]/place

   return concat($spans, 'test')

Edit XPath 2.0 expression and press Scan to colorize, then select expression parts (with mouse or cursor keys) to analyse.

XPath Tracer

An XPath Analysis and Trace tool written in XSLT 2.0, the stylesheet can be reviewed here

The XSLT compiles and runs within the browser, using the Saxon-CE procesor. Interactive XSLT extensions (ixsl) allows user events to be handled by XSLT templates. Saxon-CE is a JavaScript application developed by Saxonica.

To use this tool, enter an XPath expression and press Scan. The expression is colorized and you can then use the mouse or cursor keys to view the static evaluation context for the selected expression part. To return to edit mode, press the Edit or Clear buttons.

Saxon-CE Diagnostics

The browser's development console can be used to view xsl:message and other processor diagnostics output. Press the Trace On button to set the logLevel (a URI argument) which enables output to the console.