You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ha...@apache.org on 2002/12/03 18:36:20 UTC

cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/modules modules.xconf

haul        2002/12/03 09:36:20

  Modified:    src/webapp/samples/modules index.xhtml menu.xml sitemap.xmap
               src/java/org/apache/cocoon/components/modules modules.xconf
  Added:       src/webapp/samples/modules forrestconf.xml
  Log:
  Sample for new XMLFileModule thanks to Jeff Turner (jefft@apache.org)
  
  Revision  Changes    Path
  1.3       +4 -0      xml-cocoon2/src/webapp/samples/modules/index.xhtml
  
  Index: index.xhtml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/modules/index.xhtml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- index.xhtml	13 Nov 2002 22:47:41 -0000	1.2
  +++ index.xhtml	3 Dec 2002 17:36:20 -0000	1.3
  @@ -24,6 +24,10 @@
   			<td><a href="system-property.xsp">system-property</a></td>
   			<td>System properties (environment variables)</td>
   		</tr>
  +		<tr>
  +			<td><a href="xml.xsp">xml</a></td>
  +			<td>XML node values</td>
  +		</tr>
   	</table>
           </td>
       </tr>
  
  
  
  1.3       +1 -0      xml-cocoon2/src/webapp/samples/modules/menu.xml
  
  Index: menu.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/modules/menu.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- menu.xml	13 Nov 2002 22:47:41 -0000	1.2
  +++ menu.xml	3 Dec 2002 17:36:20 -0000	1.3
  @@ -15,6 +15,7 @@
       <menu-item label="RequestModule" href="request.xsp"/>
       <menu-item label="SessionModule" href="session.xsp"/>
       <menu-item label="SystemPropertiesModule" href="system-property.xsp"/>
  +    <menu-item label="XMLModule" href="xml.xsp"/>
       <menu-item label="AttributeModule" />
     </menu>
   
  
  
  
  1.3       +16 -1     xml-cocoon2/src/webapp/samples/modules/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/modules/sitemap.xmap,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- sitemap.xmap	13 Nov 2002 22:47:41 -0000	1.2
  +++ sitemap.xmap	3 Dec 2002 17:36:20 -0000	1.3
  @@ -138,6 +138,21 @@
                   </map:match>               
   
   
  +                <map:match pattern="content/xml.xsp">
  +                  <map:generate type="serverpages" src="properties.xsp">
  +                    <map:parameter name="version" value="{myxml:/forrestconf/@version}"/>
  +                    <map:parameter name="skin" value="{myxml:/forrestconf/skin}"/>
  +                    <map:parameter name="base-url" value="{myxml:/*/base-url}"/>
  +                    <!--
  +                    <map:parameter name="slashdot-headline" value="{slashdot:/*:RDF/item[1]/title}"/>
  +                    -->
  +                  </map:generate>
  +                  <map:transform src="properties2html.xsl">
  +                    <map:parameter name="title" value="XML Input Module (XMLModule)"/>  
  +                  </map:transform>
  +                  <map:serialize />
  +                </map:match>
  +
                   <!-- Menu generation -->
                   <map:match pattern="menu/*">
                           <map:generate src="menu.xml"/>
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/modules/forrestconf.xml
  
  Index: forrestconf.xml
  ===================================================================
  <forrestconf version="1.0">
    <skin>forrest-site</skin>
    <base-url>http://localhost:8787/cocoon</base-url>
  </forrestconf>
  
  
  
  1.11      +6 -0      xml-cocoon2/src/java/org/apache/cocoon/components/modules/modules.xconf
  
  Index: modules.xconf
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/modules/modules.xconf,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- modules.xconf	17 Nov 2002 18:00:02 -0000	1.10
  +++ modules.xconf	3 Dec 2002 17:36:20 -0000	1.11
  @@ -31,6 +31,12 @@
   	     <input-module name="session-attr"/>
   	     <input-module name="defaults"/>
   	  </component-instance>
  +      <component-instance class="org.apache.cocoon.components.modules.input.XMLFileModule" logger="core.modules.xml" name="myxml">
  +        <file src="context:///samples/modules/forrestconf.xml"/>
  +      </component-instance>
  +      <component-instance class="org.apache.cocoon.components.modules.input.XMLFileModule" logger="core.modules.xml" name="slashdot">
  +        <file src="http://slashdot.org/slashdot.rss">
  +      </component-instance>
      </input-modules>
   
      <output-modules>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org