UweSchmidt / hxt

Haskell XML Toolbox

Home Page:http://www.fh-wedel.de/~si/HXmlToolbox/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

register functions in xpath

vandenoever opened this issue · comments

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.