Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 75745 invoked from network); 20 Oct 2009 14:42:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Oct 2009 14:42:12 -0000 Received: (qmail 2933 invoked by uid 500); 20 Oct 2009 14:42:11 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 2831 invoked by uid 500); 20 Oct 2009 14:42:10 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 2821 invoked by uid 99); 20 Oct 2009 14:42:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 14:42:09 +0000 X-ASF-Spam-Status: No, hits=-6.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jaroslav.pullmann@fit.fraunhofer.de designates 129.26.165.170 as permitted sender) Received: from [129.26.165.170] (HELO mail.fit.fraunhofer.de) (129.26.165.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 14:42:03 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.fit.fraunhofer.de (Postfix) with ESMTP id 91CCE87EDF3 for ; Tue, 20 Oct 2009 16:41:40 +0200 (CEST) Received: from mail.fit.fraunhofer.de ([129.26.165.170]) by localhost (mail.fit.fraunhofer.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26074-02 for ; Tue, 20 Oct 2009 16:41:36 +0200 (CEST) Received: from [129.26.162.111] (malvin.fit.fraunhofer.de [129.26.162.111]) by mail.fit.fraunhofer.de (Postfix) with ESMTP id 2F1575F600D for ; Tue, 20 Oct 2009 16:41:36 +0200 (CEST) Message-ID: <4ADDCC4D.2080906@fit.fraunhofer.de> Date: Tue, 20 Oct 2009 16:42:21 +0200 From: Jaroslav Pullmann User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: Commons Users List Subject: [SCXML] Retrieving a (wrapped) NodeSet for an XPath / user defined XPath functions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at fit.fraunhofer.de Dear Rahul, dear all, the result value of an XPath-selection is limited to an XPathConstants.NODE as of XPathEvaluator#evalLocation(Context, String). Having a root element is reasonable for assignments etc. but I'd need to select a NodeSet based on the XPath predicates first (and then wrap it evt. into a result element). My use case resembles the form interpretation algorithm (FIA) of VXML: the of a state is updated continually by the payload of arriving events (inputs). There is an UI (form) which reflects the current datamodel and on each change the remaining "empty" items should be selected and presented for completion: ... Although the XPathEvaluator accpets XPathFunctions as constructor arguments, there are no public accessors to the namespace and variable contexts. Could you please provide an exmaple how to accomplish access to a data NodeSet using an XPathFunction or an other way ? Many thanks ! Jaro -- Jaroslav Pullmann Web Compliance Center - Fraunhofer FIT Schloss Birlinghoven, D-53757 Sankt Augustin, Germany Phone: +49-2241-142623 Fax: +49-2241-142065 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org