You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by co...@apache.org on 2003/05/25 06:29:01 UTC

cvs commit: cocoon-2.1/src/documentation/xdocs/userdocs/flow index.xml jxtemplate.xml

coliver     2003/05/24 21:29:01

  Modified:    src/documentation/xdocs/userdocs/flow index.xml
                        jxtemplate.xml
  Log:
  more corrections
  
  Revision  Changes    Path
  1.2       +1 -1      cocoon-2.1/src/documentation/xdocs/userdocs/flow/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/documentation/xdocs/userdocs/flow/index.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- index.xml	25 Mar 2003 13:43:33 -0000	1.1
  +++ index.xml	25 May 2003 04:29:00 -0000	1.2
  @@ -32,7 +32,7 @@
   
         <p>Moreover, the interactions in some applications are more
         complex than a simple finite state machine. In such cases it's
  -      much easier to think and implement the application as a program,
  +      much easier to think of and implement the application as a program,
         rather than a FSM.</p>
   
         <p>By using a high level programming concept called
  
  
  
  1.4       +3 -3      cocoon-2.1/src/documentation/xdocs/userdocs/flow/jxtemplate.xml
  
  Index: jxtemplate.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/documentation/xdocs/userdocs/flow/jxtemplate.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- jxtemplate.xml	25 May 2003 00:48:47 -0000	1.3
  +++ jxtemplate.xml	25 May 2003 04:29:00 -0000	1.4
  @@ -11,12 +11,12 @@
   <body>
   	<s1 title="JXTemplate Generator">
     <p>
  -The JXTemplate Generator is a page template processor that allows you to inject data from Java and JavaScript objects passed by a Cocoon Flowscript into a Cocoon pipeline. It provides a set of tags (similar to the <link href="http://java.sun.com/products/jsp/jstl/">JSTL</link> core tags) that allow you to iterate over Java collections (and Java or JavaScript arrays) and to test for the presence of optional or alternate bean properties, as well as embedded expressions to specify conditions and to access the properties of objects. The <em>JX</em>Template Generator gets its name from the embedded expression languages it supports, namely <link href="http://jakarta.apache.org/commons/jxpath">Apache <em>JX</em>Path</link> and <link href="http://jakarta.apache.org/commons/jxpath">Apache <em>J</em>e<em>X</em>l</link>. 
  +The JXTemplate Generator is a page template processor that allows you to inject data from Java and JavaScript objects passed by a Cocoon Flowscript into a Cocoon pipeline. It provides a set of tags (similar to the <link href="http://java.sun.com/products/jsp/jstl/">JSTL</link> core tags) that allow you to iterate over Java collections (and Java or JavaScript arrays) and to test for the presence of optional or alternate bean properties, as well as embedded expressions to specify conditions and to access the properties of objects. The <em>JX</em>Template Generator gets its name from the embedded expression languages it supports, namely <link href="http://jakarta.apache.org/commons/jxpath">Apache <em>JX</em>Path</link> and <link href="http://jakarta.apache.org/commons/jexl">Apache <em>J</em>e<em>X</em>l</link>. 
     </p>
            </s1>
            <s1 title="Expression Languages">
     <p>
  -The JXTemplateGenerator supports two embedded expression languages: <link href="http://jakarta.apache.org/commons/jxpath">Jexl</link> and <link href="http://jakarta.apache.org/commons/jxpath">JXPath</link>. Apache <link href="http://jakarta.apache.org/commons/jxpath">Jexl</link> provides an extended version of the expression language of the <link href="http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL.html">JSTL</link>. Apache <link href="http://jakarta.apache.org/commons/jxpath">JXPath</link> provides an interpreter of the <link href="http://www.w3.org/TR/xpath">XPath</link> expression language that can apply XPath expressions to graphs of Java objects of all kinds: JavaBeans, Maps, Servlet contexts, DOM etc, including mixtures thereof.
  +The JXTemplateGenerator supports two embedded expression languages: <link href="http://jakarta.apache.org/commons/jexl">Jexl</link> and <link href="http://jakarta.apache.org/commons/jxpath">JXPath</link>. Apache <link href="http://jakarta.apache.org/commons/jexl">Jexl</link> provides an extended version of the expression language of the <link href="http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL.html">JSTL</link>. Apache <link href="http://jakarta.apache.org/commons/jxpath">JXPath</link> provides an interpreter of the <link href="http://www.w3.org/TR/xpath">XPath</link> expression language that can apply XPath expressions to graphs of Java objects of all kinds: JavaBeans, Maps, Servlet contexts, DOM etc, including mixtures thereof.
    </p>
     <p>
    Having an embedded expression language allows a page author to access an object using a simple syntax such as
  @@ -258,7 +258,7 @@
   &lt;/c:macro&gt;
   </source>
   <p>The <code>parameter</code> tags in the macro definition define formal parameters, which are replaced with the actual attribute values of the tag when it is used. The content of the tag is also available as a special variable <code>${content}</code>.</p><p>Assuming you had this code in your flowscript:</p><p>
  -   <code>var greatlakes = ["Superior", "Michigan", "Huron", "Erie", "Ontario"];</code></p><p><code> sendPage(uri, {greatlakes: greatlakes});</code>
  +   <source><p>var greatlakes = ["Superior", "Michigan", "Huron", "Erie", "Ontario"];</p><p>sendPage(uri, {greatlakes: greatlakes});</p></source>
   </p><p>and a template like this:</p><source>
   &lt;table&gt;
      &lt;tablerows list="${greatlakes}" color="blue"/&gt;