I ran into the same issues with using the PSVI stuff in Xerces.  As soon
as you stray beyond the standards-based APIs, the documentation amounts
to second-guessing the parameters and names of exposed public methods.
I'm pretty good at guessing, but it takes a LOT of time! :(

Glad I could help!

-----Original Message-----
From: Hrvoje Simic [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 18, 2005 12:01 PM
To: Robert Houben
Cc: [EMAIL PROTECTED]
Subject: RE: using position() in an XPath expression within a current
node list


It works! I have tried it on Java 5 with both built-in
(com.sun.org.apache.xpath.internal) and Xalan 2.6.0 imports.

I guess the code didn't work the first time because the XPath classes
bundled with Java 1.4.2 were called. I may check it against older
versions of Xalan to be sure.

The final solution looks OK, I just wish it had been better documented.
I guess these methods were not meant to be publicly used, but this
really is an integral part of XPath specification: the context for
evaluating expressions in not only one node. I believe Apache
implementation covers full functionality of XPath, and it should be easy
for programmers to use it.

Once again, thank you for your help!


Reply via email to