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

I would like to be able to create a varargs extension function.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.2 Final
    • 1.2 Final
    • None

    Description

      I was not able to create an extension function that has a variable number of arguments.
      I'd like to create an extension function that returns true if the first argument is equal to any of the other arguments.
      For example:

      ns:firstArgIsInList( node, 1, 2, 3, 4, 5 )

      which would return true if node is equal to 1, 2, 3, 4 or 5.

      Thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            boblyons Bob Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: