cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gkossakow...@apache.org
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 GMT
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/>  
- </pre><h2 xmlns:p="http://outerx.org/daisy/1.0#publisher" xmlns:ns="http://outerx.org/daisy/1.0">eval</h2><p>The
<tt>eval</tt> tag permits dynamic evaluation of custom tags.</p><pre>&lt;jx:eval
select=&quot;Expression&quot;/&gt;
+ </pre><h2 xmlns:p="http://outerx.org/daisy/1.0#publisher" xmlns:ns="http://outerx.org/daisy/1.0">attribute</h2><p>The
<tt>attribute </tt>tag allows the dynamic addition of attributes to any
+element tag. This includes dynamic specification of the attribute name.</p><pre>&lt;jx:attribute
name=&quot;AttributeName&quot; value=&quot;Attribute Value&quot;/&gt;
+
+&lt;jx:attribute name=&quot;AttributeName&quot;&gt;Attribute Value&lt;/jx:attribute&gt;</pre><p>For
example,</p><pre>&lt;Test&gt;
+  &lt;jx:var name=&quot;foo&quot; value=&quot;bar&quot;/&gt;
+  &lt;jx:attribute name=&quot;${attrName} value=&quot;Expression&quot;/&gt;
+&lt;/Test&gt;
+</pre><p>The above template produces the following output:</p><pre>&lt;Test
bar=&quot;tar&quot;/&gt;
+</pre><h2 xmlns:p="http://outerx.org/daisy/1.0#publisher" xmlns:ns="http://outerx.org/daisy/1.0">element</h2><p>The
<tt>element</tt> tag allows the dynamic addition of element. This
+includes the dynamic specificatgion of the element name.</p><pre>&lt;jx:element
name=&quot;AttributeName&quot; [uri=&quot;NamespaceUri&quot;] [prefix=&quot;Prefix&quot;]&gt;
+  ...
+&lt;/jx:element&gt;
+</pre><p>If a prefix is specified, then a namespace must also be specified. However,
a
+namespace may be specified without a prefix.<tt><tt><tt> <tt>jx:element
+</tt></tt></tt></tt>may be used in conjunction with<tt> jx:attribute</tt>.</p><p>For
example,</p><pre>&lt;jx:element name=&quot;AttributeAndChildNode&quot;&gt;
+  &lt;jx:attribute name=&quot;attribute&quot; value=&quot;attr&quot;/&gt;  
  
+  &lt;ChildNode&gt;A&lt;/ChildNode&gt;
+&lt;/jx:element&gt;</pre><p>The above template produces the following
output:</p><pre>&lt;AttributeAndChildNode attribute=&quot;attr&quot;&gt;
+  &lt;ChildNode&gt;A&lt;/ChildNode&gt;
+&lt;/AttributeAndChildNode&gt;</pre><h2 xmlns:p="http://outerx.org/daisy/1.0#publisher"
xmlns:ns="http://outerx.org/daisy/1.0">eval</h2><p>The <tt>eval</tt>
tag permits dynamic evaluation of custom tags.</p><pre>&lt;jx:eval select=&quot;Expression&quot;/&gt;
 </pre><p>Within the body of a macro, information about the current invocation
is
 available via a special variable <tt>macro</tt>. This variable contains the
 following properties:</p><table class="bodyTable">



Mime
View raw message