I encountered the same problem a couple of weeks ago when I had to add namespace support to functions for a project that uses Jaxen. I digged around on the Saxpath mailing list at SourceForge, and found a patch submitted by Michael Brennan on September 1, which I have attached to this message. You will need to apply this patch to the Saxpath 1.0 FCS release and then rebuild saxpath.jar.
Regards, David Mellor. On Wed, 2002-12-11 at 18:25, bob mcwhirter wrote: > > Any insights into how to get functions to work with prefixes or a fix if > > this is a bug would be greatly appreciated. > > Yah, it's a bug. I think it's documented in http://jira.werken.com/ but > if not, wouldja care to add it? > > The fix? Submit a patch, or give me some extra days in the week. > > -bob > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Jaxen-interest mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jaxen-interest >
diff -Nur --exclude=build saxpath.SAVE/src/conf/MANIFEST.MF saxpath-1.0-FCS/src/conf/MANIFEST.MF --- saxpath.SAVE/src/conf/MANIFEST.MF Wed Dec 31 16:00:00 1969 +++ saxpath-1.0-FCS/src/conf/MANIFEST.MF Tue Dec 3 11:27:47 2002 @@ -0,0 +1,9 @@ +Manifest-Version: 1.0 +Extension-Name: org.saxpath +Specification-Title: saxpth +Specification-Version: 1.0 FCS +Specification-Vendor: werken digital. +Created-By: Ant 1.4.1 +Implementation-Vendor: werken digital. +Implementation-Version: 1.0 +Implementation-Title: saxpath diff -Nur --exclude=build saxpath.SAVE/src/java/main/com/werken/saxpath/XPathReader.java saxpath-1.0-FCS/src/java/main/com/werken/saxpath/XPathReader.java --- saxpath.SAVE/src/java/main/com/werken/saxpath/XPathReader.java Fri Apr 26 10:52:20 2002 +++ saxpath-1.0-FCS/src/java/main/com/werken/saxpath/XPathReader.java Tue Dec 3 11:13:14 2002 @@ -144,9 +144,8 @@ } case IDENTIFIER: { - if ( ( ( LA(2) == LEFT_PAREN ) - && - ( ! isNodeTypeName( LT(1) ) ) ) ) + if ((LA(2) == LEFT_PAREN && !isNodeTypeName(LT(1))) || + (LA(2) == COLON && LA(4) == LEFT_PAREN)) { filterExpr();