forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@apache.org
Subject cvs commit: xml-forrest/src/documentation/skins/forrest-site/xslt/html book2menu.xsl document2html.xsl site2xhtml.xsl
Date Tue, 09 Apr 2002 22:37:47 GMT
stevenn     02/04/09 15:37:47

  Added:       src/documentation/skins/forrest-site/css page.css
               src/documentation/skins/forrest-site/images biglogo.gif
                        chapter.gif chapter_open.gif current.gif page.gif
                        printer.gif project-logo.gif singlepage.gif
               src/documentation/skins/forrest-site/xslt/html book2menu.xsl
                        document2html.xsl site2xhtml.xsl
  Log:
  very rough first go at the new forrest-skin
  
  Revision  Changes    Path
  1.1                  xml-forrest/src/documentation/skins/forrest-site/css/page.css
  
  Index: page.css
  ===================================================================
  body {  background-color: #FFFFFF; margin: 0px 0px 0px 0px; font-size: 10px; font-family:
Verdana, Arial, Helvetica, sans-serif}
  form { margin: 0px; padding: 0px; border: 0px; }
  ul,ol { margin: 10px 5px 10px 40px; padding: 0px; }
  li { margin: 2px 0px 2px 0px; }
  dl { margin: 10px 5px 10px 20px; padding: 0px; }
  dt { font-weight: bold; margin: 5px 0px 0px 0px; }
  table { border: 0px; width: 100%; }
  td { font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif }
  img { border: 0px; }
  pre { padding: 10px 10px 10px 10px; margin-bottom: 0px }
  
  a:link { color: #0F3660 }
  a:visited { color: #880000 }
  a:active { font-weight: bold }
  a:hover { color: #880000; }
  
  .path { font-size: 10px; background-color: #CFDCED; border-bottom-color: #4A6D8C; border-bottom-style:
solid; border-bottom-width: 2px; padding: 2px; }
  .path .current { font-weight: bold; }
  
  .top { background-color: #294563; }
  .top img { margin: 5px; }
  .topline { background-color: #4C6C8F; }
  .navbar { background-color: #CFDCED; color: #4C6C8F; font-weight: bold; border-bottom-color:
#4A6D8C; border-bottom-style: solid; border-bottom-width: 1px; padding: 2px;}
  
  .search { font-size: 13px; color: #ffffff; margin-right: 10px; padding: 10px 5px 3px 5px;
background-color: #4A6D8C; }
  
  .tabs { font-size: 12px; background-color: #294563; padding: 2px 7px 5px 7px; }
  .tabs .tab { background-color: #CFDCED; padding: 4px 6px 4px 6px;}
  .tabs .current { background-color: #4C6C8F; font-weight: bold; padding: 5px 6px 6px 6px;
; color: #FFFFFF}
  
  .copyright { text-align: center; font-size: 10px; background-color: #CFDCED; border-top-color:
#4A6D8C; border-top-style: solid; border-top-width: 1px; padding: 2px; }
  
  .menu { background-color: #4C6C8F; margin: 0px; padding: 3px 8px 5px 3px;}
  .menu a:link { color: #FFFFFF }
  .menu a:visited { color: #FFFFFF }
  .menu a:active { font-weight: bold }
  .menu a:hover { color: #880000; }
  .menu ul { margin: 0px 0px 0px 20px; padding: 0px; }
  .menu li .chapter  { list-style-image: url('images/chapter.gif'); font-weight: bold }
  .menu li .open  { list-style-image: url('images/chapter_open.gif'); font-weight: bold }
  .menu li .page  { list-style-image: url('images/page.gif') }
  .menu li .current  { list-style-image: url('images/current.gif'); color: #FFD700; font-weight:
bold; }
  
  .content { padding: 5px 5px 5px 10px; }
  
  .frame { width: 100%; margin: 5px 20px 5px 20px; font-size: 11px; }
  .frame .content { margin: 0px; }
  
  .note { border: solid 1px #7099C5; background-color: #f0f0ff; }
  .note .label { background-color: #7099C5; color: #ffffff; }
  
  .warning { border: solid 1px #D00000; background-color: #fff0f0; }
  .warning .label { background-color: #D00000; color: #ffffff; }
  
  .fixme { border: solid 1px #C6C600; background-color: #FAF9C3; }
  .fixme .label { background-color: #C6C600; color: #ffffff; }
  
  .code { border-color: #CFDCED; border-style: solid; border-width: 1px; }
  
  table.table { width: 100%; font-size: 11px; background-color: #7099C5; color: #ffffff; }
  .table caption { text-align: left; text-weight: bold; color: black; }
  .table th { text-align: center; text-weight: bold; }
  .table td { background-color: #f0f0ff; color: black; }
  
  .dida { font-size: 9px; }
  
  .figure {}
  
  .icon {}
  
  .highlight { background-color: yellow; }
  
  
  
  1.1                  xml-forrest/src/documentation/skins/forrest-site/images/biglogo.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/forrest-site/images/chapter.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/forrest-site/images/chapter_open.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/forrest-site/images/current.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/forrest-site/images/page.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/forrest-site/images/printer.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/forrest-site/images/project-logo.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/forrest-site/images/singlepage.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/forrest-site/xslt/html/book2menu.xsl
  
  Index: book2menu.xsl
  ===================================================================
  <?xml version='1.0'?>
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <xsl:template match="book">
    <div class="menu">
      <ul>
        <xsl:apply-templates select="menu"/>
      </ul>
    </div>
  </xsl:template>
  
  <xsl:template match="menu">
    <li>
      <xsl:value-of select="@label"/>
      <xsl:if test="menu-item | external">
        <ul>
          <xsl:apply-templates select="menu-item | external"/>
        </ul>
      </xsl:if>
    </li>
  </xsl:template>
  
  <xsl:template match="menu-item[@type='hidden']"/>
  <xsl:template match="external[@type='hidden']"/>
  
  <xsl:template match="menu-item | external">
    <li>
      <a href="{@href}"><xsl:value-of select="@label"/></a>
    </li>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-forrest/src/documentation/skins/forrest-site/xslt/html/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
    <xsl:template match="document">
      <td colspan="2" valign="top" class="content">
        <table>
          <tr>
            <td valign="middle">
              <xsl:choose>
                <xsl:when test="normalize-space(header/title)!=''">
                  <h2>
                    <xsl:value-of select="header/title"/>
                  </h2>
                </xsl:when>
                <xsl:otherwise> </xsl:otherwise>
              </xsl:choose>
            </td>
            <td align="center" width="80" nowrap="nowrap">
              <a href="#" class="dida">
                <img src="images/printer.gif"/>
                <br/>printer-friendly<br/>version</a>
            </td>
          </tr>
        </table>
        <xsl:if test="header/authors">
          <font size="-2">
            <p>
              <xsl:for-each select="header/authors/person">
                <xsl:choose>
                  <xsl:when test="position()=1">by </xsl:when>
                  <xsl:otherwise>, </xsl:otherwise>
                </xsl:choose>
                <xsl:value-of select="@name"/>
              </xsl:for-each>
            </p>
          </font>
        </xsl:if>
        <xsl:apply-templates select="body"/>
      </td>
    </xsl:template>
  
    <xsl:template match="body">
      <xsl:apply-templates/>
    </xsl:template>
  
    <xsl:template match="s1">
      <h3>
        <xsl:value-of select="@title"/>
      </h3>
      <xsl:apply-templates/>
    </xsl:template>
  
    <xsl:template match="s2">
      <h4>
        <xsl:value-of select="@title"/>
      </h4>
      <xsl:apply-templates/>
    </xsl:template>
  
    <xsl:template match="link">
      <a href="{@href}"><xsl:apply-templates/></a>
    </xsl:template>
  
    <xsl:template match="node()|@*" priority="-1">
      <xsl:copy>
        <xsl:apply-templates select="@*"/>
        <xsl:apply-templates/>
      </xsl:copy>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-forrest/src/documentation/skins/forrest-site/xslt/html/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
    <xsl:template match="site">
      <html>
  
        <head>
          <title>
            <xsl:value-of select="td/table/tr/td/h2"/>
          </title>
          <link rel="stylesheet" href="page.css" type="text/css"/>
        </head>
  
        <body>
  
          <div class="path">
            <a href="#">path not implemented yet</a>
          </div>
  
          <table class="top" cellspacing="0" cellpadding="0" summary="top bar">
            <tr>
              <td>
                <img src="images/biglogo.gif"/>
              </td>
              <td valign="middle" align="center" width="100%">
                <img src="images/project-logo.gif"/>
              </td>
              <td valign="top" height="69" nowrap="nowrap">
                <div class="search">
                  <form method="get" action="http://www.google.com/search" onsubmit="q.value
= query.value + ' site:xml.apache.org'">
                    <input type="hidden" name="q"/>
                    <input type="text" id="query" size="15"/>&#160;<input type="button"
value="Search" name="Search"/><br/>
                    <input type="radio" name="web" value="web">web site&#160;</input>&#160;<input
type="radio" name="mail" value="mail">mail lists</input>
                  </form>
                </div>
              </td>
            </tr>
          </table>
  
          <div class="tabs">
            <span class="tab">
              <a href="#">tabs</a>
            </span>
            <span class="tab">
              <a href="#">not</a>
            </span>
            <span class="tab">
              <a href="#">implemented</a>
            </span>
            <span class="tab">
              <a href="#">yet</a>
            </span>
          </div>
  
          <div class="topline">&#160;</div>
  
          <table cellspacing="0" cellpadding="0" summary="content pane">
            <tr>
              <td width="5" class="navbar">&#160;</td>
              <td rowspan="2" valign="top" nowrap="nowrap">
                <xsl:apply-templates select="div[@class='menu']"/>
              </td>
              <td valign="top" class="navbar" align="left">no chunking yet</td>
              <td width="*" valign="top" class="navbar" align="right">
                <a href="#">&lt;&lt; prev</a> <strong>[x]</strong>
<a href="#">next &gt;&gt;</a>
              </td>
            </tr>
            <tr>
              <td>&#160;</td>
              <xsl:apply-templates select="td[@class='content']"/>
            </tr>
            <tr>
              <td>&#160;</td>
              <td>&#160;</td>
            </tr>
          </table>
          <div class="copyright">
            Copyright (c) 1999-2002 <a href="http://www.apache.org/">Apache Software
Foundation</a>. All Rights Reserved.
          </div>
        </body>
      </html>
    </xsl:template>
  
    <xsl:template match="node()|@*" priority="-1">
      <xsl:copy>
        <xsl:apply-templates select="@*"/>
        <xsl:apply-templates/>
      </xsl:copy>
    </xsl:template>
  </xsl:stylesheet>
  
  

Mime
View raw message