Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 22260 invoked from network); 17 Jun 2008 21:41:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jun 2008 21:41:09 -0000 Received: (qmail 23008 invoked by uid 500); 17 Jun 2008 21:41:11 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 22947 invoked by uid 500); 17 Jun 2008 21:41:11 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 22938 invoked by uid 99); 17 Jun 2008 21:41:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2008 14:41:11 -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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2008 21:40:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E4F0323889C2; Tue, 17 Jun 2008 14:40:39 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r668839 - /cocoon/site/site/2.2/blocks/template/1.0/1391_1_1.html Date: Tue, 17 Jun 2008 21:40:39 -0000 To: cvs@cocoon.apache.org From: gkossakowski@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080617214039.E4F0323889C2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: gkossakowski Date: Tue Jun 17 14:40:39 2008 New Revision: 668839 URL: http://svn.apache.org/viewvc?rev=668839&view=rev Log: Publish changes to Template elements description. Thanks to Kamal Bhatt for doing the actual work. Modified: cocoon/site/site/2.2/blocks/template/1.0/1391_1_1.html Modified: cocoon/site/site/2.2/blocks/template/1.0/1391_1_1.html URL: http://svn.apache.org/viewvc/cocoon/site/site/2.2/blocks/template/1.0/1391_1_1.html?rev=668839&r1=668838&r2=668839&view=diff ============================================================================== --- cocoon/site/site/2.2/blocks/template/1.0/1391_1_1.html (original) +++ cocoon/site/site/2.2/blocks/template/1.0/1391_1_1.html Tue Jun 17 14:40:39 2008 @@ -481,7 +481,26 @@ letter = e <br/> letter = f <br/> letter = g <br/> -

eval

The eval tag permits dynamic evaluation of custom tags.

<jx:eval select="Expression"/>
+ 

attribute

The attribute tag allows the dynamic addition of attributes to any +element tag. This includes dynamic specification of the attribute name.

<jx:attribute name="AttributeName" value="Attribute Value"/>
+
+<jx:attribute name="AttributeName">Attribute Value</jx:attribute>

For example,

<Test>
+  <jx:var name="foo" value="bar"/>
+  <jx:attribute name="${attrName} value="Expression"/>
+</Test>
+

The above template produces the following output:

<Test bar="tar"/>
+

element

The element tag allows the dynamic addition of element. This +includes the dynamic specificatgion of the element name.

<jx:element name="AttributeName" [uri="NamespaceUri"] [prefix="Prefix"]>
+  ...
+</jx:element>
+

If a prefix is specified, then a namespace must also be specified. However, a +namespace may be specified without a prefix. jx:element +may be used in conjunction with jx:attribute.

For example,

<jx:element name="AttributeAndChildNode">
+  <jx:attribute name="attribute" value="attr"/>     
+  <ChildNode>A</ChildNode>
+</jx:element>

The above template produces the following output:

<AttributeAndChildNode attribute="attr">
+  <ChildNode>A</ChildNode>
+</AttributeAndChildNode>

eval

The eval tag permits dynamic evaluation of custom tags.

<jx:eval select="Expression"/>
 

Within the body of a macro, information about the current invocation is available via a special variable macro. This variable contains the following properties: