You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by ni...@apache.org on 2002/03/26 11:01:42 UTC

cvs commit: xml-forrest/src/resources xgump.xsl

nicolaken    02/03/26 02:01:42

  Modified:    .        forrest.xgump
  Added:       src/resources xgump.xsl
  Log:
  Added simple xsl stylesheet for forrest.xgump.
  In IE6 and Mozilla 6 it renders using this, in older ones it uses the
  more simplifies CSS version.
  
  Revision  Changes    Path
  1.8       +10 -1     xml-forrest/forrest.xgump
  
  Index: forrest.xgump
  ===================================================================
  RCS file: /home/cvs/xml-forrest/forrest.xgump,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- forrest.xgump	25 Mar 2002 07:26:53 -0000	1.7
  +++ forrest.xgump	26 Mar 2002 10:01:42 -0000	1.8
  @@ -1,4 +1,5 @@
   <?xml version="1.0"?>
  +<?xml-stylesheet type="text/xsl" href="src/resources/xgump.xsl"?>
   <?xml-stylesheet type="text/css" href="src/resources/xgump.css"?>
   <module name="xml-forrest">
   
  @@ -82,13 +83,21 @@
        Make Forrest output its site with an initial Forrest style.
       </action>    
       <action context="code" assigned-to="NKB">
  -     Add Forrest to Gump runs and make Gump update Forrest site automagically;
  +     Make Gump update Forrest site automagically;
        in the future this will be used for the generation of other projects too.
       </action>        
      </actions>
     </todo>
     <changes>
      <release version="0.1" date="2002">
  +    <action dev="NKB" type="add">
  +     Added simple xsl stylesheet for forrest.xgump.
  +     In IE6 and Mozilla 6 it renders using this, in older ones it uses the
  +     more simplifies CSS version.
  +    </action>   
  +    <action dev="NKB" type="add">
  +     Added Forrest to Gump runs.
  +    </action>
       <action dev="NKB" type="add">
        Added preliminary version of a scarab-like skin.
       </action>
  
  
  
  1.1                  xml-forrest/src/resources/xgump.xsl
  
  Index: xgump.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  	<xsl:output method = "html" encoding="Windows-1252" />
  	
  	<xsl:template match="/">	
  		<html>
  			<head>
  			  <title>Gump descriptor of module <xsl:value-of select="module/@name" /></title>
  			</head>
  			<body>
  			
  			 <h1><xsl:value-of select="module/@name" /></h1>
  
  			 <p>website:<a><xsl:attribute  name = "href" >
   			        <xsl:value-of select="module/url/@href" />
  			       </xsl:attribute><xsl:value-of select="module/url/@href" /></a>  
  			 <br/>cvs repository: <xsl:value-of select="module/cvs/@repository" />
  			 <xsl:for-each select = "module/mailing-lists/mailing-list">
  			 <br/><xsl:value-of select="@user" />&#160;mailing list:&#160; 
  			      <a><xsl:attribute  name = "href" >mailto:<xsl:value-of select="@mail" /></xsl:attribute>
  			         <xsl:value-of select="@mail" /></a>
  			      <a><xsl:attribute  name = "href" >mailto:<xsl:value-of select="@subscribe" /></xsl:attribute>
  			         Subscribe</a>  
                    <a><xsl:attribute  name = "href" >mailto:<xsl:value-of select="@unsubscribe" /></xsl:attribute>
                       Unsubscribe</a>  			         
  			       			 
  			 </xsl:for-each>
               </p>
  			 			 
  			 <h2>Description</h2>
  			 <p><xsl:value-of select="module/description" /></p>
  			 <p><xsl:value-of select="module/detailed" /></p>
  
  			 <h2>Reasons</h2>
  			 <p><xsl:value-of select="module/why" /></p>
  			 
  			 <h2>Goals</h2>			 	
  			 <ul>
  			 <xsl:for-each select = "module/what/goal">
  			 <li><xsl:value-of select="." /></li>			 
  			 </xsl:for-each>
  			 </ul>
  			 			 
  			 <h2>Developers</h2>			 	
  			 <table>
  			 <xsl:for-each select = "module/who/person">
  			 <tr><td><xsl:value-of select="@name" /></td>
  			     <td><xsl:value-of select="@email" /></td>
  			     <td>[<xsl:value-of select="@id" />]</td></tr>			 
  			 </xsl:for-each>
  			 </table>
  			 
  
  			 <h2>To do</h2>			 	
  			 <xsl:for-each select = "module/todo/actions">
  			 <h3><xsl:value-of select = "@priority"/>&#160;priority</h3>
  			 <table>
  			 <th><td>context</td><td>what</td><td>assigned to</td></th>
  			 <xsl:for-each select = "action">
  			 <tr><td><xsl:value-of select="@context" /></td>
  			     <td><xsl:value-of select="." /></td>
  			     <td>[<xsl:value-of select="@assigned-to" />]</td></tr>			 
  			 </xsl:for-each>
  			 </table>
  			 </xsl:for-each>
  
  			 <h2>Changes</h2>			 	
  			 <xsl:for-each select = "module/changes/release">
  			 <h3>release&#160;<xsl:value-of select = "@version"/>&#160;
  			     of date&#160;<xsl:value-of select = "@date"/></h3>
  			 <table>
  			 <th><td>type</td><td>what</td><td>developer</td></th>
  			 <xsl:for-each select = "action">
  			 <tr><td><xsl:value-of select="@type" /></td>
  			     <td><xsl:value-of select="." /></td>
  			     <td>[<xsl:value-of select="@dev" />]</td></tr>			 
  			 </xsl:for-each>
  			 </table>
  			 </xsl:for-each>
  
  			 <h2>License</h2>
  			 <p><b><xsl:value-of select="module/licence" /></b></p>
  			 
  			 <h2>Credits</h2>			 	
  			 <ul>
  			 <xsl:for-each select = "module/credits/credit">
  			 <li><xsl:value-of select="." /></li>			 
  			 </xsl:for-each>
  			 </ul>			 
  
  			 </body>
  		</html>
  	</xsl:template>
  </xsl:stylesheet>