Return-Path: X-Original-To: apmail-groovy-users-archive@minotaur.apache.org Delivered-To: apmail-groovy-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AB22919CD9 for ; Tue, 5 Apr 2016 13:10:42 +0000 (UTC) Received: (qmail 96690 invoked by uid 500); 5 Apr 2016 13:10:42 -0000 Delivered-To: apmail-groovy-users-archive@groovy.apache.org Received: (qmail 96662 invoked by uid 500); 5 Apr 2016 13:10:42 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 96652 invoked by uid 99); 5 Apr 2016 13:10:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Apr 2016 13:10:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EC780180579 for ; Tue, 5 Apr 2016 13:10:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.232 X-Spam-Level: ** X-Spam-Status: No, score=2.232 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_FAIL=0.919, URI_HEX=1.313] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id T-ZAKns98Cle for ; Tue, 5 Apr 2016 13:10:38 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 4E4935F244 for ; Tue, 5 Apr 2016 13:10:37 +0000 (UTC) Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 671B9248640B for ; Tue, 5 Apr 2016 05:58:43 -0700 (PDT) Date: Tue, 5 Apr 2016 06:10:36 -0700 (MST) From: BBuzzard To: users@groovy.incubator.apache.org Message-ID: <1459861836290-5732195.post@n5.nabble.com> In-Reply-To: <1459794371700-5732187.post@n5.nabble.com> References: <1459794371700-5732187.post@n5.nabble.com> Subject: Re: How do I bind XPath expression values to a template using Groovy MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I found way the second template would could execute. The bindings must be in the form of Map, but I was passing in a GString as the key for the map. Note: "$parameterName" is a GString. After converting the key to a String the second template executed correctly. -- View this message in context: http://groovy.329449.n5.nabble.com/How-do-I-bind-XPath-expression-values-to-a-template-using-Groovy-tp5732187p5732195.html Sent from the Groovy Users mailing list archive at Nabble.com.