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/05/21 00:01:25 UTC

cvs commit: xml-forrest/src/documentation/skins/basic/xslt/html book2menu.xsl document2html.xsl site2xhtml.xsl

nicolaken    02/05/20 15:01:25

  Added:       src/documentation/skins/basic/css style.css
               src/documentation/skins/basic/images add.jpg
                        ant_logo_medium.gif built-with-cocoon.gif
                        favicon.ico krysalis-compatible.jpg note.gif
                        remove.jpg update.jpg void.gif
               src/documentation/skins/basic/xslt/html book2menu.xsl
                        document2html.xsl site2xhtml.xsl
  Log:
  Added new "basic" skin.
  
  Revision  Changes    Path
  1.1                  xml-forrest/src/documentation/skins/basic/css/style.css
  
  Index: style.css
  ===================================================================
  html body, body div, body p, body th, body td, body li, body dl, body dd, input, select, textarea {
   font-family: Arial, Helvetica, sans-serif;
   }
  p, ul, ol, dl {
   margin-top: .67em;
   margin-bottom: .67em;
   }
  table, th, td {
   border: none
   }
  form {
   margin-top: 0;
   margin-bottom: 0;
   }
  
  body {
  	margin: 0px;
  	padding: 10px;
  }
  body, td {
  	background-color: white;
  	color: black;
  	font-family: Arial, Helvetica, sans-serif;
  	font-size: 11pt;
  }
  p {
  	text-align: justify;
  }
  div {
  	margin: 0px;
  	padding: 0px;
  }
  h1, h2, h3, h4, h5, h6 {
  	page-break-after: avoid;
  	color: black;
  	font-family: Verdana, Arial, sans-serif;
  	font-weight: bold;
  	padding: 0px;
  	margin: 0px;
  	margin-left: 16px;
  }
  h1 {
  	border: 1px solid #003366;
  	font-size: 18pt;
  	padding: 2px;
  	margin-bottom: 10px;
  	text-align: center;
  	background-color: #EEEEFF;
  	margin-left: 0px;
  }
  
  h2 {
  	font-size: 16pt;
  }
  h3 {
  	font-size: 14pt;
  	color: #000033;
  }
  h4 {
  	font-size: 12pt;
  	color: #000066;
  }
  h5 {
  	font-size: 11pt;
  	font-style: italic;
  	text-align: center;
  	color: #333399;
  	margin-left: 0px;
  }
  h6 {
  	font-size: 10pt;
  	text-align: center;
  	font-weight: normal;
  	color: #3333CC;
  	margin-left: 0px;
  }
  a, a:visited {
  	color: #336699;
  }
  a:hover, a:active {
  	color: #003366;;
  }
  #breadcrumbs {
  	border-top: 1px solid #003366;
  	border-bottom: 1px solid #003366;
  	margin-top: 10px;
  	margin-bottom: 20px;
  	padding-top: 0px;
  	padding-bottom: 2px;
  	padding-left: 10px;
  	font-size: 10pt;
  	font-weight: bold;
  }
  #menu {
  	border: 1px solid #003366;
  	width: 175px;
  }
  #menu h4 {
  	margin: 0px;
  	padding-left: 5px;
  	padding-top: 2px;
  	padding-bottom: 2px;
  	color: black;
  	text-align: left;
  	font-style: normal;
  	font-size: 10pt;
  	background-color: #EEEEFF;
  }
  #submenu h4 {
  	margin: 0px;
  	padding-left: 5px;
  	padding-top: 2px;
  	padding-bottom: 2px;
  	color: black;
  	text-align: left;
  	font-style: normal;
  	font-size: 10pt;
  	background-color: #EEEEFF;
  }
  #submenu ul {
  	margin-top: 5px;
  	margin-bottom: 5px;
  }
  #authors {
  	font-size: 10px;
  	text-align: right;
  }
  #footer {
  	border-top: 1px solid #003366;
  	margin-top: 20px;
  	padding: 3px;
  	text-align: center;
  	font-size: 9pt;
  	font-style: italic;
  }
  a.breadcrumbs, a.breadcrumbs:visited, a.menu, a.menu:visited {
  	font-size: 10pt;
  	font-weight: bold;
  	text-decoration: none;
  }
  a.breadcrumbs:hover, a.breadcrumbs:active, a.menu:hover, a.menu:active {
  	text-decoration: underline;
  }
  .section {
  	margin-left: 40px;
  }
  .code {
  	font-family: Courier, Courier New, monospace;
  	padding: 4px;
  	border: 1px solid #003366;
  }
  .code, pre {
  	font-size: 11px;
  }
  .section .code {
  	margin-left: -40px;
  }
  .section .section .code {
  	margin-left: -80px;
  }
  @media print {
  	body td {
  		font-family: Times New Roman, Zurich Bt, serif;
  		font-size: 10pt;
  	}
  	#menu h4 {
  		margin-left: 0px;
  	}
  	.code {
  		page-break-inside: avoid;
  	}
  	p ul {
  		page-break-inside: avoid;
  	}
  	.section .code {
  		margin-left: 0px;
  	}
  	#menu {
  		display: none;
  		width: 0px;
  	}
  	#contents div {
  		margin: 0px;
  	}
  }
  
  
  
  
  1.1                  xml-forrest/src/documentation/skins/basic/images/add.jpg
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/basic/images/ant_logo_medium.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/basic/images/built-with-cocoon.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/basic/images/favicon.ico
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/basic/images/krysalis-compatible.jpg
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/basic/images/note.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/basic/images/remove.jpg
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/basic/images/update.jpg
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/basic/images/void.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/documentation/skins/basic/xslt/html/book2menu.xsl
  
  Index: book2menu.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                  version="1.0">
  
    <xsl:param name="resource"/>
  
    <xsl:template match="book">
      <menu>
        <xsl:apply-templates/>
      </menu>
    </xsl:template>
  
    <xsl:template match="project">
    </xsl:template>
  
    <xsl:template match="menu[position()=1]">
      <xsl:apply-templates/>
    </xsl:template>
  
    <xsl:template match="menu">
       <br/><b><xsl:value-of select="@label"/></b>&#160;;
       <xsl:apply-templates/>
    </xsl:template>
  
    <xsl:template match="menu-item">-&#160;
      <xsl:if test="not(@type) or @type!='hidden'">
         <xsl:choose>
           <xsl:when test="@href=$resource">
            <xsl:value-of select="@label"/>
           </xsl:when>
           <xsl:otherwise>
            <a href="{@href}"><xsl:value-of select="@label"/></a>
          </xsl:otherwise>
         </xsl:choose>
       </xsl:if>&#160;
    </xsl:template>
  
    <xsl:template match="external">
      <xsl:if test="not(@type) or @type!='hidden'">&#160;-
        <a href="{@href}"><xsl:value-of select="@label"/></a>&#160;;
      </xsl:if>
    </xsl:template>
  
    <xsl:template match="node()|@*" priority="-1"/>
  </xsl:stylesheet>
  
  
  
  
  1.1                  xml-forrest/src/documentation/skins/basic/xslt/html/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  
  <!-- ====================================================================== -->
  <!-- document section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="/">
    <!-- checks if this is the included document to avoid neverending loop -->
    <xsl:if test="not(book)">
        <document>
        <xsl:choose>
  		<xsl:when test="document/header/title">
  		      <title><xsl:value-of select="document/header/title"/></title>
  		</xsl:when>
  		<xsl:otherwise>
  			<title>NO TITLE</title>
  		</xsl:otherwise>
  	</xsl:choose>
        <body>
          <xsl:apply-templates/>
        </body>
        </document>
     </xsl:if>
     
     <xsl:if test="book">
      <xsl:apply-templates/>
     </xsl:if>
    </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- header section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="header">
    <!-- ignore on general document -->
   </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- body section -->
  <!-- ====================================================================== -->
  
     <xsl:template match="section">
  	
  	 <xsl:variable name = "level" select = "count(ancestor::section)+1" />
  	 
  	 <xsl:choose>
  	 	<xsl:when test="$level=1">
  	 	  <h2><xsl:value-of select="@title"/></h2>
  	      <xsl:apply-templates/>
  	 	</xsl:when>
  	 	<xsl:when test="$level=2">
  	 	  <h3><xsl:value-of select="@title"/></h3>
  	      <xsl:apply-templates/>
  	 	</xsl:when>
  	 	<xsl:when test="$level=3">
  	 	  <h4><xsl:value-of select="@title"/></h4>
  	      <xsl:apply-templates/>
  	 	</xsl:when>
  	 	<xsl:otherwise>
  	 	  <h5><xsl:value-of select="@title"/></h5>
  	      <xsl:apply-templates/>	 	 
  	 	</xsl:otherwise>
  	 </xsl:choose>
  
  	</xsl:template>  
      
  <!-- ====================================================================== -->
  <!-- footer section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="footer">
    <!-- ignore on general documents -->
   </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- paragraph section -->
  <!-- ====================================================================== -->
  
    <xsl:template match="p">
      <p><xsl:apply-templates/></p>
    </xsl:template>
  
    <xsl:template match="note">
     <p><i><xsl:apply-templates/></i></p>
    </xsl:template>
  
    <xsl:template match="source">
      <pre><xsl:apply-templates/></pre>
    </xsl:template>
    
    <xsl:template match="fixme">
     <!-- ignore on documentation -->
    </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- list section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="ul|ol|dl">
    <blockquote>
     <xsl:copy>
      <xsl:apply-templates/>
     </xsl:copy>
    </blockquote>
   </xsl:template>
   
   <xsl:template match="li">
    <xsl:copy>
     <xsl:apply-templates/>
    </xsl:copy>
   </xsl:template>
  
   <xsl:template match="sl">
    <ul>
     <xsl:apply-templates/>
    </ul>
   </xsl:template>
  
   <xsl:template match="dt">
    <li>
     <strong><xsl:value-of select="."/></strong>
     <xsl:text> - </xsl:text>
     <xsl:apply-templates select="dd"/>   
    </li>
   </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- table section -->
  <!-- ====================================================================== -->
  
    <xsl:template match="table">
      <table>
        <caption><xsl:value-of select="caption"/></caption>
        <xsl:apply-templates/>
      </table>
    </xsl:template>
  
    <xsl:template match="tr">
      <tr><xsl:apply-templates/></tr>
    </xsl:template>
  
    <xsl:template match="th">
      <td colspan="{@colspan}" rowspan="{@rowspan}">
          <b><xsl:apply-templates/></b>&#160;
      </td>
    </xsl:template>
  
    <xsl:template match="td">
      <td colspan="{@colspan}" rowspan="{@rowspan}">
          <xsl:apply-templates/>&#160;
      </td>
    </xsl:template>
  
    <xsl:template match="tn">
      <td colspan="{@colspan}" rowspan="{@rowspan}">
        &#160;
      </td>
    </xsl:template>
    
    <xsl:template match="caption">
      <!-- ignore since already used -->
    </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- markup section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="strong">
     <b><xsl:apply-templates/></b>
   </xsl:template>
  
   <xsl:template match="em">
      <i><xsl:apply-templates/></i>
   </xsl:template>
  
   <xsl:template match="code">
      <code><xsl:apply-templates/></code>
   </xsl:template>
   
  <!-- ====================================================================== -->
  <!-- images section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="figure">
    <p>
    <xsl:choose>
     <xsl:when test="string(@width) and string(@height)">
     <img src="{@src}" alt="{@alt}" width="{@width}" height="{@height}"/>
     </xsl:when>
     <xsl:otherwise>
     <img src="{@src}" alt="{@alt}"/>
     </xsl:otherwise>
    </xsl:choose>
    </p>
   </xsl:template>
   
   <xsl:template match="img">
     <img src="{@src}" alt="{@alt}"/>
   </xsl:template>
  
   <xsl:template match="icon">
     <img src="{@src}" alt="{@alt}"/>
   </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- links section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="link">
     <a href="{@href}"><xsl:apply-templates/></a>
   </xsl:template>
  
   <xsl:template match="connect">
    <xsl:apply-templates/>
   </xsl:template>
  
   <xsl:template match="jump">
     <a href="{@href}#{@anchor}"><xsl:apply-templates/></a>
   </xsl:template>
  
   <xsl:template match="fork">
     <a href="{@href}" target="_blank"><xsl:apply-templates/></a>
   </xsl:template>
  
   <xsl:template match="anchor">
     <a name="{@id}"><xsl:comment>anchor</xsl:comment></a>
   </xsl:template>  
  
  <!-- ====================================================================== -->
  <!-- specials section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="br">
    <br/>
   </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-forrest/src/documentation/skins/basic/xslt/html/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  <xsl:template match="/">
  <html>
   <head>
    <title><xsl:value-of select="/site/document/title"/></title>
    <link rel="stylesheet" type="text/css" href="skin/style.css" />
   </head>
   <body>
     <a href="@group-logo.href@"><img src="@group-logo.src@"/></a>
     <a href="@project-logo.href@"><img src="@project-logo.src@"/></a>
     
    <h1>
     <xsl:value-of select="/site/document/title"/>
    </h1>
  
      <hr/><xsl:copy-of select="/site/menu/node()|@*"/>
      <hr/><xsl:copy-of select="/site/document/body/node()|@*"/>
  
    <hr/><p><i>Copyright &#x00A9; @year@ @vendor@. All Rights Reserved.</i></p>
    <hr/>
    <a href="http://krysalis.org/"><img src="skin/images/krysalis-compatible.jpg" alt="Krysalis Logo"/></a> 
    <a href="http://xml.apache.org/cocoon/"><img src="skin/images/built-with-cocoon.gif" alt="Cocoon Logo"/></a> 
    <a href="http://jakarta.apache.org/ant/"><img src="skin/images/ant_logo_medium.gif" alt="Ant Logo"/></a> 
   
   </body>
  </html>
  </xsl:template>
  </xsl:stylesheet>