Hi everyone. I'd like to use Xalan's XPath implementation with SVG documents loaded by Batik (which, I assume, uses Xerces). I would like, though, to have some extra functions available in the XPath expressions, which act just like the core XPath functions.
I notice on this[1] page an example Java class called MyCounter. This is then used in the XSLT stylesheet with the xalan:component element. Now, since I don't have an XSLT document, just an SVG document (to which I don't want to add any extension function looking things (like xalan:component, a different namespace)) I don't know how to register a class which has extension XPath functions in it with the XPath implementation. I'm guessing it somehow needs to be given to the XPathContext that each XPath will use. But how exactly do I do that? Thanks, Cameron [1] http://xml.apache.org/xalan-j/extensions.html -- Cameron McCormack // [EMAIL PROTECTED] // http://www.csse.monash.edu.au/~clm/ // icq 26955922