You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by bl...@apache.org on 2002/07/12 20:41:57 UTC
cvs commit: jakarta-avalon/src/documentation/skins/alt-avalon-site/xslt/html book2menu.xsl document2html.xsl site2xhtml.xsl
bloritsch 2002/07/12 11:41:57
Added: src/documentation/skins/alt-avalon-site/css common.css
src/documentation/skins/alt-avalon-site/images Thumbs.db
add.jpg ant_logo_medium.gif built-with-cocoon.gif
centipede-logo-small.gif favicon.ico
krysalis-logo-small.gif note.gif remove.jpg
update.jpg void.gif
src/documentation/skins/alt-avalon-site/xslt/html
book2menu.xsl document2html.xsl site2xhtml.xsl
Log:
add new version of avalon site to show what I mean
Revision Changes Path
1.1 jakarta-avalon/src/documentation/skins/alt-avalon-site/css/common.css
Index: common.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: 40px;
}
h1 {
font-size: 18pt;
padding: 2px;
margin-bottom: 10px;
text-align: center;
background-color: #DDDDFF;
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-right: 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;
}
#modified {
font-size: 10px;
font-style: italic;
}
#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;
}
.fixed {
font-family: Courier, Courier New, monospace;
}
@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 jakarta-avalon/src/documentation/skins/alt-avalon-site/images/Thumbs.db
<<Binary file>>
1.1 jakarta-avalon/src/documentation/skins/alt-avalon-site/images/add.jpg
<<Binary file>>
1.1 jakarta-avalon/src/documentation/skins/alt-avalon-site/images/ant_logo_medium.gif
<<Binary file>>
1.1 jakarta-avalon/src/documentation/skins/alt-avalon-site/images/built-with-cocoon.gif
<<Binary file>>
1.1 jakarta-avalon/src/documentation/skins/alt-avalon-site/images/centipede-logo-small.gif
<<Binary file>>
1.1 jakarta-avalon/src/documentation/skins/alt-avalon-site/images/favicon.ico
<<Binary file>>
1.1 jakarta-avalon/src/documentation/skins/alt-avalon-site/images/krysalis-logo-small.gif
<<Binary file>>
1.1 jakarta-avalon/src/documentation/skins/alt-avalon-site/images/note.gif
<<Binary file>>
1.1 jakarta-avalon/src/documentation/skins/alt-avalon-site/images/remove.jpg
<<Binary file>>
1.1 jakarta-avalon/src/documentation/skins/alt-avalon-site/images/update.jpg
<<Binary file>>
1.1 jakarta-avalon/src/documentation/skins/alt-avalon-site/images/void.gif
<<Binary file>>
1.1 jakarta-avalon/src/documentation/skins/alt-avalon-site/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">
<div id="submenu">
<h4><xsl:value-of select="@label"/></h4>
<ul>
<xsl:apply-templates/>
</ul>
</div>
</xsl:template>
<xsl:template match="menu-item">
<xsl:if test="not(@type) or @type!='hidden'">
<li>
<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>
</li>
</xsl:if>
</xsl:template>
<xsl:template match="external">
<xsl:if test="not(@type) or @type!='hidden'">
<li>
<a href="{@href}"><xsl:value-of select="@label"/></a>
</li>
</xsl:if>
</xsl:template>
<xsl:template match="node()|@*" priority="-1"/>
</xsl:stylesheet>
1.1 jakarta-avalon/src/documentation/skins/alt-avalon-site/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/>
<xsl:if test="/document/header/authors">
<div id="authors">
<xsl:for-each select="/document/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>
</div>
</xsl:if>
</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:when>
<xsl:when test="$level=2">
<h3><xsl:value-of select="@title"/></h3>
</xsl:when>
<xsl:when test="$level=3">
<h4><xsl:value-of select="@title"/></h4>
</xsl:when>
<xsl:otherwise>
<h5><xsl:value-of select="@title"/></h5>
</xsl:otherwise>
</xsl:choose>
<div class="section"><xsl:apply-templates/></div>
</xsl:template>
<xsl:template match="s1">
<h2><xsl:value-of select="@title"/></h2>
<div class="section"><xsl:apply-templates/></div>
</xsl:template>
<xsl:template match="s2">
<h3><xsl:value-of select="@title"/></h3>
<div class="section"><xsl:apply-templates/></div>
</xsl:template>
<xsl:template match="s3">
<h4><xsl:value-of select="@title"/></h4>
<div class="section"><xsl:apply-templates/></div>
</xsl:template>
<xsl:template match="s4">
<h5><xsl:value-of select="@title"/></h5>
<div class="section"><xsl:apply-templates/></div>
</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">
<div class="code"><pre><xsl:apply-templates/></pre></div>
</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> 
</td>
</xsl:template>
<xsl:template match="td">
<td colspan="{@colspan}" rowspan="{@rowspan}">
<xsl:apply-templates/> 
</td>
</xsl:template>
<xsl:template match="tn">
<td colspan="{@colspan}" rowspan="{@rowspan}">
 
</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">
<span class="fixed"><xsl:apply-templates/></span>
</xsl:template>
<xsl:template match="sup">
<sup><xsl:apply-templates/></sup>
</xsl:template>
<xsl:template match="sub">
<sub><xsl:apply-templates/></sub>
</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 jakarta-avalon/src/documentation/skins/alt-avalon-site/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>
<meta name="author" value="Leo Simons" />
<meta name="email" value="leosimons@apache.org" />
<link rel="stylesheet" type="text/css" href="skin/common.css" />
</head>
<body>
<!-- header -->
<div id="header"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="jakartaLogoTD" valign="middle" align="left"><a href="@group-logo.href@"><img id="jakartaLogo" src="@group-logo.src@" border="0"/></a></td>
<td id="projectLogoTD" valign="middle" align="right"><a href="@project-logo.href@"><img id="projectLogo" src="@project-logo.src@" border="0"/></a></td>
</tr>
</table></div>
<!-- end header -->
<!-- breadcrumb trail (javascript-generated) -->
<div id="breadcrumbs">
<a href="@link1.href@" class="menu">@link1@ ></a>
<a href="@link2.href@" class="menu">@link2@ ></a>
<a href="@link3.href@" class="menu">@link3@</a>
<script language="JavaScript1.2" type="text/javascript">
<![CDATA[
<!--
function sentenceCase(str) {
var lower = str.toLowerCase();
return lower.substr(0,1).toUpperCase() + lower.substr(1);
}
function getDirsAsArray() {
var trail = document.location.pathname.split("/");
var lastdir = (trail[trail.length-1].indexOf(".html") != -1)? trail.length-2 : trail.length-1;
var urlprefix = "/avalon/";
var postfix = " >";
for(var i = 1; i <= lastdir; i++) {
document.writeln('<a href=' + urlprefix + trail[i] + ' class="menu">' + sentenceCase(trail[i]) + '</a>'+postfix);
urlprefix += trail[i] + "/";
if(i == lastdir-1) postfix = ":";
}
}
getDirsAsArray();
// -->
]]>
</script>
</div>
<!-- end breadcrumb trail -->
<!-- main section of page -->
<div id="main"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<!-- menu -->
<div id="menu">
<xsl:copy-of select="/site/menu/node()|@*"/>
<h4>Supporting Technologies</h4>
<div align="center">
<a href="http://xml.apache.org/cocoon/"><img src="skin/images/built-with-cocoon.gif" alt="Cocoon Logo" border="0"/></a> <br/>
<a href="http://www.krysalis.org/centipede/"><img src="skin/images/centipede-logo-small.gif" alt="Krysalis Centipede Logo" border="0"/></a></div>
</div>
<!-- end menu column -->
</td>
<!-- spacer -->
<td width="10"> </td>
<td valign="top" width="100%">
<!-- contents column -->
<!-- contents -->
<div id="title"><h1><xsl:value-of select="/site/document/title"/></h1></div>
<div id="contents">
<xsl:copy-of select="/site/document/body/node()|@*"/>
</div>
<!-- end contents column -->
<div id="modified">
<script language="JavaScript">
<![CDATA[<!--
document.write("last modified: " + document.lastModified);
// -->]]>
</script></div>
</td>
</tr>
</table></div>
<!-- end main section of page -->
<!-- footer -->
<div id="footer">
Copyright ©@year@ @vendor@. All Rights Reserved.
</div>
<!-- end footer -->
</body>
</html>
</xsl:template>
</xsl:stylesheet>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>