Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-276

selectPath() with setXqueryCurrentNodeVar() option does not work for Saxon

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Version 2.1
    • Fix Version/s: Version 2.2.1
    • Component/s: XPath
    • Labels:
      None
    • Environment:
      Windows XP

      Description

      When doing a selectPath() or execQuery() on an XmlObject or XmlCursor, "$this" gets bound automagically to the current node. In XmlOptions, there is a method to set a variable of a different name (than "this") to the current node - setXqueryCurrentNodeVar(String).
      However, setting this option doesn't work when doing a selectPath(String, XmlOptions) using Saxon. [I tried this using XMLBeans 2.1.0 + Saxon 8.1.1 as well as XMLBeans latest svn + Saxon 8.6.1.]
      The same thing works when using the BEA XQuery engine.

        Attachments

        1. xpath_fix.diff
          4 kB
          Wing Yew Poon

          Activity

            People

            • Assignee:
              wypoon Wing Yew Poon
              Reporter:
              wypoon Wing Yew Poon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: