[4suite] Using EXSLT functions from an XPath query
John L. Clark
jlc6 at po.cwru.edu
Thu Jul 10 14:47:40 MDT 2008
I'm trying to use EXSLT functions from within an XPath query, but the
function map does not seem to be registering. Here's (nearly) what
I'm doing:
from Ft.Xml.Xslt import Exslt
# other imports
xpath_expression = Compile(some_expression_string)
xpath_context = Context(None, processorNss=NSS,
extFunctionMap=Exslt.ExtFunctions)
doc = Parse(some_filename)
result = Evaluate(xpath_expression, doc, xpath_context)
In this snippet, `NSS` contains the map {'date':
'http://exslt.org/dates-and-times'}, `some_expression_string` makes an
EXSLT function call, and this results in the following exception:
Ft.Xml.XPath.RuntimeException: Undefined function: "date:difference".
Any thoughts?
Thanks,
John L. Clark
--
PLEASE NOTE that this message is not digitally signed. As a result,
you have no strong evidence that this message was actually sent by me.
Upon request I can provide a digitally signed receipt for this message
or other evidence validating its contents if you need such evidence.
More information about the 4suite
mailing list