cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-cocoon2/src/webapp/samples/modules index.xhtml properties2html.xsl sitemap.xmap
Date Sun, 19 Jan 2003 02:51:24 GMT
jefft       2003/01/18 18:51:23

  Modified:    src/java/org/apache/cocoon/components/modules modules.xconf
               src/webapp/samples/modules index.xhtml properties2html.xsl
                        sitemap.xmap
  Log:
  Reindent and zap tabs
  
  Revision  Changes    Path
  1.16      +64 -64    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.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- modules.xconf	10 Jan 2003 13:09:52 -0000	1.15
  +++ modules.xconf	19 Jan 2003 02:51:23 -0000	1.16
  @@ -1,72 +1,72 @@
   <?xml version="1.0"?>
   
   <xconf xpath="/cocoon" unless="input-modules">
  -   <!-- =============== Sitemap In/Out/Database Modules ==================== -->
  -   
  -   <input-modules>
  -      <component-instance logger="core.modules.input" name="global"       	class="org.apache.cocoon.components.modules.input.GlobalInputModule"/>
  -      <component-instance logger="core.modules.input" name="request"       	class="org.apache.cocoon.components.modules.input.RequestModule"/>
  -      <component-instance logger="core.modules.input" name="session"       	class="org.apache.cocoon.components.modules.input.SessionModule"/>
  -      <component-instance logger="core.modules.input" name="request-param"   	class="org.apache.cocoon.components.modules.input.RequestParameterModule"/>
  -      <component-instance logger="core.modules.input" name="request-attr" 	class="org.apache.cocoon.components.modules.input.RequestAttributeModule"/>
  -      <component-instance logger="core.modules.input" name="request-header"    	class="org.apache.cocoon.components.modules.input.HeaderAttributeModule"/>
  -      <component-instance logger="core.modules.input" name="session-attr"   	class="org.apache.cocoon.components.modules.input.SessionAttributeModule"/>
  -      <component-instance logger="core.modules.input" name="system-property"   	class="org.apache.cocoon.components.modules.input.SystemPropertyModule"/>
  -      <component-instance logger="core.modules.input" name="constant"  		class="org.apache.cocoon.components.modules.input.StringConstantModule"/>
  -      <component-instance logger="core.modules.input" name="random"    		class="org.apache.cocoon.components.modules.input.RandomNumberModule"/>
  -      <component-instance logger="core.modules.input" name="digest"     	class="org.apache.cocoon.components.modules.input.DigestMetaModule"/>
  -      <component-instance logger="core.modules.input" name="date"       	class="org.apache.cocoon.components.modules.input.DateInputModule"/>
  -      <component-instance logger="core.modules.input" name="nullinput"  	class="org.apache.cocoon.components.modules.input.NullInputModule"/>
  -      <component-instance logger="core.modules.input" name="xmlmeta"    	class="org.apache.cocoon.components.modules.input.XMLMetaModule"/>
  -      <component-instance logger="core.modules.input" name="mapmeta"    	class="org.apache.cocoon.components.modules.input.MapMetaModule"/>
  -      <component-instance logger="core.modules.input" name="datemeta"    	class="org.apache.cocoon.components.modules.input.DateMetaInputModule"/>
  -      <component-instance logger="core.modules.input" name="xmlform"    	class="org.apache.cocoon.components.modules.input.XMLFormInput"/>
  -      <component-instance logger="core.modules.input" name="chain"   	class="org.apache.cocoon.components.modules.input.ChainMetaModule">
  -	     <input-module name="request-param"/>
  -	     <input-module name="request-attr"/>
  -	     <input-module name="session-attr"/>
  -	     <input-module name="defaults"/>
  -	  </component-instance>
  -	  <!-- sample -->
  -	  <!-- 
  -      <component-instance logger="core.modules.input" name="defaults"   	class="org.apache.cocoon.components.modules.input.DefaultsMetaModule">
  -		 <values>
  -			<skin>defaultSkin</skin>
  -			<base-url>http://localhost:8080/cocoon</base-url>
  -		 </values>
  -	  </component-instance>
  -      -->
  +  <!-- =============== Sitemap In/Out/Database Modules ==================== -->
   
  -      <!-- input modules sample -->
  -      <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>
  +    <component-instance logger="core.modules.input" name="global"           class="org.apache.cocoon.components.modules.input.GlobalInputModule"/>
  +    <component-instance logger="core.modules.input" name="request"          class="org.apache.cocoon.components.modules.input.RequestModule"/>
  +    <component-instance logger="core.modules.input" name="session"          class="org.apache.cocoon.components.modules.input.SessionModule"/>
  +    <component-instance logger="core.modules.input" name="request-param"    class="org.apache.cocoon.components.modules.input.RequestParameterModule"/>
  +    <component-instance logger="core.modules.input" name="request-attr"     class="org.apache.cocoon.components.modules.input.RequestAttributeModule"/>
  +    <component-instance logger="core.modules.input" name="request-header"   class="org.apache.cocoon.components.modules.input.HeaderAttributeModule"/>
  +    <component-instance logger="core.modules.input" name="session-attr"     class="org.apache.cocoon.components.modules.input.SessionAttributeModule"/>
  +    <component-instance logger="core.modules.input" name="system-property"  class="org.apache.cocoon.components.modules.input.SystemPropertyModule"/>
  +    <component-instance logger="core.modules.input" name="constant"         class="org.apache.cocoon.components.modules.input.StringConstantModule"/>
  +    <component-instance logger="core.modules.input" name="random"           class="org.apache.cocoon.components.modules.input.RandomNumberModule"/>
  +    <component-instance logger="core.modules.input" name="digest"       class="org.apache.cocoon.components.modules.input.DigestMetaModule"/>
  +    <component-instance logger="core.modules.input" name="date"         class="org.apache.cocoon.components.modules.input.DateInputModule"/>
  +    <component-instance logger="core.modules.input" name="nullinput"    class="org.apache.cocoon.components.modules.input.NullInputModule"/>
  +    <component-instance logger="core.modules.input" name="xmlmeta"      class="org.apache.cocoon.components.modules.input.XMLMetaModule"/>
  +    <component-instance logger="core.modules.input" name="mapmeta"      class="org.apache.cocoon.components.modules.input.MapMetaModule"/>
  +    <component-instance logger="core.modules.input" name="datemeta"     class="org.apache.cocoon.components.modules.input.DateMetaInputModule"/>
  +    <component-instance logger="core.modules.input" name="xmlform"      class="org.apache.cocoon.components.modules.input.XMLFormInput"/>
  +    <component-instance logger="core.modules.input" name="chain"    class="org.apache.cocoon.components.modules.input.ChainMetaModule">
  +      <input-module name="request-param"/>
  +      <input-module name="request-attr"/>
  +      <input-module name="session-attr"/>
  +      <input-module name="defaults"/>
  +    </component-instance>
  +    <!-- sample -->
  +    <!-- 
  +    <component-instance logger="core.modules.input" name="defaults"     class="org.apache.cocoon.components.modules.input.DefaultsMetaModule">
  +      <values>
  +        <skin>defaultSkin</skin>
  +        <base-url>http://localhost:8080/cocoon</base-url>
  +      </values>
  +    </component-instance>
  +    -->
   
  -	  <!-- LinkRewritingTransformer Sample -->
  -      <component-instance
  -        class="org.apache.cocoon.components.modules.input.XMLFileModule"
  -        logger="core.modules.xml" name="linkmap">
  -        <file src="cocoon://samples/link/linkmap"/>
  -        <!-- Shouldn't this be the default? -->
  -        <reloadable>true</reloadable>
  -      </component-instance>
  -       <component-instance
  -         class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
  -         logger="core.modules.mapper" name="site">
  -         <input-module name="linkmap"/>
  -         <prefix>/site/</prefix>
  -         <suffix>/@href</suffix>
  -       </component-instance>
  -	   <!-- end LinkRewritingTransformer Sample -->
  -   </input-modules>
  +    <!-- input modules sample -->
  +    <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>
   
  -   <output-modules>
  -      <component-instance logger="core.modules.output" name="request-attr" class="org.apache.cocoon.components.modules.output.RequestAttributeOutputModule"/>
  -      <component-instance logger="core.modules.output" name="request-attr-map" class="org.apache.cocoon.components.modules.output.RequestAttributeMap"/>
  -      <component-instance logger="core.modules.output" name="session-attr"   class="org.apache.cocoon.components.modules.output.SessionAttributeOutputModule"/>
  -   </output-modules>
  +    <!-- LinkRewritingTransformer Sample -->
  +    <component-instance
  +      class="org.apache.cocoon.components.modules.input.XMLFileModule"
  +      logger="core.modules.xml" name="linkmap">
  +      <file src="cocoon://samples/link/linkmap"/>
  +      <!-- Shouldn't this be the default? -->
  +      <reloadable>true</reloadable>
  +    </component-instance>
  +    <component-instance
  +      class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
  +      logger="core.modules.mapper" name="site">
  +      <input-module name="linkmap"/>
  +      <prefix>/site/</prefix>
  +      <suffix>/@href</suffix>
  +    </component-instance>
  +    <!-- end LinkRewritingTransformer Sample -->
  +  </input-modules>
  +
  +  <output-modules>
  +    <component-instance logger="core.modules.output" name="request-attr" class="org.apache.cocoon.components.modules.output.RequestAttributeOutputModule"/>
  +    <component-instance logger="core.modules.output" name="request-attr-map" class="org.apache.cocoon.components.modules.output.RequestAttributeMap"/>
  +    <component-instance logger="core.modules.output" name="session-attr"   class="org.apache.cocoon.components.modules.output.SessionAttributeOutputModule"/>
  +  </output-modules>
   
   </xconf>
  
  
  
  1.4       +25 -25    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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- index.xhtml	3 Dec 2002 17:36:20 -0000	1.3
  +++ index.xhtml	19 Jan 2003 02:51:23 -0000	1.4
  @@ -4,31 +4,31 @@
       <tr>
           <td>
           <h3>Input Modules</h3>
  -	<p>Modules are used to access input and output data in 
  -	modular way.
  -	</p>
  -	<table class="table">
  -		<tr>
  -			<th>Input module</th>
  -			<th>Description</th>
  -		</tr>
  -		<tr>
  -			<td><a href="request.xsp">request</a></td>
  -			<td>Request object properties</td>
  -		</tr>
  -		<tr>
  -			<td><a href="session.xsp">session</a></td>
  -			<td>Session object properties</td>
  -		</tr>
  -		<tr>
  -			<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>
  +    <p>Modules are used to access input and output data in 
  +    modular way.
  +    </p>
  +    <table class="table">
  +        <tr>
  +            <th>Input module</th>
  +            <th>Description</th>
  +        </tr>
  +        <tr>
  +            <td><a href="request.xsp">request</a></td>
  +            <td>Request object properties</td>
  +        </tr>
  +        <tr>
  +            <td><a href="session.xsp">session</a></td>
  +            <td>Session object properties</td>
  +        </tr>
  +        <tr>
  +            <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>
   </table>
  
  
  
  1.2       +9 -9      xml-cocoon2/src/webapp/samples/modules/properties2html.xsl
  
  Index: properties2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/modules/properties2html.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- properties2html.xsl	20 Sep 2002 22:56:36 -0000	1.1
  +++ properties2html.xsl	19 Jan 2003 02:51:23 -0000	1.2
  @@ -5,15 +5,15 @@
   
   <xsl:template match="/">
   <page>
  -	<title><xsl:value-of select="$title"/></title>
  -	<table class="content">
  -	    <tr>
  -	        <td>	
  -    	            <h3><xsl:value-of select="$title"/></h3>
  -		    <xsl:apply-templates />
  -		</td>
  -	    </tr>
  -	</table>
  +    <title><xsl:value-of select="$title"/></title>
  +    <table class="content">
  +        <tr>
  +            <td>    
  +                <h3><xsl:value-of select="$title"/></h3>
  +                <xsl:apply-templates />
  +            </td>
  +        </tr>
  +    </table>
   </page>
   </xsl:template>
   
  
  
  
  1.5       +176 -176  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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- sitemap.xmap	19 Dec 2002 11:10:38 -0000	1.4
  +++ sitemap.xmap	19 Jan 2003 02:51:23 -0000	1.5
  @@ -1,182 +1,182 @@
   <?xml version="1.0"?>
  -<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
   <!-- $Id$ -->
   <!--
  -    Input Modules sample sitemap.
  +Input Modules sample sitemap.
   
  -    Author: Konstantin Piroumian "kpiroumian@apache.org" 
  +Author: Konstantin Piroumian "kpiroumian@apache.org" 
   -->
  -   <!-- =========================== Resources =============================== -->
  -    <map:resources>
  -        <!-- This resource is used to create a composite page from menu and content
-->
  -        <map:resource name="composite">
  -            <map:aggregate element="site">
  -                <map:part src="cocoon:/menu/{../0}"/>
  -                <map:part src="cocoon:/content/{../0}" label="content"/>
  -            </map:aggregate>
  -            <map:transform src="site2html.xsl">
  -                <map:parameter name="page" value="{../0}" />
  -            </map:transform>
  -            <map:serialize/>
  -        </map:resource>
  -    </map:resources>
  -
  -
  -   <!-- =========================== Pipelines ================================= -->
  -    <map:pipelines>
  -        <map:pipeline>
  -        
  -                <!-- Default URL matcher. Matches '/' URLs-->
  -                <map:match pattern="">
  -                    <map:redirect-to uri="index.xsp" />
  -                </map:match>
  -
  -                <!-- Generate dynamic output (simple.xsp) -->            
  -                <map:match pattern="*.xsp">
  -                    <map:call resource="composite" />
  -                </map:match>                
  -
  -
  -                <map:match pattern="content/index.xsp">
  -                        <map:generate src="index.xhtml"/>
  -			<map:serialize/>
  -                </map:match>                            
  -		
  -                <map:match pattern="content/request.xsp">
  -                        <map:generate type="serverpages" src="properties.xsp">
  -				<map:parameter name="attribute-names" value="{request:attributeNames}"/>
  -				<map:parameter name="auth-type" value="{request:authType}"/>
  -				<map:parameter name="character-encoding" value="{request:characterEncoding}"/>
  -				<map:parameter name="cookie-map" value="{request:cookieMap}"/>
  -				<map:parameter name="cookies" value="{request:cookies}"/>
  -				<map:parameter name="content-length" value="{request:contentLength}"/>
  -				<map:parameter name="content-type" value="{request:contentType}"/>
  -				<map:parameter name="context-path" value="{request:contextPath}"/>
  -				<map:parameter name="headers" value="{request:headers}"/>
  -				<map:parameter name="header-names" value="{request:header-names}"/>
  -				<map:parameter name="locale" value="{request:locale}"/>
  -				<map:parameter name="locales" value="{request:locales}"/>
  -				<map:parameter name="method" value="{request:method}"/>
  -				<!--map:parameter name="parameter-map" value="{request:parameterMap}"/-->
  -				<map:parameter name="parameter-names" value="{request:parameterNames}"/>
  -				<map:parameter name="path-info" value="{request:pathInfo}"/>
  -				<map:parameter name="path-translated" value="{request:pathTranslated}"/>
  -				<map:parameter name="protocol" value="{request:protocol}"/>
  -				<map:parameter name="query-string" value="{request:queryString}"/>
  -				<map:parameter name="remote-addr" value="{request:remoteAddr}"/>
  -				<map:parameter name="remote-host" value="{request:remoteHost}"/>
  -				<map:parameter name="remote-user" value="{request:remoteUser}"/>
  -				<map:parameter name="request-uri" value="{request:requestURI}"/>
  -				<map:parameter name="requested-session-id" value="{request:requestedSessionId}"/>
  -				<map:parameter name="requested-session-id-from-cookie" value="{request:requestedSessionIdFromCookie}"/>
  -				<map:parameter name="requested-session-id-from-url" value="{request:requestedSessionIdFromURL}"/>
  -				<map:parameter name="requested-session-id-valid" value="{request:requestedSessionIdValid}"/>
  -				<map:parameter name="scheme" value="{request:scheme}"/>
  -				<map:parameter name="secure" value="{request:secure}"/>
  -				<map:parameter name="server-name" value="{request:serverName}"/>
  -				<map:parameter name="server-port" value="{request:serverPort}"/>
  -				<map:parameter name="servlet-path" value="{request:servletPath}"/>
  -				<map:parameter name="session [truncated]" value="{request:concat('org. ... .', substring(session,
36))}"/>
  -				<map:parameter name="sitemap-uri" value="{request:sitemapURI}"/>
  -				<map:parameter name="user-principal" value="{request:userPrincipal}"/>
  -			</map:generate>
  -			<map:transform src="properties2html.xsl">
  -				<map:parameter name="title" value="Request Input Module (RequestModule)"/>	
  -			</map:transform>
  -                        <map:serialize />
  -                </map:match>               
  -
  -                <map:match pattern="content/session.xsp">
  -                        <map:generate type="serverpages" src="properties.xsp">
  -				<map:parameter name="attribute-names" value="{session:attributeNames}"/>
  -				<map:parameter name="creation-time" value="{session:creationTime}"/>
  -				<map:parameter name="last-accessed-time" value="{session:lastAccessedTime}"/>
  -				<map:parameter name="max-inactive-interval" value="{session:maxInactiveInterval}"/>
  -				<map:parameter name="id" value="{session:id}"/>
  -				<map:parameter name="new" value="{session:new}"/>				
  -			</map:generate>
  -			<map:transform src="properties2html.xsl">
  -				<map:parameter name="title" value="Session Input Module (SessionModule)"/>	
  -			</map:transform>
  -                        <map:serialize />
  -                </map:match>               
  -
  -                <map:match pattern="content/system-property.xsp">
  -                        <map:generate type="serverpages" src="properties.xsp">
  -				<map:parameter name="java.version" value="{system-property:java.version}"/>
  -				<map:parameter name="java.vendor" value="{system-property:java.vendor}"/>
  -				<map:parameter name="java.vendor.url" value="{system-property:java.vendor.url}"/>
  -				<map:parameter name="java.home" value="{system-property:java.home}"/>
  -				<map:parameter name="java.vm.specification.version" value="{system-property:java.vm.specification.version}"/>
  -				<map:parameter name="java.vm.specification.vendor" value="{system-property:java.vm.specification.vendor}"/>
  -				<map:parameter name="java.vm.specification.name" value="{system-property:java.vm.specification.name}"/>
  -				<map:parameter name="java.vm.version" value="{system-property:java.vm.version}"/>
  -				<map:parameter name="java.vm.vendor" value="{system-property:java.vm.vendor}"/>
  -				<map:parameter name="java.vm.name" value="{system-property:java.vm.name}"/>
  -				<map:parameter name="java.specification.version" value="{system-property:java.specification.version}"/>
  -				<map:parameter name="java.specification.vendor" value="{system-property:java.specification.vendor}"/>
  -				<map:parameter name="java.specification.name" value="{system-property:java.specification.name}"/>
  -				<map:parameter name="java.specification.name" value="{system-property:java.specification.name}"/>
  -				<map:parameter name="java.class.path" value="{system-property:java.class.path}"/>
  -				<map:parameter name="java.ext.dirs" value="{system-property:java.ext.dirs}"/>
  -				<map:parameter name="os.name" value="{system-property:os.name}"/>
  -				<map:parameter name="os.arch" value="{system-property:os.arch}"/>
  -				<map:parameter name="os.version" value="{system-property:os.version}"/>
  -				<map:parameter name="file.separator" value="{system-property:file.separator}"/>
  -				<map:parameter name="path.separator" value="{system-property:path.separator}"/>
  -				<map:parameter name="line.separator" value="{system-property:line.separator}"/>
  -				<map:parameter name="user.name" value="{system-property:user.name}"/>
  -				<map:parameter name="user.home" value="{system-property:user.home}"/>
  -				<map:parameter name="user.dir" value="{system-property:user.dir}"/>
  -				<!-- Function call -->	
  -				<map:parameter name="users-home-base" value="{system-property:substring-before(user.home,
user.name)}"/>
  -			</map:generate>
  -			<map:transform src="properties2html.xsl">
  -				<map:parameter name="title" value="System Properties Input Module (SystemPropertiesModule)"/>

  -			</map:transform>
  -                        <map:serialize />
  -                </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 File Input Module (XMLFileModule)"/>
 
  -                  </map:transform>
  -                  <map:serialize />
  -                </map:match>
  -
  -                <!-- Menu generation -->
  -                <map:match pattern="menu/*">
  -                        <map:generate src="menu.xml"/>
  -                        <map:transform src="menu2html.xsl">
  -                            <map:parameter name="page" value="{1}" />
  -                        </map:transform>
  -                        <map:serialize/>
  -                </map:match>
  -
  -            	<!-- Display this sitemap source-->
  -            	<map:match pattern="sitemap.xmap">
  -                	<map:generate src="sitemap.xmap"/>
  -                	<map:serialize type="xml"/>
  -            	</map:match>            
  -
  -            	<map:match pattern="*.css">
  -                	<map:read src="{1}.css" mime-type="text/css"/>
  -            	</map:match>
  -            
  -            	<map:match pattern="images/*.gif">
  -                	<map:read src="images/{1}.gif" mime-type="image/gif"/>
  -            	</map:match>
  -             
  -            </map:pipeline>                
  -    </map:pipelines>
  +<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  +  <!-- =========================== Resources =============================== -->
  +  <map:resources>
  +    <!-- This resource is used to create a composite page from menu and content -->
  +    <map:resource name="composite">
  +      <map:aggregate element="site">
  +        <map:part src="cocoon:/menu/{../0}"/>
  +        <map:part src="cocoon:/content/{../0}" label="content"/>
  +      </map:aggregate>
  +      <map:transform src="site2html.xsl">
  +        <map:parameter name="page" value="{../0}" />
  +      </map:transform>
  +      <map:serialize/>
  +    </map:resource>
  +  </map:resources>
  +
  +
  +  <!-- =========================== Pipelines ================================= -->
  +  <map:pipelines>
  +    <map:pipeline>
  +
  +      <!-- Default URL matcher. Matches '/' URLs-->
  +      <map:match pattern="">
  +        <map:redirect-to uri="index.xsp" />
  +      </map:match>
  +
  +      <!-- Generate dynamic output (simple.xsp) -->            
  +      <map:match pattern="*.xsp">
  +        <map:call resource="composite" />
  +      </map:match>                
  +
  +
  +      <map:match pattern="content/index.xsp">
  +        <map:generate src="index.xhtml"/>
  +        <map:serialize/>
  +      </map:match>                            
  +
  +      <map:match pattern="content/request.xsp">
  +        <map:generate type="serverpages" src="properties.xsp">
  +          <map:parameter name="attribute-names" value="{request:attributeNames}"/>
  +          <map:parameter name="auth-type" value="{request:authType}"/>
  +          <map:parameter name="character-encoding" value="{request:characterEncoding}"/>
  +          <map:parameter name="cookie-map" value="{request:cookieMap}"/>
  +          <map:parameter name="cookies" value="{request:cookies}"/>
  +          <map:parameter name="content-length" value="{request:contentLength}"/>
  +          <map:parameter name="content-type" value="{request:contentType}"/>
  +          <map:parameter name="context-path" value="{request:contextPath}"/>
  +          <map:parameter name="headers" value="{request:headers}"/>
  +          <map:parameter name="header-names" value="{request:header-names}"/>
  +          <map:parameter name="locale" value="{request:locale}"/>
  +          <map:parameter name="locales" value="{request:locales}"/>
  +          <map:parameter name="method" value="{request:method}"/>
  +          <!--map:parameter name="parameter-map" value="{request:parameterMap}"/-->
  +          <map:parameter name="parameter-names" value="{request:parameterNames}"/>
  +          <map:parameter name="path-info" value="{request:pathInfo}"/>
  +          <map:parameter name="path-translated" value="{request:pathTranslated}"/>
  +          <map:parameter name="protocol" value="{request:protocol}"/>
  +          <map:parameter name="query-string" value="{request:queryString}"/>
  +          <map:parameter name="remote-addr" value="{request:remoteAddr}"/>
  +          <map:parameter name="remote-host" value="{request:remoteHost}"/>
  +          <map:parameter name="remote-user" value="{request:remoteUser}"/>
  +          <map:parameter name="request-uri" value="{request:requestURI}"/>
  +          <map:parameter name="requested-session-id" value="{request:requestedSessionId}"/>
  +          <map:parameter name="requested-session-id-from-cookie" value="{request:requestedSessionIdFromCookie}"/>
  +          <map:parameter name="requested-session-id-from-url" value="{request:requestedSessionIdFromURL}"/>
  +          <map:parameter name="requested-session-id-valid" value="{request:requestedSessionIdValid}"/>
  +          <map:parameter name="scheme" value="{request:scheme}"/>
  +          <map:parameter name="secure" value="{request:secure}"/>
  +          <map:parameter name="server-name" value="{request:serverName}"/>
  +          <map:parameter name="server-port" value="{request:serverPort}"/>
  +          <map:parameter name="servlet-path" value="{request:servletPath}"/>
  +          <map:parameter name="session [truncated]" value="{request:concat('org. ...
.', substring(session, 36))}"/>
  +          <map:parameter name="sitemap-uri" value="{request:sitemapURI}"/>
  +          <map:parameter name="user-principal" value="{request:userPrincipal}"/>
  +        </map:generate>
  +        <map:transform src="properties2html.xsl">
  +          <map:parameter name="title" value="Request Input Module (RequestModule)"/>

  +        </map:transform>
  +        <map:serialize />
  +      </map:match>               
  +
  +      <map:match pattern="content/session.xsp">
  +        <map:generate type="serverpages" src="properties.xsp">
  +          <map:parameter name="attribute-names" value="{session:attributeNames}"/>
  +          <map:parameter name="creation-time" value="{session:creationTime}"/>
  +          <map:parameter name="last-accessed-time" value="{session:lastAccessedTime}"/>
  +          <map:parameter name="max-inactive-interval" value="{session:maxInactiveInterval}"/>
  +          <map:parameter name="id" value="{session:id}"/>
  +          <map:parameter name="new" value="{session:new}"/>				
  +        </map:generate>
  +        <map:transform src="properties2html.xsl">
  +          <map:parameter name="title" value="Session Input Module (SessionModule)"/>

  +        </map:transform>
  +        <map:serialize />
  +      </map:match>               
  +
  +      <map:match pattern="content/system-property.xsp">
  +        <map:generate type="serverpages" src="properties.xsp">
  +          <map:parameter name="java.version" value="{system-property:java.version}"/>
  +          <map:parameter name="java.vendor" value="{system-property:java.vendor}"/>
  +          <map:parameter name="java.vendor.url" value="{system-property:java.vendor.url}"/>
  +          <map:parameter name="java.home" value="{system-property:java.home}"/>
  +          <map:parameter name="java.vm.specification.version" value="{system-property:java.vm.specification.version}"/>
  +          <map:parameter name="java.vm.specification.vendor" value="{system-property:java.vm.specification.vendor}"/>
  +          <map:parameter name="java.vm.specification.name" value="{system-property:java.vm.specification.name}"/>
  +          <map:parameter name="java.vm.version" value="{system-property:java.vm.version}"/>
  +          <map:parameter name="java.vm.vendor" value="{system-property:java.vm.vendor}"/>
  +          <map:parameter name="java.vm.name" value="{system-property:java.vm.name}"/>
  +          <map:parameter name="java.specification.version" value="{system-property:java.specification.version}"/>
  +          <map:parameter name="java.specification.vendor" value="{system-property:java.specification.vendor}"/>
  +          <map:parameter name="java.specification.name" value="{system-property:java.specification.name}"/>
  +          <map:parameter name="java.specification.name" value="{system-property:java.specification.name}"/>
  +          <map:parameter name="java.class.path" value="{system-property:java.class.path}"/>
  +          <map:parameter name="java.ext.dirs" value="{system-property:java.ext.dirs}"/>
  +          <map:parameter name="os.name" value="{system-property:os.name}"/>
  +          <map:parameter name="os.arch" value="{system-property:os.arch}"/>
  +          <map:parameter name="os.version" value="{system-property:os.version}"/>
  +          <map:parameter name="file.separator" value="{system-property:file.separator}"/>
  +          <map:parameter name="path.separator" value="{system-property:path.separator}"/>
  +          <map:parameter name="line.separator" value="{system-property:line.separator}"/>
  +          <map:parameter name="user.name" value="{system-property:user.name}"/>
  +          <map:parameter name="user.home" value="{system-property:user.home}"/>
  +          <map:parameter name="user.dir" value="{system-property:user.dir}"/>
  +          <!-- Function call -->	
  +          <map:parameter name="users-home-base" value="{system-property:substring-before(user.home,
user.name)}"/>
  +        </map:generate>
  +        <map:transform src="properties2html.xsl">
  +          <map:parameter name="title" value="System Properties Input Module (SystemPropertiesModule)"/>

  +        </map:transform>
  +        <map:serialize />
  +      </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 File Input Module (XMLFileModule)"/>
 
  +        </map:transform>
  +        <map:serialize />
  +      </map:match>
  +
  +      <!-- Menu generation -->
  +      <map:match pattern="menu/*">
  +        <map:generate src="menu.xml"/>
  +        <map:transform src="menu2html.xsl">
  +          <map:parameter name="page" value="{1}" />
  +        </map:transform>
  +        <map:serialize/>
  +      </map:match>
  +
  +      <!-- Display this sitemap source-->
  +      <map:match pattern="sitemap.xmap">
  +        <map:generate src="sitemap.xmap"/>
  +        <map:serialize type="xml"/>
  +      </map:match>            
  +
  +      <map:match pattern="*.css">
  +        <map:read src="{1}.css" mime-type="text/css"/>
  +      </map:match>
  +
  +      <map:match pattern="images/*.gif">
  +        <map:read src="images/{1}.gif" mime-type="image/gif"/>
  +      </map:match>
  +
  +    </map:pipeline>                
  +  </map:pipelines>
   </map:sitemap>
   <!-- end of file -->
  
  
  

----------------------------------------------------------------------
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


Mime
View raw message