DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7435>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7435

position() function always returns 0

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From [EMAIL PROTECTED]  2003-03-18 09:04 -------
I solved this with some help from postings (thanks to Oleg) on other threads 
and from the web in general. To save anyone else the time trying to work this 
out here is the solution.

The current version of JRE 1.41 has a built in version of xalan (contained in 
rt.jar) which is used by default no matter what other versions of xalan have 
been installed and no matter what is in the classpath. The worst part is that 
this JRE version is an old buggy version and in my case it behaves 
unpredictably with regard to the position function.

The solution is to override this using the endorsed standards override 
mechanism.  Basically you have to create a directory called 'endorsed' below 
the directory for JRE/lib like so:
JRE/lib/endorsed

In this endorsed directory copy the actual xalan jar files from the latest 
version of xalan. It won't work if you simply place the xalan folder there.

I also  found that I had 3 versions of JRE on my system and had to specify the 
one I wanted to set the override on by setting the directory for the java.exe 
in my path. 

Hope this helps someone.
Redge.

Reply via email to