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

XPathEvaluator.evaluate() can fail with // 

           Summary: XPathEvaluator.evaluate() can fail with //
           Product: XalanC
           Version: 1.2.x
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XPathC
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Found using the SimpleXPathAPI sample in XalanC (the last stable one, Xalan-
C_1_2-win32.zip  from 17-Aug-2001 12:42), on Windows 2000, using VC6 SP5 to 
compile.

With a context /

It accepts the following expressions 
count(//)
count(//@*)
count(//@*|//)

but throws an exception on 
count(//|//@*)

Have verified that the excpetion is being thrown by the call to 
// OK, let's evaluate the expression...
  const XObjectPtr      theResult(
        theEvaluator.evaluate(
        theDOMSupport,
        theContextNode,
        XalanDOMString(argv[3]).c_str(),
        0));
(from main() in SimpleXPathAPI.cpp)

and have traced it back inside XPathEvaluator::evaluate() where the exception
gets thrown out of 
        theProcessor.initXPath(
                        theXPath,
                        XalanDOMString(xpathString),
                        prefixResolver);
(in XPathEvaluator.cpp)

Haven't traced any further back yet.

Reply via email to