Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 30456 invoked from network); 21 Jul 2006 21:11:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jul 2006 21:11:54 -0000 Received: (qmail 49353 invoked by uid 500); 21 Jul 2006 21:11:44 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 49271 invoked by uid 500); 21 Jul 2006 21:11:43 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 49241 invoked by uid 99); 21 Jul 2006 21:11:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jul 2006 14:11:43 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of david.karr@wamu.net designates 167.88.201.31 as permitted sender) Received: from [167.88.201.31] (HELO mtao001.wamu.net) (167.88.201.31) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jul 2006 14:11:42 -0700 Received: from ([10.144.81.63]) by mtao001.wamu.net with ESMTP id KP-BXZ13.156306657; Fri, 21 Jul 2006 14:11:05 -0700 Received: from EXMSEA005.us.wamu.net ([10.144.81.24]) by exisea010.us.wamu.net with Microsoft SMTPSVC(6.0.3790.1830); Fri, 21 Jul 2006 14:11:05 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: [jelly] How to define tag inline as "subroutine" that is only executed when called? Date: Fri, 21 Jul 2006 14:11:00 -0700 Message-ID: <0C260F619E428642BFA6380177C3ADF303EE85C4@exmsea005.us.wamu.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [jelly] How to define tag inline as "subroutine" that is only executed when called? Thread-Index: AcatCiq/ep3265AqSYqmV5wl+oSlaw== From: "Karr, David" To: "Jakarta Commons Users List" X-OriginalArrivalTime: 21 Jul 2006 21:11:05.0387 (UTC) FILETIME=[2DA787B0:01C6AD0A] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I now need to define blocks that I can call at different times, with different parameter values. It looks like this would be done with the "tag" tag. I'm guessing that I don't define what parameters it can take, it will just take any XML attributes set in the tag call and assign those to implicit variables. So, I figured I would define these near the top of my script, and call them further down. What I found is that when I executed my script, it tried to execute the body of my defined tag, even before I had called it (it complained about variables not being set). How do I define a new tag, or block, or something, so that it's only called when I need to call it? --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org