You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2006/01/02 07:55:53 UTC
svn commit: r365303 - in /forrest/trunk/main/webapp/skins/coat: ./ css/
images/ xslt/ xslt/fo/ xslt/html/
Author: rgardler
Date: Sun Jan 1 22:55:22 2006
New Revision: 365303
URL: http://svn.apache.org/viewcvs?rev=365303&view=rev
Log:
initial stab at a skin looking like http://www.apache.org - still needs a little work, see note.txt
Added:
forrest/trunk/main/webapp/skins/coat/
forrest/trunk/main/webapp/skins/coat/css/
forrest/trunk/main/webapp/skins/coat/css/basic.css (with props)
forrest/trunk/main/webapp/skins/coat/css/print.css (with props)
forrest/trunk/main/webapp/skins/coat/css/profile.css.xslt (with props)
forrest/trunk/main/webapp/skins/coat/css/screen.css (with props)
forrest/trunk/main/webapp/skins/coat/images/
forrest/trunk/main/webapp/skins/coat/images/chapter.gif (with props)
forrest/trunk/main/webapp/skins/coat/images/chapter_open.gif (with props)
forrest/trunk/main/webapp/skins/coat/images/current.gif (with props)
forrest/trunk/main/webapp/skins/coat/images/error.png (with props)
forrest/trunk/main/webapp/skins/coat/images/header_white_line.gif (with props)
forrest/trunk/main/webapp/skins/coat/images/info.png (with props)
forrest/trunk/main/webapp/skins/coat/images/instruction_arrow.png (with props)
forrest/trunk/main/webapp/skins/coat/images/label.gif (with props)
forrest/trunk/main/webapp/skins/coat/images/page.gif (with props)
forrest/trunk/main/webapp/skins/coat/images/pdfdoc.gif (with props)
forrest/trunk/main/webapp/skins/coat/images/printer.gif (with props)
forrest/trunk/main/webapp/skins/coat/images/success.png (with props)
forrest/trunk/main/webapp/skins/coat/images/warning.png (with props)
forrest/trunk/main/webapp/skins/coat/images/xmldoc.gif (with props)
forrest/trunk/main/webapp/skins/coat/note.txt (with props)
forrest/trunk/main/webapp/skins/coat/skinconf.xsl (with props)
forrest/trunk/main/webapp/skins/coat/xslt/
forrest/trunk/main/webapp/skins/coat/xslt/fo/
forrest/trunk/main/webapp/skins/coat/xslt/fo/document-to-fo.xsl (with props)
forrest/trunk/main/webapp/skins/coat/xslt/html/
forrest/trunk/main/webapp/skins/coat/xslt/html/book-to-menu.xsl (with props)
forrest/trunk/main/webapp/skins/coat/xslt/html/document-to-html.xsl (with props)
forrest/trunk/main/webapp/skins/coat/xslt/html/site-to-xhtml.xsl (with props)
forrest/trunk/main/webapp/skins/coat/xslt/html/tab-to-menu.xsl (with props)
Added: forrest/trunk/main/webapp/skins/coat/css/basic.css
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/css/basic.css?rev=365303&view=auto
==============================================================================
--- forrest/trunk/main/webapp/skins/coat/css/basic.css (added)
+++ forrest/trunk/main/webapp/skins/coat/css/basic.css Sun Jan 1 22:55:22 2006
@@ -0,0 +1,159 @@
+/*
+* Copyright 2002-2005 The Apache Software Foundation or its licensors,
+* as applicable.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+/**
+ * General
+ */
+
+img { border: 0; }
+
+#content table {
+ border: 0;
+ width: 100%;
+}
+/*Hack to get IE to render the table at 100%*/
+* html #content table { margin-left: -3px; }
+
+#content th,
+#content td {
+ margin: 0;
+ padding: 0;
+ vertical-align: top;
+}
+
+.clearboth {
+ clear: both;
+}
+
+.note, .warning, .fixme {
+ border: solid black 1px;
+ margin: 1em 3em;
+}
+
+.note .label {
+ background: #369;
+ color: white;
+ font-weight: bold;
+ padding: 5px 10px;
+}
+.note .content {
+ background: #F0F0FF;
+ color: black;
+ line-height: 120%;
+ font-size: 90%;
+ padding: 5px 10px;
+}
+.warning .label {
+ background: #C00;
+ color: white;
+ font-weight: bold;
+ padding: 5px 10px;
+}
+.warning .content {
+ background: #FFF0F0;
+ color: black;
+ line-height: 120%;
+ font-size: 90%;
+ padding: 5px 10px;
+}
+.fixme .label {
+ background: #C6C600;
+ font-weight: bold;
+ padding: 5px 10px;
+}
+.fixme .content {
+ padding: 5px 10px;
+}
+
+/**
+ * Typography
+ */
+
+body {
+ font-family: verdana, "Trebuchet MS", arial, helvetica, sans-serif;
+ font-size: 100%;
+}
+
+#content {
+ font-family: Georgia, Palatino, Times, serif;
+ font-size: 95%;
+}
+#tabs {
+ font-size: 70%;
+}
+#menu {
+ font-size: 80%;
+}
+#footer {
+ font-size: 70%;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ font-family: "Trebuchet MS", verdana, arial, helvetica, sans-serif;
+ font-weight: bold;
+ margin-top: 1em;
+ margin-bottom: .5em;
+}
+
+h1 {
+ margin-top: 0;
+ margin-bottom: 1em;
+ font-size: 1.4em;
+}
+#content h1 {
+ font-size: 160%;
+ margin-bottom: .5em;
+}
+#menu h1 {
+ margin: 0;
+ padding: 10px;
+ background: #336699;
+ colo: white;
+}
+h2 { font-size: 120%; }
+h3 { font-size: 100%; }
+h4 { font-size: 90%; }
+h5 { font-size: 80%; }
+h6 { font-size: 75%; }
+
+p {
+ line-height: 120%;
+ text-align: left;
+ margin-top: .5em;
+ margin-bottom: 1em;
+ margin-left: 2em;
+ padding: .5em;
+}
+
+#content li,
+#content th,
+#content td {
+ line-height: 110%;
+ margin-top: .1em;
+ margin-bottom: .1em;
+}
+
+#content .attribution {
+ text-align: right;
+ font-style: italic;
+ font-size: 85%;
+ margin-top: 1em;
+}
+
+.codefrag {
+ font-family: "Courier New", Courier, monospace;
+ font-size: 110%;
+}
Propchange: forrest/trunk/main/webapp/skins/coat/css/basic.css
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/main/webapp/skins/coat/css/print.css
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/css/print.css?rev=365303&view=auto
==============================================================================
--- forrest/trunk/main/webapp/skins/coat/css/print.css (added)
+++ forrest/trunk/main/webapp/skins/coat/css/print.css Sun Jan 1 22:55:22 2006
@@ -0,0 +1,54 @@
+/*
+* Copyright 2002-2004 The Apache Software Foundation or its licensors,
+* as applicable.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+body {
+ font-family: Georgia, Palatino, serif;
+ font-size: 12pt;
+ background: white;
+}
+
+#tabs,
+#menu,
+#content .toc {
+ display: none;
+}
+
+#content {
+ width: auto;
+ padding: 0;
+ float: none !important;
+ color: black;
+ background: transparent;
+}
+
+a:link, a:visited {
+ color: #525D76;
+ background: transparent;
+ text-decoration: underline;
+}
+
+#top .logo {
+ padding: 0;
+ margin: 0 0 2em 0;
+}
+
+#footer {
+ margin-top: 4em;
+}
+
+acronym {
+ border: 0;
+}
Propchange: forrest/trunk/main/webapp/skins/coat/css/print.css
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/main/webapp/skins/coat/css/profile.css.xslt
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/css/profile.css.xslt?rev=365303&view=auto
==============================================================================
--- forrest/trunk/main/webapp/skins/coat/css/profile.css.xslt (added)
+++ forrest/trunk/main/webapp/skins/coat/css/profile.css.xslt Sun Jan 1 22:55:22 2006
@@ -0,0 +1,217 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:import href="../../common/css/forrest.css.xslt"/>
+
+ <!-- xsl:output is not used by Forrest but makes it possible to debug the
+ stylesheet in standalone editors -->
+ <xsl:output method = "text" omit-xml-declaration="yes" />
+
+<!-- ==================== main block colors ============================ -->
+
+<xsl:template match="color[@name='header']">
+#top { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='tab-selected']">
+#top .header .current { background-color: <xsl:value-of select="@value"/>;}
+#top .header .current a:link { color: <xsl:value-of select="@link"/>; }
+#top .header .current a:visited { color: <xsl:value-of select="@vlink"/>; }
+#top .header .current a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template>
+
+<xsl:template match="color[@name='tab-unselected']">
+#tabs li { background-color: <xsl:value-of select="@value"/> ;}
+#tabs li a:link { color: <xsl:value-of select="@link"/>; }
+#tabs li a:visited { color: <xsl:value-of select="@vlink"/>; }
+#tabs li a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template>
+
+<xsl:template match="color[@name='subtab-selected']">
+#level2tabs { background-color: <xsl:value-of select="@value"/> ;}
+#level2tabs a:link { color: <xsl:value-of select="@link"/>; }
+#level2tabs a:visited { color: <xsl:value-of select="@vlink"/>; }
+#level2tabs a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template>
+
+<!--xsl:template match="color[@name='subtab-unselected']">
+.level2tabstrip { background-color: <xsl:value-of select="@value"/>;}
+.datenote { background-color: <xsl:value-of select="@value"/>;}
+.level2tabstrip.unselected a:link { color: <xsl:value-of select="@link"/>; }
+.level2tabstrip.unselected a:visited { color: <xsl:value-of select="@vlink"/>; }
+.level2tabstrip.unselected a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template-->
+
+<xsl:template match="color[@name='heading']">
+.heading {
+ background-color: <xsl:value-of select="@value"/>;
+}
+
+.boxed {
+ background-color: <xsl:value-of select="@value"/>;
+ color: <xsl:value-of select="@font"/>;
+}
+</xsl:template>
+
+<xsl:template match="color[@name='subheading']">
+.boxed {
+ background-color: <xsl:value-of select="@value"/>;
+ color: <xsl:value-of select="@font"/>;}
+.underlined_5 {border-bottom: solid 5px <xsl:value-of select="@value"/>;}
+.underlined_10 {border-bottom: solid 10px <xsl:value-of select="@value"/>;}
+table caption {
+background-color: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@font"/>;
+}
+</xsl:template>
+<xsl:template match="color[@name='feedback']">
+#feedback {
+color: <xsl:value-of select="@font"/>;
+background-color: <xsl:value-of select="@value"/>;
+text-align: <xsl:value-of select="@align"/>;
+}
+#feedback #feedbackto {
+color: <xsl:value-of select="@font"/>;
+}
+</xsl:template>
+
+<xsl:template match="color[@name='breadtrail']">
+#main .breadtrail {
+background: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@font"/>;
+}
+#main .breadtrail a:link { color: <xsl:value-of select="@link"/>; }
+#main .breadtrail a:visited { color: <xsl:value-of select="@vlink"/>; }
+#main .breadtrail a:hover { color: <xsl:value-of select="@hlink"/>; }
+#top .breadtrail {
+background: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@font"/>;
+}
+#top .breadtrail a:link { color: <xsl:value-of select="@link"/>; }
+#top .breadtrail a:visited { color: <xsl:value-of select="@vlink"/>; }
+#top .breadtrail a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template>
+<!--Fix for other (old) profiles-->
+<xsl:template match="color[@name='navstrip']">
+#publishedStrip {
+color: <xsl:value-of select="@font"/>;
+background: <xsl:value-of select="@value"/>;
+}
+</xsl:template>
+<!--has to go after the nav-strip (no 'navstrip')-->
+<xsl:template match="color[@name='published']">
+#publishedStrip {
+color: <xsl:value-of select="@font"/>;
+background: <xsl:value-of select="@value"/>;
+}
+</xsl:template>
+<xsl:template match="color[@name='toolbox']">
+#menu .menupagetitle { background-color: <xsl:value-of select="@value"/>}
+</xsl:template>
+
+<xsl:template match="color[@name='border']">
+#menu { border-color: <xsl:value-of select="@value"/>;}
+#menu .menupagetitle { border-color: <xsl:value-of select="@value"/>;}
+#menu .menupageitemgroup { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='menu']">
+#menu { background-color: <xsl:value-of select="@value"/>;}
+#menu { color: <xsl:value-of select="@font"/>;}
+#menu a:link { color: <xsl:value-of select="@link"/>;}
+#menu a:visited { color: <xsl:value-of select="@vlink"/>;}
+#menu a:hover {
+background-color: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@hlink"/>;}
+</xsl:template>
+<xsl:template match="color[@name='dialog']">
+#menu .menupagetitle { color: <xsl:value-of select="@font"/>;}
+#menu .menupageitemgroup {
+background-color: <xsl:value-of select="@value"/>;
+}
+#menu .menupageitem {
+color: <xsl:value-of select="@font"/>;
+}
+#menu .menupageitem a:link { color: <xsl:value-of select="@link"/>;}
+#menu .menupageitem a:visited { color: <xsl:value-of select="@vlink"/>;}
+#menu .menupageitem a:hover {
+background-color: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@hlink"/>;
+}
+</xsl:template>
+<xsl:template match="color[@name='menuheading']">
+#menu h1 {
+color: <xsl:value-of select="@font"/>;
+background-color: <xsl:value-of select="@value"/>;
+}
+</xsl:template>
+<xsl:template match="color[@name='searchbox']">
+#top .searchbox {
+background-color: <xsl:value-of select="@value"/> ;
+color: <xsl:value-of select="@font"/>;
+}
+</xsl:template>
+
+<xsl:template match="color[@name='body']">
+body{
+background-color: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@font"/>;
+}
+a:link { color:<xsl:value-of select="@link"/>}
+a:visited { color:<xsl:value-of select="@vlink"/>}
+a:hover { color:<xsl:value-of select="@hlink"/>}
+
+</xsl:template>
+
+<xsl:template match="color[@name='footer']">
+#footer { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+
+<!-- ==================== other colors ============================ -->
+<xsl:template match="color[@name='highlight']">
+.highlight { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='fixme']">
+.fixme { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='note']">
+.note { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='warning']">
+.warning { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='code']">
+.code { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='table']">
+.ForrestTable { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="color[@name='table-cell']">
+.ForrestTable td { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+
+</xsl:stylesheet>
Propchange: forrest/trunk/main/webapp/skins/coat/css/profile.css.xslt
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/main/webapp/skins/coat/css/screen.css
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/css/screen.css?rev=365303&view=auto
==============================================================================
--- forrest/trunk/main/webapp/skins/coat/css/screen.css (added)
+++ forrest/trunk/main/webapp/skins/coat/css/screen.css Sun Jan 1 22:55:22 2006
@@ -0,0 +1,469 @@
+/*
+* Copyright 2002-2004 The Apache Software Foundation or its licensors,
+* as applicable.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+body { margin: 0px 0px 0px 0px; font-family: Verdana, Helvetica, sans-serif; }
+
+h1 { font-size : 160%; margin: 0px 0px 0px 0px; padding: 0px; }
+h2 { font-size : 140%; margin: 0.9em 0px 0px 0px; padding: 0px; font-weight : bold;}
+h3 { font-size : 130%; margin: 0.8em 0px 0px 0px; padding: 0px; font-weight : bold; }
+.h3 { margin: 22px 0px 3px 0px; }
+h4 { font-size : 120%; margin: 0.7em 0px 0px 0px; padding: 0px; font-weight : normal; text-align: left; }
+.h4 { margin: 18px 0px 0px 0px; }
+h4.faq { font-size : 120%; margin: 18px 0px 0px 0px; padding: 0px; font-weight : bold; text-align: left; }
+h5 { font-size : 100%; margin: 14px 0px 0px 0px; padding: 0px; font-weight : normal; text-align: left; }
+
+/**
+* table
+*/
+table .title { background-color: #000000; }
+.ForrestTable {
+ color: #ffffff;
+ background-color: #7099C5;
+ width: 100%;
+ font-size : 100%;
+ empty-cells: show;
+}
+table caption {
+ padding-left: 5px;
+ color: white;
+ text-align: left;
+ font-weight: bold;
+ background-color: #000000;
+}
+.ForrestTable td {
+ color: black;
+ background-color: #f0f0ff;
+}
+.ForrestTable th { text-align: center; }
+/**
+ * Page Header
+ */
+
+#top {
+ position: relative;
+ float: left;
+ width: 100%;
+ background: #294563; /* if you want a background in the header, put it here */
+}
+
+#top .header {
+ margin-left: 10px;
+ margin-right: 10px;
+}
+
+#top .grouplogo {
+ padding: 7px 0 10px 10px;
+ float: left;
+ text-align: left;
+}
+#top .projectlogo {
+ position: absolute;
+ top: 7px;
+ right: 10px;
+}
+#top .projectlogoA1 {
+ position: absolute;
+ top: 7px;
+ right: 10px;
+}
+html>body #top .searchbox {
+ bottom: 0px;
+}
+#top .searchbox {
+ position: absolute;
+ right: 10px;
+ height: 42px;
+ font-size: 70%;
+ white-space: nowrap;
+ text-align: right;
+ color: white;
+ background-color: #000000;
+ z-index:0;
+ background-image: url(images/rc-t-l-5-1header-2searchbox-3searchbox.png);
+ background-repeat: no-repeat;
+ background-position: top left;
+ bottom: -1px; /* compensate for IE rendering issue */
+}
+
+#top .searchbox form {
+ padding: 5px 10px;
+ margin: 0;
+}
+#top .searchbox p {
+ padding: 0 0 2px 0;
+ margin: 0;
+}
+#top .searchbox input {
+ font-size: 100%;
+}
+
+#tabs {
+ clear: both;
+ padding-left: 10px;
+ margin: 0;
+ list-style: none;
+}
+/* background: #CFDCED url("images/tab-right.gif") no-repeat right top;*/
+#tabs li {
+ float: left;
+ background-image: url(images/rc-t-r-5-1header-2tab-unselected-3tab-unselected.png);
+ background-repeat: no-repeat;
+ background-position: top right;
+ background-color: #000000;
+ margin: 0 3px 0 0;
+ padding: 0;
+}
+
+/*background: url("images/tab-left.gif") no-repeat left top;*/
+#tabs li a {
+ float: left;
+ display: block;
+ font-family: verdana, arial, sans-serif;
+ text-decoration: none;
+ color: black;
+ white-space: nowrap;
+ background-image: url(images/rc-t-l-5-1header-2tab-unselected-3tab-unselected.png);
+ background-repeat: no-repeat;
+ background-position: top left;
+ padding: 5px 15px 4px;
+ width: .1em; /* IE/Win fix */
+}
+
+#tabs > li a { width: auto; } /* Rest of IE/Win fix */
+
+/* Commented Backslash Hack hides rule from IE5-Mac \*/
+#tabs a { float: none; }
+/* End IE5-Mac hack */
+
+#top .header .current {
+ background-color: #white;
+}
+#top .header .current a {
+ font-weight: bold;
+ padding-bottom: 5px;
+ color: white;
+ background-image: url(images/rc-t-l-5-1header-2tab-selected-3tab-selected.png);
+ background-repeat: no-repeat;
+ background-position: top left;
+}
+
+/*
+* border-top: solid #4C6C8F 15px;
+*/
+#main {
+ position: relative;
+ background: white;
+ clear:both;
+ border-top: solid 1px #000000;
+ margin-left: 5px;
+ margin-right: 5px;
+}
+
+/**
+ * Side menu
+ */
+#menu a { font-weight: normal;}
+#menu a:visited { font-weight: normal; }
+#menu a:active { font-weight: normal; }
+#menu a:hover { font-weight: normal; }
+
+#menuarea { width:10em;}
+#menu {
+ float: left;
+ width: 160px;
+ padding-top: 0px;
+ left:10px;
+ z-index: 20;
+ background-color: white;
+ font-size : 70%;
+}
+
+.menutitle {
+ cursor:pointer;
+ padding: 3px 12px;
+ margin-left: 10px;
+ background-image: url('images/chapter.gif');
+ background-repeat: no-repeat;
+ background-position: center left;
+ font-weight : bold;
+}
+
+#menu .menuitemgroup {
+ margin: 0px 0px 6px 8px;
+ padding: 0px;
+ font-weight : bold; }
+
+#menu .selectedmenuitemgroup{
+ margin: 0px 0px 6px 8px;
+ padding: 0px;
+ font-weight : bold; }
+
+#menu .menuitem {
+ padding: 0px 0px 2px 12px;
+ background-image: url('images/page.gif');
+ background-repeat: no-repeat;
+ background-position: center left;
+ font-weight : normal;
+ margin-left: 10px;
+}
+
+#menu .menupage {
+ margin: 5px 0px 5px 10px;
+ padding: 0px 3px 0px 12px;
+ background-image: url('images/current.gif');
+ background-repeat: no-repeat;
+ background-position: top left;
+ font-style : normal;
+}
+#menu .menupagetitle {
+ padding: 0px 0px 0px 6px;
+ font-style : normal;
+ border-style: solid;
+ border-width: 1px;
+ margin-right: 10px;
+}
+#menu .menupageitemgroup {
+ padding: 3px 0px 4px 6px;
+ font-style : normal;
+ border-bottom: 1px solid ;
+ border-left: 1px solid ;
+ border-right: 1px solid ;
+ margin-right: 10px;
+}
+#menu .menupageitem {
+ font-style : normal;
+ font-weight : normal;
+ border-width: 0px;
+ font-size : 90%;
+}
+#menu #credit {
+ text-align: center;
+}
+#menu #credit2 {
+ text-align: center;
+ padding: 3px 3px 3px 3px;
+ background-color: #ffffff;
+}
+#menu .searchbox {
+ text-align: center;
+}
+#menu .searchbox form {
+ padding: 3px 3px;
+ margin: 0;
+}
+#menu .searchbox input {
+ font-size: 100%;
+}
+
+#content {
+ padding: 20px 20px 20px 180px;
+ margin: 0;
+ font : small Verdana, Helvetica, sans-serif;
+ font-size : 80%;
+}
+
+#content ul {
+ margin: 0;
+ padding: 0 25px;
+}
+#content li {
+ padding: 0 5px;
+}
+#feedback {
+ color: black;
+ background: #CFDCED;
+ text-align:center;
+ margin-top: 5px;
+}
+#feedback #feedbackto {
+ font-size: 90%;
+ color: black;
+}
+#footer {
+ clear: both;
+ position: relative; /* IE bugfix (http://www.dracos.co.uk/web/css/ie6floatbug/) */
+ width: 100%;
+ background: #ffffff;
+ border-top: solid 1px #000000;
+ color: black;
+ text-align:center;
+ margin-right: 5px;
+ margin-left: 5px;
+}
+#footer .copyright {
+ position: relative; /* IE bugfix cont'd */
+ padding: 5px;
+ margin: 0;
+}
+#footer a { color: #000000; }
+
+#footer #logos {
+ text-align: left;
+}
+
+
+/**
+ * Misc Styles
+ */
+
+acronym { cursor: help; }
+.boxed {
+ background-color: #a5b6c6;
+ padding-left: 1em;
+ font-weight: normal;
+}
+.underlined_5 {border-bottom: solid 5px #4C6C8F;}
+.underlined_10 {border-bottom: solid 10px #4C6C8F;}
+/* ==================== snail trail ============================ */
+
+.trail {
+ position: relative; /* IE bugfix cont'd */
+ font-size: 70%;
+ text-align: right;
+ float: right;
+ margin: -10px 5px 0px 5px;
+ padding: 0;
+}
+
+#motd-area {
+ position: relative; /* IE bugfix cont'd */
+ float: right;
+ width: 35%;
+ background-color: #f0f0ff;
+ border-top: solid 1px #4C6C8F;
+ border-bottom: solid 1px #4C6C8F;
+ margin-bottom: 15px;
+ margin-left: 15px;
+ margin-right: 10%;
+ padding-bottom: 5px;
+ padding-top: 5px;
+}
+
+#minitoc-area {
+ border-top: solid 1px #4C6C8F;
+ border-bottom: solid 1px #4C6C8F;
+ margin-bottom: 15px;
+ margin-left: 15px;
+ margin-right: 10%;
+ padding-bottom: 5px;
+ padding-top: 5px;
+}
+.minitoc {
+ list-style-image: url('images/current.gif');
+ font-weight: normal;
+}
+
+li p {
+ margin: 0;
+ padding: 0;
+}
+
+.pdflink {
+ position: relative; /* IE bugfix cont'd */
+ float: right;
+ margin: 0px 5px;
+ padding: 0;
+}
+.pdflink br {
+ margin-top: -10px;
+ padding-left: 1px;
+}
+.pdflink a {
+ display: block;
+ font-size: 70%;
+ text-align: center;
+ margin: 0;
+ padding: 0;
+}
+
+.pdflink img {
+ display: block;
+ height: 16px;
+ width: 16px;
+}
+.xmllink {
+ position: relative; /* IE bugfix cont'd */
+ float: right;
+ margin: 0px 5px;
+ padding: 0;
+}
+.xmllink br {
+ margin-top: -10px;
+ padding-left: 1px;
+}
+.xmllink a {
+ display: block;
+ font-size: 70%;
+ text-align: center;
+ margin: 0;
+ padding: 0;
+}
+
+.xmllink img {
+ display: block;
+ height: 16px;
+ width: 16px;
+}
+.podlink {
+ position: relative; /* IE bugfix cont'd */
+ float: right;
+ margin: 0px 5px;
+ padding: 0;
+}
+.podlink br {
+ margin-top: -10px;
+ padding-left: 1px;
+}
+.podlink a {
+ display: block;
+ font-size: 70%;
+ text-align: center;
+ margin: 0;
+ padding: 0;
+}
+
+.podlink img {
+ display: block;
+ height: 16px;
+ width: 16px;
+}
+
+.printlink {
+ float: right;
+}
+.printlink br {
+ margin-top: -10px;
+ padding-left: 1px;
+}
+.printlink a {
+ display: block;
+ font-size: 70%;
+ text-align: center;
+ margin: 0;
+ padding: 0;
+}
+.printlink img {
+ display: block;
+ height: 16px;
+ width: 16px;
+}
+
+p.instruction {
+ display: list-item;
+ list-style-image: url('../images/instruction_arrow.png');
+ list-style-position: outside;
+ margin-left: 2em;
+}
Propchange: forrest/trunk/main/webapp/skins/coat/css/screen.css
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/main/webapp/skins/coat/images/chapter.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/chapter.gif?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/chapter.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/main/webapp/skins/coat/images/chapter_open.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/chapter_open.gif?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/chapter_open.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/main/webapp/skins/coat/images/current.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/current.gif?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/current.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/main/webapp/skins/coat/images/error.png
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/error.png?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/error.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: forrest/trunk/main/webapp/skins/coat/images/header_white_line.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/header_white_line.gif?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/header_white_line.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/main/webapp/skins/coat/images/info.png
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/info.png?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/info.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: forrest/trunk/main/webapp/skins/coat/images/instruction_arrow.png
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/instruction_arrow.png?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/instruction_arrow.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: forrest/trunk/main/webapp/skins/coat/images/label.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/label.gif?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/label.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/main/webapp/skins/coat/images/page.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/page.gif?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/page.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/main/webapp/skins/coat/images/pdfdoc.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/pdfdoc.gif?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/pdfdoc.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/main/webapp/skins/coat/images/printer.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/printer.gif?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/printer.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/main/webapp/skins/coat/images/success.png
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/success.png?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/success.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: forrest/trunk/main/webapp/skins/coat/images/warning.png
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/warning.png?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/warning.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: forrest/trunk/main/webapp/skins/coat/images/xmldoc.gif
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/images/xmldoc.gif?rev=365303&view=auto
==============================================================================
Binary file - no diff available.
Propchange: forrest/trunk/main/webapp/skins/coat/images/xmldoc.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: forrest/trunk/main/webapp/skins/coat/note.txt
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/note.txt?rev=365303&view=auto
==============================================================================
--- forrest/trunk/main/webapp/skins/coat/note.txt (added)
+++ forrest/trunk/main/webapp/skins/coat/note.txt Sun Jan 1 22:55:22 2006
@@ -0,0 +1,17 @@
+This skin is inteded to replicate the main ASF "branding" at http://www.apache.org/
+
+It does not provide the three column layout, we'll do that when the Dispatcher is more stable.
+
+This is a skin for use in the interim since many projects are demanding a simpler look and feel.
+
+There are many unsupported features in this skin, it really should be a view. But...
+
+
+TODO
+====
+
+- Colour scheme - not checked things like the MOTD colours, table backgrounds etc.
+
+- menus - make javascript switchable in skinconf.xml
+
+- search box - colour is wrong and it doesn't look right in the default position
\ No newline at end of file
Propchange: forrest/trunk/main/webapp/skins/coat/note.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/main/webapp/skins/coat/skinconf.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/skinconf.xsl?rev=365303&view=auto
==============================================================================
--- forrest/trunk/main/webapp/skins/coat/skinconf.xsl (added)
+++ forrest/trunk/main/webapp/skins/coat/skinconf.xsl Sun Jan 1 22:55:22 2006
@@ -0,0 +1,153 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2005 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:template match="skinconfig">
+
+ <xsl:if test="not(colors)">
+ <colors>
+<!-- Lenya -->
+ <color name="header" value="#ffffff"/>
+
+ <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
+ <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
+ <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+
+ <color name="heading" value="#E5E4D9"/>
+ <color name="subheading" value="#E5E4D9"/>
+ <color name="published" value="#4C6C8F" font="#FFFFFF"/>
+ <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>
+ <color name="navstrip" value="#E5E4D9" font="#000000"/>
+
+ <color name="toolbox" value="#CFDCED" font="#000000"/>
+
+ <color name="border" value="#999999"/>
+ <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff" />
+ <color name="menuheading" value="#cfdced" font="#000000" />
+ <color name="searchbox" value="#E5E4D9" font="#000000"/>
+
+ <color name="dialog" value="#E5E4D9" font="#000000"/>
+ <color name="body" value="#ffffff" />
+
+ <color name="table" value="#ccc"/>
+ <color name="table-cell" value="#ffffff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#003366"/>
+
+ <color name="footer" value="#E5E4D9"/>
+ </colors>
+ </xsl:if>
+
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:copy-of select="node()[not(name(.)='colors')]"/>
+ <xsl:apply-templates select="colors"/>
+ </xsl:copy>
+
+ </xsl:template>
+
+ <xsl:template match="colors">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:copy-of select="node()[name(.)='color']"/>
+
+ <xsl:if test="not(color[@name='header'])">
+ <color name="header" value="#FFFFFF"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='tab-selected'])">
+ <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='tab-unselected'])">
+ <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='subtab-selected'])">
+ <color name="subtab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='subtab-unselected'])">
+ <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='heading'])">
+ <color name="heading" value="#E5E4D9"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='subheading'])">
+ <color name="subheading" value="#E5E4D9"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='feedback'])">
+ <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='published'])">
+ <color name="published" value="#4C6C8F" font="#FFFFFF"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='navstrip'])">
+ <color name="navstrip" value="#E5E4D9" font="#000000"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='toolbox'])">
+ <color name="toolbox" value="#CFDCED" font="#000000"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='border'])">
+ <color name="border" value="#999999"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='menu'])">
+ <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff" />
+ </xsl:if>
+ <xsl:if test="not(color[@name='menuheading'])">
+ <color name="menuheading" value="#cfdced" font="#000000" />
+ </xsl:if>
+ <xsl:if test="not(color[@name='searchbox'])">
+ <color name="searchbox" value="#E5E4D9" font="#000000"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='dialog'])">
+ <color name="dialog" value="#E5E4D9" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='body'])">
+ <color name="body" value="#ffffff" />
+ </xsl:if>
+ <xsl:if test="not(color[@name='table'])">
+ <color name="table" value="#ccc"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='table-cell'])">
+ <color name="table-cell" value="#ffffff"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='highlight'])">
+ <color name="highlight" value="#ffff00"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='fixme'])">
+ <color name="fixme" value="#c60"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='note'])">
+ <color name="note" value="#069"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='warning'])">
+ <color name="warning" value="#900"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='code'])">
+ <color name="code" value="#a5b6c6"/>
+ </xsl:if>
+ <xsl:if test="not(color[@name='footer'])">
+ <color name="footer" value="#E5E4D9"/>
+ </xsl:if>
+
+ </xsl:copy>
+
+ </xsl:template>
+
+</xsl:stylesheet>
Propchange: forrest/trunk/main/webapp/skins/coat/skinconf.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/main/webapp/skins/coat/xslt/fo/document-to-fo.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/xslt/fo/document-to-fo.xsl?rev=365303&view=auto
==============================================================================
--- forrest/trunk/main/webapp/skins/coat/xslt/fo/document-to-fo.xsl (added)
+++ forrest/trunk/main/webapp/skins/coat/xslt/fo/document-to-fo.xsl Sun Jan 1 22:55:22 2006
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2005 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ version="1.0">
+
+<xsl:import href="../../../common/xslt/fo/document-to-fo.xsl"/>
+
+</xsl:stylesheet>
Propchange: forrest/trunk/main/webapp/skins/coat/xslt/fo/document-to-fo.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/main/webapp/skins/coat/xslt/html/book-to-menu.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/xslt/html/book-to-menu.xsl?rev=365303&view=auto
==============================================================================
--- forrest/trunk/main/webapp/skins/coat/xslt/html/book-to-menu.xsl (added)
+++ forrest/trunk/main/webapp/skins/coat/xslt/html/book-to-menu.xsl Sun Jan 1 22:55:22 2006
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2005 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!--
+book2menu.xsl generates the HTML menu. See the imported book2menu.xsl for
+details.
+-->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:import href="../../../common/xslt/html/book-to-menu.xsl"/>
+
+ <xsl:template match="book">
+ <div id="menu">
+ <ul>
+ <xsl:apply-templates select="menu"/>
+ </ul>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="menu">
+ <li>
+ <h1><xsl:value-of select="@label"/></h1>
+ <ul>
+ <xsl:apply-templates/>
+ </ul>
+ </li>
+ </xsl:template>
+
+ <xsl:template match="menu-item[@type='hidden']"/>
+
+ <xsl:template match="menu-item">
+ <li>
+ <xsl:apply-imports/>
+ </li>
+ </xsl:template>
+
+ <xsl:template name="selected">
+ <div class="current"><xsl:value-of select="@label"/></div>
+ </xsl:template>
+
+ <xsl:template name="print-external">
+ <font color="#ffcc00">
+ <xsl:apply-imports/>
+ </font>
+ </xsl:template>
+
+</xsl:stylesheet>
Propchange: forrest/trunk/main/webapp/skins/coat/xslt/html/book-to-menu.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/main/webapp/skins/coat/xslt/html/document-to-html.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/xslt/html/document-to-html.xsl?rev=365303&view=auto
==============================================================================
--- forrest/trunk/main/webapp/skins/coat/xslt/html/document-to-html.xsl (added)
+++ forrest/trunk/main/webapp/skins/coat/xslt/html/document-to-html.xsl Sun Jan 1 22:55:22 2006
@@ -0,0 +1,151 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2005 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!--
+This stylesheet contains templates for converting documentv11 to HTML. See the
+imported document2html.xsl for details.
+-->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:import href="../../../common/xslt/html/document-to-html.xsl"/>
+
+ <xsl:template match="document">
+ <meta-data>
+ <xsl:apply-templates select="header/meta"/>
+ </meta-data>
+
+ <div id="content">
+ <div id="skinconf-printlink"/>
+ <div id="skinconf-xmllink"/>
+ <div id="skinconf-podlink"/>
+ <div id="skinconf-txtlink"/>
+ <div id="skinconf-pdflink"/>
+ <div id="disable-font-script"/>
+ <xsl:if test="normalize-space(header/title)!=''">
+ <h1><xsl:value-of select="header/title"/></h1>
+ </xsl:if>
+
+ <xsl:if test="normalize-space(header/subtitle)!=''">
+ <h3><xsl:value-of select="header/subtitle"/></h3>
+ </xsl:if>
+<!--
+ <xsl:apply-templates select="header/type"/>
+ <xsl:apply-templates select="header/notice"/>
+ <xsl:apply-templates select="header/abstract"/>
+ <xsl:apply-templates select="body"/>
+
+ <div class="attribution">
+ <xsl:apply-templates select="header/authors"/>
+ <xsl:if test="header/authors and header/version">
+ <xsl:text>; </xsl:text>
+ </xsl:if>
+ <xsl:apply-templates select="header/version"/>
+ </div>
+ -->
+ <xsl:if test="header/abstract">
+ <div class="abstract">
+ <xsl:value-of select="header/abstract"/>
+ </div>
+ </xsl:if>
+
+ <xsl:apply-templates select="body"/>
+
+ <xsl:if test="header/authors">
+ <p align="right">
+ <font size="-2">
+ <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>
+ </font>
+ </p>
+ </xsl:if>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="body">
+ <div id="skinconf-toc-page"/>
+ <xsl:apply-templates/>
+ </xsl:template>
+
+
+ <xsl:template match="@id">
+ <xsl:apply-imports/>
+ </xsl:template>
+
+ <xsl:template match="section">
+ <a name="{generate-id()}"/>
+ <xsl:apply-templates select="@id"/>
+
+ <xsl:variable name = "level" select = "count(ancestor::section)+1" />
+
+ <xsl:choose>
+ <xsl:when test="$level=1">
+ <div class="skinconf-heading-{$level}">
+ <h1><xsl:value-of select="title"/></h1>
+ </div>
+ <div class="section">
+ <xsl:apply-templates select="*[not(self::title)]"/>
+ </div>
+ </xsl:when>
+ <xsl:when test="$level=2">
+ <div class="skinconf-heading-{$level}">
+ <h2><xsl:value-of select="title"/></h2>
+ </div>
+ <xsl:apply-templates select="*[not(self::title)]"/>
+ </xsl:when>
+ <!-- If a faq, answer sections will be level 3 (1=Q/A, 2=part) -->
+ <xsl:when test="$level=3 and $notoc='true'">
+ <h4 class="faq"><xsl:value-of select="title"/></h4>
+ <div align="right"><a href="#{@id}-menu">^</a></div>
+ <div style="margin-left: 15px">
+ <xsl:apply-templates select="*[not(self::title)]"/>
+ </div>
+ </xsl:when>
+ <xsl:when test="$level=3">
+ <h4><xsl:value-of select="title"/></h4>
+ <xsl:apply-templates select="*[not(self::title)]"/>
+
+ </xsl:when>
+
+ <xsl:otherwise>
+ <h5><xsl:value-of select="title"/></h5>
+ <xsl:apply-templates select="*[not(self::title)]"/>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </xsl:template>
+
+ <xsl:template match="figure">
+ <xsl:apply-templates select="@id"/>
+ <div style="text-align: center;" id="{@id}">
+ <img src="{@src}" alt="{@alt}" class="figure" id="{@id}">
+ <xsl:if test="@height">
+ <xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute>
+ </xsl:if>
+ <xsl:if test="@width">
+ <xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute>
+ </xsl:if>
+ </img>
+ </div>
+ </xsl:template>
+
+</xsl:stylesheet>
Propchange: forrest/trunk/main/webapp/skins/coat/xslt/html/document-to-html.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/main/webapp/skins/coat/xslt/html/site-to-xhtml.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/xslt/html/site-to-xhtml.xsl?rev=365303&view=auto
==============================================================================
--- forrest/trunk/main/webapp/skins/coat/xslt/html/site-to-xhtml.xsl (added)
+++ forrest/trunk/main/webapp/skins/coat/xslt/html/site-to-xhtml.xsl Sun Jan 1 22:55:22 2006
@@ -0,0 +1,709 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2005 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!--
+site2xhtml.xsl is the final stage in HTML page production. It merges HTML from
+document2html.xsl, tab2menu.xsl and book2menu.xsl, and adds the site header,
+footer, searchbar, css etc. As input, it takes XML of the form:
+
+<site>
+ <div class="menu">
+ ...
+ </div>
+ <div class="tab">
+ ...
+ </div>
+ <div class="content">
+ ...
+ </div>
+</site>
+
+-->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:i18n="http://apache.org/cocoon/i18n/2.1" exclude-result-prefixes="i18n">
+
+ <xsl:import href="../../../common/xslt/html/site-to-xhtml.xsl"/>
+<!--+
+ |Overall site template
+ +-->
+ <xsl:template match="site">
+ <!--html lang="en" xml:lang="en"-->
+ <html>
+<!--+
+ |HTML-head
+ +-->
+ <head>
+<!--+
+ |generator meta
+ +-->
+ <!-- Add some Forrest-specific metadata -->
+ <xsl:call-template name="html-meta"/>
+ <!-- Add any metadata from the documents -->
+ <xsl:call-template name="meta-data"/>
+<!--+
+ |title
+ +-->
+ <title>
+ <xsl:value-of select="div[@id='content']/h1"/>
+ <xsl:if test="$config/motd">
+ <xsl:for-each select="$config/motd/motd-option">
+ <xsl:if test="contains($path, @pattern)">
+ <xsl:if test="normalize-space(motd-title) != ''">
+ <xsl:text> (</xsl:text>
+ <xsl:value-of select="motd-title"/>
+ <xsl:text>)</xsl:text>
+ </xsl:if>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:if>
+ </title>
+<!--+
+ |stylesheets
+ +-->
+ <link rel="stylesheet" href="{$root}skin/basic.css" type="text/css"
+ />
+ <link rel="stylesheet" href="{$root}skin/screen.css"
+ type="text/css" media="screen" />
+ <link rel="stylesheet" href="{$root}skin/print.css" type="text/css"
+ media="print" />
+ <link rel="stylesheet" href="{$root}skin/profile.css"
+ type="text/css" />
+<!--+
+ |Javascripts
+ +-->
+ <!---
+ Collapsable menus
+
+ <script type="text/javascript" language="javascript"
+ src="{$root}skin/getBlank.js"></script>
+ <script type="text/javascript" language="javascript"
+ src="{$root}skin/getMenu.js"></script>
+ -->
+<!--+
+ |favicon
+ +-->
+ <xsl:if test="//skinconfig/favicon-url">
+ <link rel="shortcut icon">
+ <xsl:attribute name="href">
+ <xsl:value-of
+ select="concat($root,//skinconfig/favicon-url)"/>
+ </xsl:attribute>
+ </link>
+ </xsl:if>
+ </head>
+<!--+
+ |HTML-body
+ +-->
+ <body onload="init()">
+ <script type="text/javascript">ndeSetTextSize();</script>
+<!--+Site structure
+ +++++++++++++++++++++++++++
+ +=========================+
+ | topstrip |
+ +=========================+
+ | |
+ | centerstrip |
+ | |
+ | |
+ +=========================+
+ | bottomstrip |
+ +=========================+
+ +++++++++++++++++++++++++++
+ +-->
+<!--+
+ |topstrip with logos and search box
+ +-->
+ <div id="top">
+<!--breadcrumbs org location-->
+<xsl:comment>+
+ |header
+ +</xsl:comment>
+ <div class="header">
+<xsl:comment>+
+ |start group logo
+ +</xsl:comment>
+ <xsl:if test="$config/group-url">
+ <div class="grouplogo">
+ <xsl:call-template name="renderlogo">
+ <xsl:with-param name="name" select="$config/group-name"/>
+ <xsl:with-param name="url" select="$config/group-url"/>
+ <xsl:with-param name="logo" select="$config/group-logo"/>
+ <xsl:with-param name="root" select="$root"/>
+ <xsl:with-param name="description" select="$config/group-description"/>
+ </xsl:call-template>
+ </div>
+ </xsl:if>
+<xsl:comment>+
+ |end group logo
+ +</xsl:comment>
+<xsl:comment>+
+ |start Project Logo
+ +</xsl:comment>
+ <xsl:variable name="xtest">
+ <xsl:choose>
+ <xsl:when
+ test="$config/group-url and $config/search and not($config/search/@box-location = 'alt')">
+ <xsl:text>true</xsl:text></xsl:when>
+ <xsl:otherwise><xsl:text>false</xsl:text></xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <div class="projectlogo">
+ <xsl:if test="$xtest='false'" >
+ <xsl:attribute name="class">
+ <xsl:text>projectlogoA1</xsl:text>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:call-template name="renderlogo">
+ <xsl:with-param name="name" select="$config/project-name"/>
+ <xsl:with-param name="url" select="$config/project-url"/>
+ <xsl:with-param name="logo" select="$config/project-logo"/>
+ <xsl:with-param name="root" select="$root"/>
+ <xsl:with-param name="description" select="$config/project-description"/>
+ </xsl:call-template>
+ </div>
+<xsl:comment>+
+ |end Project Logo
+ +</xsl:comment>
+
+ <xsl:if
+ test="$config/search and not($config/search/@box-location = 'alt')">
+<xsl:comment>+
+ |start Search
+ +</xsl:comment>
+ <div class="searchbox">
+ <xsl:variable name="search-prompt">
+ <i18n:text>Search the site with</i18n:text>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="$config/search/@provider"/>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$config/search/@provider = 'lucene'">
+ <!-- Lucene search -->
+ <form method="get" action="{$root}{$lucene-search}">
+ <input type="text" id="query" name="queryString" size="25" onFocus="getBlank (this, '{$search-prompt}');">
+ <xsl:attribute name="value"><xsl:value-of select="$search-prompt"/></xsl:attribute>
+ </input> 
+ <input type="submit" value="Search" name="Search" i18n:attr="value"/>
+ </form>
+ </xsl:when>
+ <xsl:otherwise>
+ <form class="roundtopsmall" method="get" action="http://www.google.com/search">
+ <input type="hidden" name="sitesearch" value="{$config/search/@domain}"/>
+ <input type="text" id="query" name="q" size="25" onFocus="getBlank (this, '{$search-prompt}');">
+ <xsl:attribute name="value"><xsl:value-of select="$search-prompt"/></xsl:attribute>
+ </input> 
+ <input type="submit" value="Search" name="Search" i18n:attr="value"/> </form>
+ </xsl:otherwise>
+</xsl:choose>
+ <!--div id="roundbottomsmall">
+ <img
+ src="{$skin-img-dir}/rc-b-l-5-1body-2menu-3menu.png"
+ alt="" width="5" height="5" class="cornersmall"
+ style="display: none" />
+ </div-->
+ </div>
+<xsl:comment>+
+ |end search
+ +</xsl:comment>
+ </xsl:if>
+ </div>
+ </div>
+<!--+
+ |centerstrip with menu and mainarea
+ +-->
+ <div id="main">
+<xsl:comment>+
+ |start Menu, mainarea
+ +</xsl:comment>
+ <xsl:if test="div[@id='menu']/ul/li">
+ <xsl:call-template name="menu"/>
+ </xsl:if>
+<xsl:comment>+
+ |start content
+ +</xsl:comment>
+ <xsl:apply-templates select="div[@id='content']"/>
+<xsl:comment>+
+ |end content
+ +</xsl:comment>
+ <div class="clearboth"> </div>
+
+ </div>
+<!--+
+ |bottomstrip with footer
+ +-->
+ <div id="footer">
+<xsl:comment>+
+ |start bottomstrip
+ +</xsl:comment>
+ <xsl:if test="not($config/disable-copyright-footer = 'true')">
+ <div class="copyright">
+ Copyright ©
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="$config/year"/>
+ <xsl:text> </xsl:text>
+ <xsl:choose>
+ <xsl:when test="$config/copyright-link">
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="$config/copyright-link"/>
+ </xsl:attribute>
+ <xsl:value-of select="$config/vendor"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$config/vendor"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ </xsl:if>
+
+ <xsl:if test="$filename = 'index.html'">
+ <div id="logos" >
+ <xsl:if test="$config/disable-compliance-links/@align">
+ <xsl:attribute name="style">text-align: <xsl:value-of select="$config/disable-compliance-links/@align"/></xsl:attribute>
+ </xsl:if>
+ <!-- W3C logos style="text-align: center;"-->
+ <xsl:call-template name="compliancy-logos"/>
+ <xsl:if test="$filename = 'index.html' and $config/credits">
+ <xsl:for-each select="$config/credits/credit[not(@role='pdf')]">
+ <xsl:if test="not(@box-location = 'alt') and not(@box-location = 'alt2')">
+ <xsl:variable name="name" select="name"/>
+ <xsl:variable name="url" select="url"/>
+ <xsl:variable name="image" select="image"/>
+ <xsl:variable name="width" select="width"/>
+ <xsl:variable name="height" select="height"/>
+ <a href="{$url}">
+ <img alt="{$name} - logo" title="{$name}" border="0">
+ <xsl:attribute name="src">
+ <xsl:if test="not(starts-with($image, 'http://'))"><xsl:value-of select="$root"/></xsl:if>
+ <xsl:value-of select="$image"/>
+ </xsl:attribute>
+ <xsl:attribute name="style">
+ <xsl:if test="$width">width: <xsl:value-of select="$width"/>px;</xsl:if>
+ <xsl:if test="$height">height: <xsl:value-of select="$height"/>px;</xsl:if>
+ </xsl:attribute>
+ </img>
+ </a>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:if>
+ </div>
+ </xsl:if>
+ <xsl:if test="$config/host-logo and not($config/host-logo = '')">
+ <div class="host">
+ <xsl:call-template name="renderlogo">
+ <xsl:with-param name="name" select="$config/host-name"/>
+ <xsl:with-param name="url" select="$config/host-url"/>
+ <xsl:with-param name="logo" select="$config/host-logo"/>
+ <xsl:with-param name="root" select="$root"/>
+ </xsl:call-template>
+ </div>
+ </xsl:if>
+ <xsl:if test="$config/feedback">
+ <xsl:call-template name="feedback"/>
+ </xsl:if>
+<xsl:comment>+
+ |end bottomstrip
+ +</xsl:comment>
+ </div>
+
+
+ </body>
+ </html>
+ </xsl:template>
+
+ <!--headings-->
+<xsl:template match="div[@class = 'skinconf-heading-1']">
+ <xsl:choose>
+ <xsl:when test="//skinconfig/headings/@type='underlined'">
+ <h2 class="underlined_10"><xsl:value-of select="h1"/></h2>
+ </xsl:when>
+ <xsl:when test="//skinconfig/headings/@type='boxed'">
+ <h2 class="boxed"><xsl:value-of select="h1"/></h2>
+ </xsl:when>
+ <xsl:otherwise>
+ <h2 class="h3"><xsl:value-of select="h1"/></h2>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="div[@class = 'skinconf-heading-2']">
+ <xsl:choose>
+ <xsl:when test="//skinconfig/headings/@type='underlined'">
+ <h3 class="underlined_5"><xsl:value-of select="h2"/></h3>
+ </xsl:when>
+ <xsl:when test="//skinconfig/headings/@type='boxed'">
+ <h3 class="boxed"><xsl:value-of select="h2"/></h3>
+ </xsl:when>
+ <xsl:otherwise>
+ <h3 class="h4"><xsl:value-of select="h2"/></h3>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+ <!-- Add links to any standards-compliance logos -->
+ <xsl:template name="compliancy-logos">
+ <xsl:if test="$filename = 'index.html' and $config/disable-compliance-links = 'false'">
+ <a href="http://validator.w3.org/check/referer"><img class="logoImage"
+ src="{$skin-img-dir}/valid-html401.png"
+ alt="Valid HTML 4.01!" title="Valid HTML 4.01!" style="height: 31px; width: 88px;" /></a>
+
+ <a href="http://jigsaw.w3.org/css-validator/check/referer"><img class="logoImage"
+ src="{$skin-img-dir}/vcss.png"
+ alt="Valid CSS!" title="Valid CSS!" style="height: 31px; width: 88px;"/></a>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template name="menu">
+<xsl:comment>+
+ |start Menu
+ +</xsl:comment>
+ <div id="menu">
+<!--menu - inner-->
+ <xsl:for-each select = "div[@id='menu']/ul/li">
+ <xsl:call-template name = "innermenuli" >
+ <xsl:with-param name="id" select="concat('1.', position())"/>
+ </xsl:call-template>
+ </xsl:for-each>
+ <!--
+ <xsl:apply-templates select="div[@id='menu']/*" />
+ -->
+
+<!-- Search box: alternative location -->
+ <xsl:if
+ test="$config/search and $config/search/@box-location='alt'">
+<xsl:comment>+
+ |start Search
+ +</xsl:comment>
+ <div class="searchbox">
+ <hr />
+ <xsl:variable name="search-prompt">
+ <i18n:text>Search the site with</i18n:text>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="$config/search/@provider"/>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$config/search/@provider = 'lucene'">
+ <!-- Lucene search -->
+ <form method="get" action="{$root}{$lucene-search}">
+ <input type="text" id="query" name="queryString" size="18" onFocus="getBlank (this, '{$search-prompt}');">
+ <xsl:attribute name="value"><xsl:value-of select="$search-prompt"/></xsl:attribute>
+ </input> 
+ <input type="submit" value="Search" name="Search" i18n:attr="value"/>
+ </form>
+ </xsl:when>
+ <xsl:otherwise>
+ <form method="get" action="http://www.google.com/search">
+ <input type="hidden" name="sitesearch" value="{$config/search/@domain}"/>
+ <input type="text" id="query" name="q" size="18" onFocus="getBlank (this, '{$search-prompt}');">
+ <xsl:attribute name="value"><xsl:value-of select="$search-prompt"/></xsl:attribute>
+ </input> 
+ <input type="submit" value="Search" name="Search" i18n:attr="value"/>
+ </form>
+ </xsl:otherwise>
+</xsl:choose>
+ </div>
+<xsl:comment>+
+ |end search
+ +</xsl:comment>
+ </xsl:if>
+
+<!--credits in alternative location-->
+ <div id="credit">
+ <xsl:if test="$filename = 'index.html' and $config/credits and ($config/credits/credit/@box-location = 'alt')">
+ <hr />
+ <xsl:for-each select="$config/credits/credit[not(@role='pdf')]">
+ <xsl:if test="@box-location = 'alt'">
+ <xsl:variable name="name" select="name"/>
+ <xsl:variable name="url" select="url"/>
+ <xsl:variable name="image" select="image"/>
+ <xsl:variable name="width" select="width"/>
+ <xsl:variable name="height" select="height"/>
+ <a href="{$url}">
+ <img alt="{$name} - logo" title="{$name}" border="0">
+ <xsl:attribute name="src">
+ <xsl:if test="not(starts-with($image, 'http://'))"><xsl:value-of select="$root"/></xsl:if>
+ <xsl:value-of select="$image"/>
+ </xsl:attribute>
+ <xsl:attribute name="style">
+ <xsl:if test="$width">width: <xsl:value-of select="$width"/>px;</xsl:if>
+ <xsl:if test="$height">height: <xsl:value-of select="$height"/>px;</xsl:if>
+ </xsl:attribute>
+ </img>
+ </a>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:if>
+
+<!-- Message of the day -->
+ <xsl:if test="$config/motd">
+ <xsl:for-each select="$config/motd/motd-option">
+ <xsl:if test="contains($path, @pattern)">
+ <xsl:if test="motd-page/@location='alt' or motd-page/@location='both'">
+ <hr />
+ <xsl:value-of select="motd-page"/>
+ <xsl:if test="motd-page-url">
+ <xsl:text> (</xsl:text>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="motd-page-url"/>
+ </xsl:attribute>
+ <xsl:text>More</xsl:text>
+ </a>
+ <xsl:text>)</xsl:text>
+ </xsl:if>
+ </xsl:if>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:if>
+ </div>
+
+ <div id="roundbottom">
+ <img
+ src="{$skin-img-dir}/rc-b-l-15-1body-2menu-3menu.png"
+ alt="" width="15" height="15" class="corner"
+ style="display: none" />
+ </div>
+
+<!--credits in alternative location #2-->
+ <xsl:comment>+
+ |alternative credits
+ +</xsl:comment>
+
+ <div id="credit2">
+ <xsl:if test="$config/credits and ($config/credits/credit/@box-location = 'alt2')">
+ <xsl:for-each select="$config/credits/credit[not(@role='pdf')]">
+ <xsl:if test="@box-location = 'alt2'">
+ <xsl:variable name="name" select="name"/>
+ <xsl:variable name="url" select="url"/>
+ <xsl:variable name="image" select="image"/>
+ <xsl:variable name="width" select="width"/>
+ <xsl:variable name="height" select="height"/>
+ <a href="{$url}">
+ <img alt="{$name} - logo" title="{$name}" border="0">
+ <xsl:attribute name="src">
+ <xsl:if test="not(starts-with($image, 'http://'))"><xsl:value-of select="$root"/></xsl:if>
+ <xsl:value-of select="$image"/>
+ </xsl:attribute>
+ <xsl:attribute name="style">
+ <xsl:if test="$width">width: <xsl:value-of select="$width"/>px;</xsl:if>
+ <xsl:if test="$height">height: <xsl:value-of select="$height"/>px;</xsl:if>
+ </xsl:attribute>
+ </img>
+ </a>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:if>
+ </div>
+ </div>
+<xsl:comment>+
+ |end Menu
+ +</xsl:comment>
+ </xsl:template>
+
+ <xsl:template name="innermenuli">
+ <xsl:param name="id"/>
+ <xsl:variable name="tagid">
+ <xsl:choose>
+ <xsl:when test="descendant-or-self::node()/li/div/@class='current'"><xsl:value-of select="concat('menu_selected_',$id)"/></xsl:when>
+ <xsl:otherwise><xsl:value-of select="concat('menu_',concat(font,$id))"/></xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="whichGroup">
+ <xsl:choose>
+ <xsl:when test="descendant-or-self::node()/li/div/@class='current'">selectedmenuitemgroup</xsl:when>
+ <xsl:otherwise>menuitemgroup</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <div class="menutitle" id="{$tagid}Title"
+ onclick="SwitchMenu('{$tagid}', '{$root}skin/')">
+ <xsl:if test="contains($tagid, '_selected_')" >
+ <xsl:attribute name="style">
+ <xsl:text>background-image: url('</xsl:text>
+ <xsl:value-of select="$root"/>
+ <xsl:text>skin/images/chapter_open.gif');</xsl:text>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:value-of select="h1"/>
+ </div>
+ <div class="{$whichGroup}" id="{$tagid}">
+ <xsl:if test="contains($tagid, '_selected_')" >
+ <xsl:attribute name="style">
+ <xsl:text>display: block;</xsl:text>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:for-each select= "ul/li">
+
+ <xsl:choose>
+ <xsl:when test="a">
+ <div class="menuitem">
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="a/@href"/>
+ </xsl:attribute>
+ <xsl:if test="a/@title!=''">
+ <xsl:attribute name="title">
+ <xsl:value-of select="a/@title"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:value-of select="a"/>
+ </a>
+ </div>
+ </xsl:when>
+ <xsl:when test="div/@class='current'">
+ <div class="menupage">
+ <div class="menupagetitle"><xsl:value-of select="div" /></div>
+ <xsl:if test="$config/toc/@max-depth > 0
+ and contains($minitoc-location,'menu')
+ and count(//tocitems/tocitem) >= $config/toc/@min-sections">
+ <div class="menupageitemgroup">
+ <xsl:for-each select = "//tocitems/tocitem">
+ <div class="menupageitem">
+ <xsl:choose>
+ <xsl:when test="string-length(@title)>15">
+ <a href="{@href}" title="{@title}"><xsl:value-of select="substring(@title,0,20)" />...</a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{@href}"><xsl:value-of select="@title" /></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ </xsl:for-each>
+ </div>
+ </xsl:if>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name = "innermenuli">
+ <xsl:with-param name="id" select="concat($id, '.', position())"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </xsl:for-each>
+ </div>
+ </xsl:template>
+
+<!--+
+ |Generates the PDF link
+ +-->
+ <xsl:template match="div[@id='skinconf-pdflink']">
+ <xsl:if test="not($config/disable-pdf-link) or $disable-pdf-link = 'false'">
+ <div class="pdflink" title="Portable Document Format"><a href="{$filename-noext}.pdf" class="dida">
+ <img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF -icon" /><br/>
+ PDF</a>
+ </div>
+ </xsl:if>
+ </xsl:template>
+ <xsl:template match="div[@id='skinconf-xmllink']">
+ <xsl:if test="not($config/disable-xml-link) or $disable-xml-link = 'false'">
+ <div class="xmllink" title="raw XML"><a href="{$filename-noext}.xml" class="dida">
+ <img class="skin" src="{$skin-img-dir}/xmldoc.gif" alt="XML - icon" /><br/>
+ XML</a>
+ </div>
+ </xsl:if>
+ </xsl:template>
+ <xsl:template match="div[@id='skinconf-txtlink']">
+ <xsl:if test="not($config/disable-txt-link) or $disable-txt-link = 'false'">
+ <div class="podlink" title="Plain Text Documentation"><a href="{$filename-noext}.txt" class="dida">
+ <img class="skin" src="{$skin-img-dir}/txtdoc.png" alt="TXT - icon" /><br/>
+ TXT</a>
+ </div>
+ </xsl:if>
+ </xsl:template>
+ <xsl:template match="div[@id='skinconf-podlink']">
+ <xsl:if test="not($config/disable-pod-link) or $disable-pod-link = 'false'">
+ <div class="podlink" title="Plain Old Documentation"><a href="{$filename-noext}.pod" class="dida">
+ <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD - icon" /><br/>
+ POD</a>
+ </div>
+ </xsl:if>
+ </xsl:template>
+ <xsl:template match="div[@id='skinconf-printlink']">
+ <xsl:if test="not($config/disable-print-link) or $disable-print-link = 'false'">
+ <script type="text/javascript" language="Javascript">
+function printit() {
+ if (window.print) {
+ window.focus();
+ window.print();
+ }
+}
+ </script>
+
+ <script type="text/javascript" language="Javascript">
+var NS = (navigator.appName == "Netscape");
+var VERSION = parseInt(navigator.appVersion);
+if (VERSION > 3) {
+ document.write('<div class="printlink" title="Print this Page">');
+ document.write(' <a href="javascript:printit()" class="dida">');
+ document.write(' <img class="skin" src="{$skin-img-dir}/printer.gif" alt="print - icon" />');
+ document.write(' <br />');
+ document.write(' PRINT</a>');
+ document.write('</div>');
+}
+ </script>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="div[@id='disable-font-script']">
+ <xsl:if test="$disable-font-script = 'false'">
+ <div class="trail">
+ <i18n:text >Font size:</i18n:text>
+  <input type="button" onclick="ndeSetTextSize('reset'); return false;" title="Reset text" class="resetfont" value="Reset"/>
+  <input type="button" onclick="ndeSetTextSize('decr'); return false;" title="Shrink text" class="smallerfont" value="-a"/>
+  <input type="button" onclick="ndeSetTextSize('incr'); return false;" title="Enlarge text" class="biggerfont" value="+a"/>
+ </div>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="div[@id='skinconf-toc-page']">
+ <xsl:if test="$config/motd">
+ <xsl:for-each select="$config/motd/motd-option">
+ <xsl:if test="contains($path, @pattern)">
+ <xsl:if test="motd-page/@location='page' or motd-page/@location='both'">
+ <div id="motd-area">
+ <xsl:value-of select="motd-page"/>
+ <xsl:if test="motd-page-url">
+ <xsl:text> (</xsl:text>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="motd-page-url"/>
+ </xsl:attribute>
+ <xsl:text>More</xsl:text>
+ </a>
+ <xsl:text>)</xsl:text>
+ </xsl:if>
+ </div>
+ </xsl:if>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:if>
+
+ <xsl:if test="$config/toc">
+ <xsl:if test="contains($minitoc-location,'page')">
+ <xsl:if test="count(//tocitems/tocitem) >= $config/toc/@min-sections">
+ <div id="minitoc-area">
+ <xsl:call-template name="minitoc">
+ <xsl:with-param name="tocroot" select="//tocitems"/>
+ </xsl:call-template>
+ </div>
+ </xsl:if>
+ </xsl:if>
+ </xsl:if>
+ </xsl:template>
+</xsl:stylesheet>
Propchange: forrest/trunk/main/webapp/skins/coat/xslt/html/site-to-xhtml.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added: forrest/trunk/main/webapp/skins/coat/xslt/html/tab-to-menu.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/coat/xslt/html/tab-to-menu.xsl?rev=365303&view=auto
==============================================================================
--- forrest/trunk/main/webapp/skins/coat/xslt/html/tab-to-menu.xsl (added)
+++ forrest/trunk/main/webapp/skins/coat/xslt/html/tab-to-menu.xsl Sun Jan 1 22:55:22 2006
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2005 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!--
+This stylesheet generates 'tabs' at the top left of the screen. Tabs are
+visual indicators that a certain subsection of the URI space is being browsed.
+For example, if we had tabs with paths:
+
+Tab1: ''
+Tab2: 'community'
+Tab3: 'community/howto'
+Tab4: 'community/howto/form/index.html'
+
+Then if the current path was 'community/howto/foo', Tab3 would be highlighted.
+The rule is: the tab with the longest path that forms a prefix of the current
+path is enabled.
+
+The output of this stylesheet is HTML of the form:
+ <div class="tab">
+ ...
+ </div>
+
+which is then merged by site2xhtml.xsl
+
+-->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:import href="../../../common/xslt/html/tab-to-menu.xsl"/>
+
+ <xsl:template match="tabs">
+ <ul id="tabs">
+ <xsl:call-template name="base-tabs"/>
+ </ul>
+ <xsl:if test="tab[@dir=$longest-dir]/tab">
+ <span id="level2tabs">
+ <xsl:call-template name="level2tabs"/>
+ </span>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template name="pre-separator">
+ </xsl:template>
+
+ <xsl:template name="post-separator">
+ </xsl:template>
+
+ <xsl:template name="separator">
+ </xsl:template>
+
+ <xsl:template name="selected">
+ <li class="current"><xsl:call-template name="base-selected"/></li>
+ </xsl:template>
+
+ <xsl:template name="not-selected">
+ <li><xsl:call-template name="base-not-selected"/></li>
+ </xsl:template>
+
+ <xsl:template name="level2-not-selected">
+ <xsl:call-template name="base-not-selected"/>
+ </xsl:template>
+
+ <xsl:template name="level2-selected">
+ <xsl:call-template name="base-selected"/>
+ </xsl:template>
+</xsl:stylesheet>
Propchange: forrest/trunk/main/webapp/skins/coat/xslt/html/tab-to-menu.xsl
------------------------------------------------------------------------------
svn:eol-style = native