The oxy_xpath() Function

The oxy_xpath() function is used for XPath expressions.

The oxy_xpath() function has the following signature:

Note: The entities and xi:include sections are ignored when the XPath expressions are evaluated.
The following example counts the number of words from a paragraph (including tracked changes) and displays the result in front of it:
para:before{ 
  content: 
    concat("|Number of words:", 
           oxy_xpath(
                "count(tokenize(normalize-space(string-join(text(), '')), ' '))",
                processChangeMarkers,
                true),
           "| "); 
}