avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: jakarta-avalon/src/documentation/old/stylesheets/system directory2html.xsl error2html.xsl status2html.xsl
Date Thu, 30 May 2002 16:19:47 GMT
nicolaken    02/05/30 09:19:47

  Added:       src/documentation/old/stylesheets/system directory2html.xsl
                        error2html.xsl status2html.xsl
  Log:
  Updating docs generation to Cocoon 2.0.3 used in Centipede;
  cleaning the structure related to documentation.
  
  Revision  Changes    Path
  1.1                  jakarta-avalon/src/documentation/old/stylesheets/system/directory2html.xsl
  
  Index: directory2html.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:dir="http://apache.org/cocoon/directory/2.0">
  
    <xsl:template match="/">
     <html>
     <head>
      <title><xsl:value-of select="dir:directory/@name"/></title>
      </head>
      <body bgcolor="#ffffff">
       <h1>Directory Listing of <xsl:value-of select="dir:directory/@name"/></h1>
       <table border="0">
        <tr>
         <td>
          <a href="../"><i>parent directory</i></a>
         </td>
        </tr>
        <tr>
         <td>
          &#160;
         </td>
        </tr>
        <xsl:apply-templates/>
       </table>
      </body>
     </html>
    </xsl:template>
  
    <xsl:template match="dir:directory/dir:directory">
     <tr>
      <td>
       <a href="{@name}/"><i><xsl:value-of select="@name"/></i></a>
      </td>
      <td>
       <xsl:value-of select="@date"/>
      </td>
     </tr>
    </xsl:template>
  
    <xsl:template match="dir:file">
     <tr>
      <td>
       <a href="{@name}"><xsl:value-of select="@name"/></a>
      </td>
      <td>
       <xsl:value-of select="@date"/>
      </td>
     </tr>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  jakarta-avalon/src/documentation/old/stylesheets/system/error2html.xsl
  
  Index: error2html.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:error="http://apache.org/cocoon/error/2.0">
  
  <xsl:template match="error:notify">
   <html>
    <head>
     <title>
      <xsl:value-of select="@type"/>:<xsl:value-of select="error:title"/>
     </title>
    </head>
    <body bgcolor="#ffffff">
     <table border="0" bgcolor="#000000" cellpadding="2" cellspacing="2">
      <tbody>
       <tr>
        <td bgcolor="#0086b2" colspan="2">
         <font color="#ffffff" face="arial,helvetica,sanserif" size="+2">
          <xsl:value-of select="error:title"/>
         </font>
        </td>
       </tr>
  
       <tr>
        <td bgcolor="#0086b2" valign="top">
         <font color="#ffffff" face="arial,helvetica,sanserif" size="+1">
          <xsl:value-of select="@type"/>
         </font>
        </td>
        <td bgcolor="#ffffff" >
         <xsl:apply-templates select="error:message"/>
        </td>
       </tr>
  
       <tr>
        <td bgcolor="#0086b2" valign="top" colspan="2">
         <font color="#ffffff" face="arial,helvetica,sanserif" size="+1">details</font>
        </td>
       </tr>
  
       <tr>
        <td bgcolor="#0086b2" valign="top">
         <font face="arial,helvetica,sanserif" color="#ffffff">from</font>
        </td>
        <td bgcolor="#ffffff">
         <font face="arial,helvetica,sanserif">
          <xsl:value-of select="@sender"/>
         </font>
        </td>
       </tr>
  
       <tr>
        <td bgcolor="#0086b2" valign="top">
         <font face="arial,helvetica,sanserif" color="#ffffff">source</font>
        </td>
        <td bgcolor="#ffffff">
         <font face="arial,helvetica,sanserif">
          <xsl:value-of select="error:source"/>
         </font>
        </td>
       </tr>
  
       <xsl:apply-templates select="error:description"/>
  
       <tr>
        <td bgcolor="#0086b2" valign="top" colspan="2">
         <font color="#ffffff" face="arial,helvetica,sanserif" size="+1">extra info</font>
        </td>
       </tr>
  
       <xsl:apply-templates select="error:extra"/>
  
      </tbody>
     </table>
    </body>
   </html>
  </xsl:template>
  
   <xsl:template match="error:description">
    <tr>
     <td bgcolor="#0086b2" valign="top">
      <font color="#ffffff" face="arial,helvetica,sanserif">description</font>
     </td>
     <td bgcolor="#ffffff">
      <font face="arial,helvetica,sanserif">
       <xsl:value-of select="."/>
      </font>
     </td>
    </tr>
   </xsl:template>
  
   <xsl:template match="error:message">
    <font face="arial,helvetica,sanserif">
     <xsl:value-of select="."/>
    </font>
   </xsl:template>
  
   <xsl:template match="error:extra">
    <tr>
     <td bgcolor="#0086b2" valign="top">
      <font color="#ffffff" face="arial,helvetica,sanserif">
       <xsl:value-of select="@description"/>
      </font>
     </td>
     <td bgcolor="#ffffff">
      <pre>
       <xsl:value-of select="."/>
      </pre>
     </td>
    </tr>
   </xsl:template>
  </xsl:stylesheet>
  
  
  
  1.1                  jakarta-avalon/src/documentation/old/stylesheets/system/status2html.xsl
  
  Index: status2html.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:status="http://apache.org/cocoon/status/2.0">
  
    <xsl:template match="status:statusinfo">
      <html>
        <head>
          <title>Cocoon status [<xsl:value-of select="@status:host"/>]</title>
        </head>
        <body bgcolor="white">
  
    <table bgcolor="#000000" cellspacing="0" cellpadding="2" width="100%">
      <tr>
        <td>
  
    <table bgcolor="#ffffff" noshade="noshade" cellspacing="0" cellpadding="6" width="100%">
      <tr>
        <td bgcolor="#0086b2" valign="top" align="left">
          <img src="images/cocoon.gif" border="0"/>
        </td>
        <td bgcolor="#0086b2" valign="top" align="right">
         <FONT face="arial,helvetica,sanserif" color="#ffffff">
  	[<xsl:value-of select="@status:host"/>] <xsl:value-of select="@status:date"/>
         </FONT>
        </td>
      </tr>
          </table>
  
        </td>
      </tr>
          </table>
  
    <table bgcolor="#000000" cellspacing="0" cellpadding="2" width="100%">
      <tr>
        <td bgcolor="#ffffff" valign="top" align="left" colspan="2" height="12">
        </td>
      </tr>
    </table>
  
            <xsl:apply-templates />
        </body>
      </html>
    </xsl:template>
  
    <xsl:template match="status:group">
     <table bgcolor="#000000" noshade="noshade" border="0" cellspacing="2" cellpadding="6"
width="100%">
      <tr>
        <td bgcolor="#0086b2" valign="top" align="left" colspan="2">
         <FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1">
          -<xsl:value-of select="@status:name"/>
         </FONT>
        </td>
      </tr>
      <tr>
        <td bgcolor="ffffff" width="100%" colspan="2">
          <table bgcolor="#000000" noshade="noshade" border="0" cellspacing="2" cellpadding="6"
bordercolor="black" width="100%">
            <xsl:apply-templates />
          </table>
        </td>
      </tr>
     </table>
  
    <table bgcolor="#000000" cellspacing="0" cellpadding="2" width="100%">
      <tr>
        <td bgcolor="#ffffff" valign="top" align="left" colspan="2" height="8">
        </td>
      </tr>
    </table>
  
    </xsl:template>
  
    <xsl:template match="status:value">
      <tr>
        <td bgcolor="#0086b2" valign="top" align="left">
         <FONT face="arial,helvetica,sanserif" color="#ffffff">
          <xsl:value-of select="@status:name"/>
         </FONT>
        </td>
        <td bgcolor="ffffff" width="100%">
         <FONT face="arial,helvetica,sanserif">
          <xsl:value-of select="." />
         </FONT>
        </td>
      </tr>
  
    </xsl:template>
  </xsl:stylesheet>
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message