Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 70315 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 17189 invoked by uid 500); 28 Feb 2010 17:27:26 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 17140 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 17102 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:25 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D0CBB234C48D for ; Sun, 28 Feb 2010 17:27:05 +0000 (UTC) Message-ID: <62871257.21741267378025854.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] Commented: (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:comment-tabpanel&focusedCommentId=12839460#action_12839460 ] Matt Benson commented on JXPATH-130: ------------------------------------ It should be possible to call your varargs method by wrapping the variable arguments in an array. At this time it's not yet clear to me whether and how it would be appropriate for JXPath to attempt to emulate the compiler in this manner. > 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.