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

problems with NodeSet returned from custom function.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Nightly Builds
    • 1.3
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: