cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@locus.apache.org
Subject cvs commit: xml-cocoon/samples/sites/jakarta.apache.org index-page.xml page-html.xsl style.css
Date Fri, 03 Dec 1999 23:50:26 GMT
stefano     99/12/03 15:50:26

  Added:       samples/sites/jakarta.apache.org index-page.xml
                        page-html.xsl style.css
  Log:
  added a new xml-ized site as an example
  
  Revision  Changes    Path
  1.1                  xml-cocoon/samples/sites/jakarta.apache.org/index-page.xml
  
  Index: index-page.xml
  ===================================================================
  <?xml version="1.0"?>
  <?xml-stylesheet href="page-html.xsl" type="text/xsl"?>
  <?cocoon-process type="xslt"?>
  
  <page title="The Jakarta Project">
   <sidebar>
    <group name="Essentials">
     <link href="index.html">Front Page</link>
     <link href="news/news.html">News &amp; Status</link>
     <link href="mission/index.html">Mission</link>
     <link href="guidelines/index.html">Guidelines</link>
     <link href="faq/faqindex.html">FAQs</link>
    </group>
    <group name="Download">
     <link href="downloads/binindex.html">Binaries</link>
     <link href="downloads/sourceindex.html">Source Code</link>  
    </group>  
    <group name="Get Involved">
     <link href="getinvolved/getinvolvedindex.html">Overview</link>
     <link href="getinvolved/cvsindex.html">CVS Repositories</link>
     <link href="getinvolved/mail.html">Mailing Lists</link>
     <link href="getinvolved/library.html">Reference Library</link>
    </group>
    <group name="SubProjects">
     <link href="tomcat/index.html">Tomcat</link>
     <link href="check/index.html">Tomcat Check</link>  
    </group>
    <group name="Credits">
     <link href="credits/whoweare.html">Who We Are</link>
     <link href="credits/acknowledgements.html">Acknowledgements</link>
    </group>
   </sidebar>
   
   <body>
    <p>
     The goal of the Jakarta Project is to provide commercial-quality
     server solutions based on the Java Platform that are developed in an
     open and cooperative fashion.
    </p>
       
    <p>
     The Jakarta Project has nothing to do, nor condones, the unfortunate
     situtation in East Timor. For more information about why the project
     is named &quot;Jakarta&quot; <a href="naming.html">click here</a>.
    </p>
  
    <section title="Tomcat: Java Servlets and JavaServer Pages Reference Implementation">
     <p>
      The flagship product, Tomcat, is a world-class implementation of the
      Java Servlet 2.2 and JavaServer Pages 1.1 Specifications. This
      implementation will be used in the Apache Web Server as well as in
      other web servers and development tools.
     </p>
       
     <p>
      The Tomcat Implementation is currently in beta form. We are working
      diligently on merging the current Apache Jserv Project's source code
      with the Sun code. We expect to have a final release of Tomcat by the
      end of 1999. To learn more about the various Tomcat releases, <a
      href="downloads/binindex.html">click here</a>.
     </p>
    </section>
    
    <section title="Anyone Can Participate">
     <p>
      The Jakarta Project is composed of members of the current Apache Jserv
      Project, engineers from major corporations such as Sun and IBM, and
      serious, committed developers at large. All interested developers are
      welcome to join and participate. To learn more about getting involved,
      <a href="getinvolved/getinvolvedindex.html">click here</a>.
     </p> 
    </section>
   </body>
  </page>
  
  
  1.1                  xml-cocoon/samples/sites/jakarta.apache.org/page-html.xsl
  
  Index: page-html.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <!-- Author: Stefano Mazzocchi "stefano@apache.org" -->
  <!-- Version: $Id: page-html.xsl,v 1.1 1999/12/03 23:50:26 stefano Exp $ -->
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
    <xsl:template match="page">
     <xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>
     <html>
      <head>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
       <title><xsl:value-of select="@title"/></title>
       <link rel="stylesheet" href="style.css"><!-- no not remove this comment --></link>
      </head>
      <body bgcolor="#FFFFFF">
       <table width="100%" border="0" cellpadding="10" cellspacing="0">
        <tr valign="top">          
         <xsl:apply-templates/>
        </tr>
       </table>
       
       <br/>
       
       <table width="100%" border="0" cellpadding="10" cellspacing="0">
        <tr>
         <td>
          <p class="fineprint">
           Copyright &#169; 1999 The Apache Software Foundation<br/>
           <a href="legal.html">Legal Stuff They Make Us Say</a><br/>
           <a href="contact.html">Contact Information</a>
          </p>
         </td>
        </tr>
       </table>
      </body>
     </html>
    </xsl:template>
    
    <xsl:template match="sidebar">
     <td width="120">
      <xsl:apply-templates/>
     </td>
    </xsl:template>
  
    <xsl:template match="body">
     <td>
      <xsl:apply-templates/>
     </td>
    </xsl:template>
    
    <xsl:template match="group">
     <p>
      <span class="navheading"><xsl:value-of select="@name"/><xsl:text>:</xsl:text></span><br/>
      <span class="navitem">
       <xsl:apply-templates/>
      </span>
     </p> 
    </xsl:template>
    
    <xsl:template match="section">
     <h3><xsl:value-of select="@title"/></h3>
     <xsl:apply-templates/>
    </xsl:template>
  
    <xsl:template match="p|a">
     <xsl:copy>
      <xsl:apply-templates/>
     </xsl:copy>
    </xsl:template>
  
    <xsl:template match="link">
     <a href="{@href}"><xsl:apply-templates/></a><br/>
    </xsl:template>
    
  </xsl:stylesheet>
  
  
  1.1                  xml-cocoon/samples/sites/jakarta.apache.org/style.css
  
  Index: style.css
  ===================================================================
  body {
      font-family: "Times New Roman", Times, serif;
      font-style: normal;
      color: #000000;
      background-color: #FFFFFF;
  }
  
  h1 {
      font-family: Arial, Helvetica, sans-serif;
      color: #0033CC
  }
  
  h2 {
      font-family: Arial, Helvetica, sans-serif;
      color: #0033CC
  }
  
  h3 {
      font-family: Arial, Helvetica, sans-serif;
      color: #0033CC
  }
  
  b {
      font-weight: bold;
  }
  
  .code {
      font-family: Courier, mono;
  }
  
  .codeblock {
      font-family: Courier, mono;
  }
  
  .navheading {
      font-family: Arial, Helvetica, sans-serif;
      font-weight: bold;
      color: #0033CC
  }
  
  .navitem {
      font-family: "Times New Roman", Times, serif;
      margin-left: 10pt;
      color: #000000
  }
  
  .itemdef {
      font-family: "Times New Roman", Times, serif;
      font-size: smaller;
      color: #000000
  }
  
  .fineprint {
      font-family: Arial, Helvetica, sans-serif;
      font-size: smaller;
      color: #000000
  }
  
  
  
  

Mime
View raw message