cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kpiroum...@apache.org
Subject cvs commit: xml-cocoon2/src/webapp/samples/modules index.xhtml menu.xml sitemap.xmap
Date Wed, 13 Nov 2002 22:47:41 GMT
kpiroumian    2002/11/13 14:47:41

  Modified:    src/webapp/samples/modules index.xhtml menu.xml sitemap.xmap
  Log:
  New input module for system (environment) variables.
  
  Revision  Changes    Path
  1.2       +2 -6      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- index.xhtml	20 Sep 2002 22:56:36 -0000	1.1
  +++ index.xhtml	13 Nov 2002 22:47:41 -0000	1.2
  @@ -21,12 +21,8 @@
   			<td>Session object properties</td>
   		</tr>
   		<tr>
  -			<td><a href="request-param.xsp">request-param</a></td>
  -			<td>Request parameters</td>
  -		</tr>
  -		<tr>
  -			<td><a href="request-attr.xsp">request-attr</a></td>
  -			<td>Request attributes</td>
  +			<td><a href="system-property.xsp">system-property</a></td>
  +			<td>System properties (environment variables)</td>
   		</tr>
   	</table>
           </td>
  
  
  
  1.2       +2 -1      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- menu.xml	20 Sep 2002 22:56:36 -0000	1.1
  +++ menu.xml	13 Nov 2002 22:47:41 -0000	1.2
  @@ -2,7 +2,7 @@
   <!--DOCTYPE book PUBLIC "-//APACHE//DTD Cocoon Documentation Book V1.0//EN" "dtd/book-cocoon-v10.dtd"
-->
   
   <book software="Apache Cocoon" 
  -      title="Apache Cocoon i18n Samples" 
  +      title="Apache Cocoon Input Modules Samples" 
         copyright="1999-2002 The Apache Software Foundation"
   >
   
  @@ -14,6 +14,7 @@
     <menu label="Modules">
       <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="AttributeModule" />
     </menu>
   
  
  
  
  1.2       +38 -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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sitemap.xmap	20 Sep 2002 22:56:36 -0000	1.1
  +++ sitemap.xmap	13 Nov 2002 22:47:41 -0000	1.2
  @@ -101,6 +101,43 @@
                           <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>               
  +
  +
                   <!-- Menu generation -->
                   <map:match pattern="menu/*">
                           <map:generate src="menu.xml"/>
  
  
  

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