You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Paul Kinnucan <pa...@mathworks.com> on 2021/01/28 03:32:02 UTC
Extend set of builtin XPath functions
Hi,
Is it possible to add to the set of XPath functions supported by Xalan-C++ without modifying Xalan-C++ itself?
I would like to add a matches function and possibly other functions provided by other XPath implementations but not by Xalan.
I have tried using the XPath::installFunction static method but this method ignores a function if it is not a built-in function.
I have tried adding a matches function to a XalanTransformer object using the procedure documented here:
http://xml.apache.org/xalan-c/extensions.html
but this seems to work only if the extension function is invoked in an XSLT template.
Am I missing something or is it that Xalan-C++ does not permit extending its set of XPath functions?
Regards,
Paul