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=7776>.
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=7776

Value not being passed to extension function





------- Additional Comments From [EMAIL PROTECTED]  2002-05-03 14:53 
-------
Traced down this problem to xpath.axes.NodeSequence.

It seems that in this particular case the cache isn't activated
for this NodeSequence (XNodeSet).

The XNodeSet used for function execution is created by
xpath.axes.LocPathIterator::execute.

When I activate cache manually in NodeSequence.setRoot()
everything works fine:

diff -u -r1.2 NodeSequence.java
--- NodeSequence.java   22 Mar 2002 01:04:43 -0000      1.2
+++ NodeSequence.java   3 May 2002 14:44:43 -0000
@@ -250,10 +250,10 @@
                XPathContext xctxt = (XPathContext)environment;
                m_dtmMgr = xctxt.getDTMManager();
                m_iter.setRoot(nodeHandle, environment);
+               if(!hasCache())
+                       setShouldCacheNodes(true);
                if(!m_iter.isDocOrdered())
                {
-                       if(!hasCache())
-                               setShouldCacheNodes(true);
                        runTo(-1);
                        m_next=0;
                }
@@ -314,7 +314,6 @@

Could someone with more knowledge please look at this?

Reply via email to