Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 70356 invoked from network); 1 Mar 2010 09:27:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 09:27:26 -0000 Received: (qmail 17465 invoked by uid 500); 28 Feb 2010 17:27:26 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 17385 invoked by uid 500); 28 Feb 2010 17:27:26 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 17261 invoked by uid 99); 28 Feb 2010 17:27:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Feb 2010 17:27:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Feb 2010 17:27:26 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D9506234C4A9 for ; Sun, 28 Feb 2010 17:27:05 +0000 (UTC) Message-ID: <681274336.21761267378025889.JavaMail.jira@brutus.apache.org> Date: Sun, 28 Feb 2010 17:27:05 +0000 (UTC) From: "Matt Benson (JIRA)" To: issues@commons.apache.org Subject: [jira] Resolved: (JXPATH-130) I would like to be able to create a varargs extension function. In-Reply-To: <1169970439.1237242230429.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JXPATH-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matt Benson resolved JXPATH-130. -------------------------------- Resolution: Not A Problem > I would like to be able to create a varargs extension function. > --------------------------------------------------------------- > > Key: JXPATH-130 > URL: https://issues.apache.org/jira/browse/JXPATH-130 > Project: Commons JXPath > Issue Type: Improvement > Affects Versions: 1.2 Final > Reporter: Bob Lyons > Fix For: 1.2 Final > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.