I guess I could make some XSL stylesheet, then use it as a template with parameter option to evaluate XPath expression with Saxon XSLT processor on command line, like:
<xsl:template match="/">
<xsl:copy-of select="saxon:evaluate($xpath-param)"/>
</xsl:template>
Also other possibility is to use their Java API: http://www.saxonica.com/documentation/xpath-api/intro.xml but I don't know Java
Is there any way to make Saxon evaluate XPath expression from command line?
Shell script would be sufficient, too, if possible
Update:
Browsing Saxon documentation, I found out about XPathExample sample. Unfortunately I can't make use of it
