Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-92

XPathEvaluator.evaluate() can miss errors with //

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.2.x
    • None
    • XPathC
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 5049

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cyberthymia@yahoo.co.uk Richard Jinks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: