register functions in xpath
vandenoever opened this issue · comments
vandenoever commented
XPath 1.0 is fairly limited. This can be compensated by allowing custom functions. Most XPath implementations allow them.
http://cafeconleche.org/books/xmljava/chapters/ch17s03.html
http://xmlsoft.org/XSLT/extensions.html
Perhaps parseXPathExprWithNsEnv
could be joined by a function parseXPathExprWithContext
where the context contains a map of (QName, [[XmlTree]] -> [XmlTree])
.
[[XmlTree]]
would be the function arguments.