Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 77388 invoked from network); 12 Mar 2008 15:06:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2008 15:06:20 -0000 Received: (qmail 76529 invoked by uid 500); 12 Mar 2008 15:06:16 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 76465 invoked by uid 500); 12 Mar 2008 15:06:16 -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 76456 invoked by uid 99); 12 Mar 2008 15:06:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 08:06:16 -0700 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; Wed, 12 Mar 2008 15:05:47 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 88660234C092 for ; Wed, 12 Mar 2008 08:04:48 -0700 (PDT) Message-ID: <710203942.1205334288549.JavaMail.jira@brutus> Date: Wed, 12 Mar 2008 08:04:48 -0700 (PDT) From: "Javier Arauz (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (SCXML-69) JEXL built-in Data() function cannot return a reference to a whole element MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org JEXL built-in Data() function cannot return a reference to a whole element --------------------------------------------------------------------------------- Key: SCXML-69 URL: https://issues.apache.org/jira/browse/SCXML-69 Project: Commons SCXML Issue Type: Improvement Affects Versions: 0.6, 0.5, 0.7, 0.8, 1.0 Reporter: Javier Arauz Priority: Minor Fix For: 0.8 There is no way with JEXL of building a Data() expression that refers to a whole element, only to one of its children. Using standard W3C SCXML it is possible to refer to a whole element, e.g.: Hi there! In theory, after running the above SCXML the 'foo' data element changes from value 'bar' to 'Hi there!'. There is no equivalent to the above SCXML using JEXL, since no Data() expression yields the root element. This has the side effect that data elements as 'foo' above are effectively constants, since once defined there's no way of changing them. The solution to this problem would consist of implementing a new method in class org.apache.commons.scxml.Builtin that takes just two arguments: the namespaces in use and the name of the element, and returns an org.w3c.Node containing whatever that element contains. Then you could write: Hi there! -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.