cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r895102 - /cocoon/cocoon3/trunk/cocoon-docs/src/docbkx/reference/pipelines.xml
Date Sat, 02 Jan 2010 00:44:31 GMT
Author: reinhard
Date: Sat Jan  2 00:44:31 2010
New Revision: 895102

URL: http://svn.apache.org/viewvc?rev=895102&view=rev
Log:
StringGenerator was merged into the XMLGenerator

Modified:
    cocoon/cocoon3/trunk/cocoon-docs/src/docbkx/reference/pipelines.xml

Modified: cocoon/cocoon3/trunk/cocoon-docs/src/docbkx/reference/pipelines.xml
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-docs/src/docbkx/reference/pipelines.xml?rev=895102&r1=895101&r2=895102&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-docs/src/docbkx/reference/pipelines.xml (original)
+++ cocoon/cocoon3/trunk/cocoon-docs/src/docbkx/reference/pipelines.xml Sat Jan  2 00:44:31
2010
@@ -91,7 +91,7 @@
           <area id="pipelines.definition.execute" coords="8"/>
         </areaspec>      
       <programlisting language="java"><![CDATA[Pipeline<SAXPipelineComponent>
pipeline = new NonCachingPipeline<SAXPipelineComponent>();
-pipeline.addComponent(new StringGenerator("<x></x>"));
+pipeline.addComponent(new XMLGenerator("<x></x>"));
 pipeline.addComponent(new XSLTTransformer(this.getClass().getResource("/test1.xslt")));
 pipeline.addComponent(new XSLTTransformer(this.getClass().getResource("/test2.xslt")));
 pipeline.addComponent(new XMLSerializer());
@@ -113,7 +113,7 @@
               pipeline by using the pipeline's <literal>addComponent(pipelineComponent)</literal>
interface.
             </para>
             <para>
-              The <literal>StringGenerator</literal> expects a <literal>java.lang.String</literal>
object and produces SAX events by using a SAX parser.
+              The <literal>XMLGenerator</literal> expects a <literal>java.lang.String</literal>
object and produces SAX events by using a SAX parser.
               Hence it has to implement the <literal>org.apache.cocoon.sax.component.SAXProducer</literal>
interface.
             </para>
             <para>
@@ -121,7 +121,7 @@
               means that it expects the next (or the same!) component to implement the <literal>org.apache.cocoon.pipeline.component.Consumer</literal>
               interface. The check that the next pipeline component is of type <literal>org.apache.cocoon.sax.component.SAXConsumer</literal>
               isn't done at interface level but by the implementation (see the <literal>org.apache.cocoon.sax.component.AbstractXMLProducer</literal>
-              for details which the <literal>StringGenerator</literal> is inherited
from).
+              for details which the <literal>XMLGenerator</literal> is inherited
from).
             </para>
             <para>
               Since a generator is the first component of a pipeline, it also has to implement
the <literal>Starter</literal> interface.
@@ -139,12 +139,12 @@
             <para>
               Since it implements the <literal>org.apache.cocoon.pipeline.component.Consumer</literal>
interface, it fulfills the general contract that a <literal>Consumer</literal>
               is linked with a <literal>Producer</literal>. By implementing the
<literal>org.apache.cocoon.sax.component.SAXConsumer</literal> interface,
-              it fulfills the specific requirement of the previous <literal>StringGenerator</literal>
that expects a next pipeline component of that type. 
+              it fulfills the specific requirement of the previous <literal>XMLGenerator</literal>
that expects a next pipeline component of that type. 
             </para>
             <para>
               This transformer also implements the <literal>org.apache.cocoon.sax.component.SAXProducer</literal>
interface. This interface extends the
               <literal>org.apache.cocoon.pipeline.component.Producer</literal>
interface which means that the next component has to be a 
-              <literal>org.apache.cocoon.pipeline.component.Consumer</literal>.
Like the previous <literal>StringGenerator</literal>, the <literal>XSLTTransformer</literal>
+              <literal>org.apache.cocoon.pipeline.component.Consumer</literal>.
Like the previous <literal>XMLGenerator</literal>, the <literal>XSLTTransformer</literal>
               inherits from the <literal>org.apache.cocoon.sax.component.AbstractXMLProducer</literal>
which contains the check that the next component
               is of type <literal>org.apache.cocoon.sax.component.SAXConsumer</literal>.

             </para>



Mime
View raw message