Uploaded image for project: 'Commons JXPath'
  1. Commons JXPath
  2. JXPATH-108

problems with NodeSet returned from custom function.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: 1.3
    • Labels:
      None

      Description

      If a NodeSet (BasicNodeSet) is returned from a custom function,
      count() does not work and returns always 1.

      Perhaps could be added In ri.compiler.CoreFunction.java, method functionCount(EvalContext)

      else if (value instanceof Collection)

      {... }

      else if (value instanceof NodeSet)

      { count = ((NodeSet) value).getValues().size(); }

      or similiar.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vivodamichele@hotmail.com Michele Vivoda
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: