wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes XPath - writing extension functions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XPath - writing extension functions" Watch "XPath - writing extension functions" New topic
Author

XPath - writing extension functions

Roger Adams
Greenhorn

Joined: Dec 25, 2003
Posts: 5
Hi!
I need to use my own extension function in an XPath query. For example my query may look like "myns:myfunc('param1') > 2". Is there an XPath implementation in Java that makes it possible? I've already tried Xalan2J, but it doesn't support writing my own extension functions (without hacking the source code). I've also tried Jaxen, which makes it possible, but it cannot handle namespace prefixes for functions. Is there any other XPath implementation in Java besides Xalan and Jaxen or does anyone have an idea about the problem?
[ December 25, 2003: Message edited by: Roger Adams ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XPath - writing extension functions
 
Similar Threads
XPath functions and WebSphere
reading xml file in Android
JComboBox.setSelectedItem() does not update the displayed value
How to perform an XPath Query with namespaces.
XPath for non-XML