Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 47379 invoked by uid 500); 3 Jun 2003 12:17:39 -0000 Mailing-List: contact forrest-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-cvs@xml.apache.org Received: (qmail 47304 invoked from network); 3 Jun 2003 12:17:38 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 3 Jun 2003 12:17:38 -0000 Received: (qmail 48955 invoked by uid 1352); 3 Jun 2003 12:17:38 -0000 Date: 3 Jun 2003 12:17:38 -0000 Message-ID: <20030603121738.48954.qmail@icarus.apache.org> From: jefft@apache.org To: xml-forrest-cvs@apache.org Subject: cvs commit: xml-forrest/src/resources/skins/forrest-css/xslt/html book2menu.xsl document2html.xsl site2xhtml.xsl tab2menu.xsl X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N jefft 2003/06/03 05:17:38 Added: src/resources/skins/forrest-css/css page.css src/resources/skins/forrest-css/images bottom-left.png bottom-right.png chapter.gif chapter_open.gif content-bg.gif current.gif icon_doc_lrg.gif icon_doc_sml.gif icon_error_lrg.gif icon_error_sml.gif icon_folder_lrg.gif icon_folder_sml.gif icon_help_sml.gif icon_info_lrg.gif icon_info_sml.gif icon_success_lrg.gif icon_success_sml.gif icon_warning_lrg.gif icon_warning_sml.gif label.gif nav-bottom.png navbullet-selected.png navbullet.png page.gif pdfdoc.gif printer.gif printer.png search-bottom.png singlepage.gif spacer.gif tab-top.png top-left.png top-right.png valid-html401.png vcss.png xmldoc.gif src/resources/skins/forrest-css/scripts breadcrumbs-optimized.js breadcrumbs.js src/resources/skins/forrest-css/xslt/fo document2fo.xsl src/resources/skins/forrest-css/xslt/html book2menu.xsl document2html.xsl site2xhtml.xsl tab2menu.xsl Log: CSS version of forrest-site skin. Thanks to Tom Klaasen for creating it, and Miles Elam for the CSS/HTML design. Revision Changes Path 1.1 xml-forrest/src/resources/skins/forrest-css/css/page.css Index: page.css =================================================================== /* Apache Forrest CSS */ body { background-color: white; font-family: arial, helvetica, sans-serif; margin: 0px; padding: 0px; } form { padding: 0px; margin: 0px; } a:link { color: #0F3660; } a:visited { color: #009999; } a:active { color: #000066; } a:hover { color: #000066; } .textonly { display: none; } #toplinks { background-color: #CDDEEE; font-size: 80%; margin: 0px; min-height: 18px; padding-bottom: 0.2em; padding-top: 2px; padding-left: 5px; } body>#toplinks { padding-bottom: 0em; } #quicklinks { display: none; } #mainheader { background-color: #294563; border-top: 2px solid #4A6D8B; border-bottom: 0.6em solid #4A6D8B; text-align: center; } #grouplogolink { display: block; left: 0px; position: absolute; top: 18px; width: 220px; } #grouplogolink/* Hide from Mac IE 5 */ { display: inline; float: left; left: auto; position: relative; top: auto; width: auto; } #grouplogo { border: 0px; } #projectlogo { border: 0px; margin-bottom: 1.5em; } #search { background: #4A6D8B url('images/search-bottom.png') no-repeat bottom left; border: 0px; display: block; margin: 0px; padding: 10px; padding-right: 0px; position: absolute; right: 10px; text-align: left; width: 190px; top: 22px; voice-family: "\"}\""; voice-family: inherit; top: 18px; } #mainheader>#search/* Hide from Mac IE 5 */ { float: right; margin-right: 10px; min-width: 170px; padding-right: 10px; position: static; right: auto; top: auto; width: auto; } #search * { font-size: 70%; } .searchtext { color: white; display: block; font-size: 100%; } .query { width: 10em; } .content { background: white url('images/content-bg.gif') repeat-x top; padding-bottom: 2em; padding-left: 14em; padding-right: 10px; padding-top: 30px; voice-family: "\"}\""; voice-family: inherit; padding-left: 13.5em; } body>.content { /* Be nice to Opera */ padding-left: 13.5em; } .content * { position: relative; z-index: 2; } #printable { display: block; font-size: 70%; float: right; text-align: center; } #printable img { border: 0px; display: block; } #printable>img/* Hide from Mac IE 5.x */ { display: inline; } #nav { xbackground: url('images/nav-bottom.png') no-repeat bottom right; left: 10px; padding-bottom: 10px; padding-top: 10px; position: absolute; top: 71px; z-index: 1; } #nav/* Hide from Mac IE 5.x */ { top: 78px; } #categories { border-bottom: 10px solid #4A6B8D; font-size: 80%; height: 2.15em; margin: 0px; padding: 0px; position: relative; z-index: 1; } .category { display: block; float: left; margin: 0em; margin-right: 0.3em; min-width: 65px; padding: 0.2em; padding-left: 0.5em; text-align: center; width: 5.25em; } .category/* Hide from Mac IE 5.x */ { padding-left: 0em; padding-right: 0em; } span.category { background: #4A6D8B url('images/tab-top.png') no-repeat top left; color: white; font-weight: bold; padding-bottom: 0.5em; padding-top: 0.5em; } a.category { background: #B4C6E6 url('images/tab-top.png') no-repeat top left; font-weight: normal; padding-top: 0.25em; margin-top: 0.5em; } .navsection { background: #4A6D8B; border-left: 1px solid #294462; border-right: 1px solid #294462; display: block; font-size: 90%; margin: 0px; padding-bottom: 0.9em; padding-left: 1.5em; width: 13.6em; voice-family: "\"}\""; voice-family: inherit; width: 11em; } #nav>.navsection { /* Be nice to Opera */ width: 11em; } .navsectionheader { color: #CDDEEE; font-size: 90%; margin: 0px; } .navsectionheader/* Hide from Mac IE 5.x */ { font-size: 100%; } .navitem { display: block; margin-left: 5px; padding-left: 15px; } .navsection>.navitem { display: list-item; margin-left: 20px; padding-left: 0px; } span.navitem { background: url('images/navbullet-selected.png') no-repeat center left; color: #FFCC00; } .navsection>span.navitem { background: inherit; list-style-type: disc; } a.navitem { background: url('images/navbullet.png') no-repeat center left; color: white; list-style-type: circle; text-decoration: none; } .navsection>a.navitem { background: inherit; list-style-type: circle; } a.navitem:visited { color: white; } a.navitem:hover { background: url('images/navbullet-selected.png') no-repeat center left; color: #FFCC00; } .navsection>a.navitem:hover { background: inherit; list-style-type: disc; } #footer { background-color: #CDDEEE; border-top: 1px solid #294462; font-size: 80%; padding-bottom: 5px; text-align: center; } #revision:before { content: " -- " } #validation { display: block; margin-top: 5px; } #validation img { border: 0px; } .extratab { display: none; } .author { text-align: right; font-size: x-small; font-style: italic; } .note, .warning, .fixme { border-top: 3px solid #900; border-bottom: 3px solid #900; border-left: 3px solid #900; border-right: 3px solid #900; background-image: url(images/icon_error_lrg.gif); background-repeat: no-repeat; background-position: 0 1.33em; margin: 1.33em 0; padding: .33em 0 .67em 36px; min-height: 32px; } .fixme { background-image: url(images/icon_warning_lrg.gif); border-color: #c60; } .note { background-image: url(images/icon_info_lrg.gif); border-color: #069; } .codefrag { font-family: courier; } @media print { body, html { background-color: white; } acronym, abbr { border: 0px; } a { color: black !important; text-decoration: none; } p a:after { content: "(" attr(href) ")"; } p abbr:after, p acronym:after { content: "(" attr(title) ")"; } #nav { display: none; } #printable { display: none; } .content { background: white; padding: 0em !important; } #search { display: none; } #toplinks { display: none; } #footer { background: white; } #validation { display: none; } } 1.1 xml-forrest/src/resources/skins/forrest-css/images/bottom-left.png <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/bottom-right.png <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/chapter.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/chapter_open.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/content-bg.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/current.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/icon_doc_lrg.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/icon_doc_sml.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/icon_error_lrg.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/icon_error_sml.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/icon_folder_lrg.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/icon_folder_sml.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/icon_help_sml.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/icon_info_lrg.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/icon_info_sml.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/icon_success_lrg.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/icon_success_sml.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/icon_warning_lrg.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/icon_warning_sml.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/label.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/nav-bottom.png <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/navbullet-selected.png <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/navbullet.png <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/page.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/pdfdoc.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/printer.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/printer.png <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/search-bottom.png <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/singlepage.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/spacer.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/tab-top.png <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/top-left.png <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/top-right.png <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/valid-html401.png <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/vcss.png <> 1.1 xml-forrest/src/resources/skins/forrest-css/images/xmldoc.gif <> 1.1 xml-forrest/src/resources/skins/forrest-css/scripts/breadcrumbs-optimized.js Index: breadcrumbs-optimized.js =================================================================== var PREPREND_CRUMBS=new Array(); PREPREND_CRUMBS.push(new Array("Apache","http://www.apache.org/")); PREPREND_CRUMBS.push(new Array("Jakarta","http://jakarta.apache.org/")); var DISPLAY_SEPARATOR=" > "; var DISPLAY_PREPREND=""; var DISPLAY_POSTPREND=":"; var CSS_CLASS_CRUMB="breadcrumb"; var CSS_CLASS_TRAIL="breadcrumbTrail"; var CSS_CLASS_SEPARATOR="crumbSeparator"; var FILE_EXTENSIONS=new Array( ".html", ".htm", ".jsp", ".php", ".php3", ".php4" ); var PATH_SEPARATOR="/"; function sc(s) { var l=s.toLowerCase(); return l.substr(0,1).toUpperCase()+l.substr(1); } function getdirs() { var t=document.location.pathname.split(PATH_SEPARATOR); var lc=t[t.length-1]; for(var i=0;i < FILE_EXTENSIONS.length;i++) { if(lc.indexOf(FILE_EXTENSIONS[i])) return t.slice(1,t.length-1); } return t.slice(1,t.length); } function getcrumbs( d ) { var pre = "/"; var post = "/"; var c = new Array(); if( d != null ) { for(var i=0;i < d.length;i++) { pre+=d[i]+postfix; c.push(new Array(d[i],pre)); } } if(PREPREND_CRUMBS.length > 0 ) return PREPREND_CRUMBS.concat( c ); return c; } function gettrail( c ) { var h=DISPLAY_PREPREND; for(var i=0;i < c.length;i++) { h+=''+sc(c[i][0])+''; if(i!=(c.length-1)) h+=DISPLAY_SEPARATOR; } return h+DISPLAY_POSTPREND; } function gettrailXHTML( c ) { var h=''+DISPLAY_PREPREND; for(var i=0;i < c.length;i++) { h+=''+sc(c[i][0])+''; if(i!=(c.length-1)) h+=''+DISPLAY_SEPARATOR+''; } return h+DISPLAY_POSTPREND+''; } if(document.location.href.toLowerCase().indexOf("http://")==-1) document.write(gettrail(getcrumbs())); else document.write(gettrail(getcrumbs(getdirs()))); 1.1 xml-forrest/src/resources/skins/forrest-css/scripts/breadcrumbs.js Index: breadcrumbs.js =================================================================== /* ============================================================================ The Apache Software License, Version 1.1 ============================================================================ Copyright (C) @skinconfig.year@ The Apache Software Foundation. All rights reserved. Redistribution and use in source and binary forms, with or without modifica- tion, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The end-user documentation included with the redistribution, if any, must include the following acknowledgment: "This product includes software developed by the Apache Software Foundation (http://www.apache.org/)." Alternately, this acknowledgment may appear in the software itself, if and wherever such third-party acknowledgments normally appear. 4. The names "Apache Forrest" and "Apache Software Foundation" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact apache@apache.org. 5. Products derived from this software may not be called "Apache", nor may "Apache" appear in their name, without prior written permission of the Apache Software Foundation. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU- DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This software consists of voluntary contributions made by many individuals on behalf of the Apache Software Foundation. For more information on the Apache Software Foundation, please see . */ /** * This script, when included in a html file, builds a neat breadcrumb trail * based on its url. That is, if it doesn't contains bugs (I'm relatively * sure it does). * * Typical usage: * * *@author Leo Simons (main author) *@author Nicola Ken Barozzi (integration in skin) *@created July 12, 2002 *@version 1.0 */ /* ======================================================================== CONSTANTS ======================================================================== */ /** * Two-dimensional array containing extra crumbs to place at the front of * the trail. Specify first the name of the crumb, then the URI that belongs * to it. You'll need to modify this for every domain or subdomain where * you use this script (you can leave it as an empty array if you wish) */ var PREPREND_CRUMBS = new Array(); if(!("@skinconfig.trail.link1.name@"=="")){ PREPREND_CRUMBS.push( new Array( "@skinconfig.trail.link1.name@", "@skinconfig.trail.link1.href@" ) ); } if(!("@skinconfig.trail.link2.name@"=="")){ PREPREND_CRUMBS.push( new Array( "@skinconfig.trail.link2.name@", "@skinconfig.trail.link2.href@" ) ); } if(!("@skinconfig.trail.link3.name@"=="")){ PREPREND_CRUMBS.push( new Array( "@skinconfig.trail.link3.name@", "@skinconfig.trail.link3.href@" ) ); } /** * String to include between crumbs: */ var DISPLAY_SEPARATOR = " > "; /** * String to include at the beginning of the trail */ var DISPLAY_PREPREND = ""; /** * String to include at the end of the trail */ var DISPLAY_POSTPREND = ""; /** * CSS Class to use for a single crumb: */ var CSS_CLASS_CRUMB = "breadcrumb"; /** * CSS Class to use for the complete trail: */ var CSS_CLASS_TRAIL = "breadcrumbTrail"; /** * CSS Class to use for crumb separator: */ var CSS_CLASS_SEPARATOR = "crumbSeparator"; /** * Array of strings containing common file extensions. We use this to * determine what part of the url to ignore (if it contains one of the * string specified here, we ignore it). */ var FILE_EXTENSIONS = new Array( ".html", ".htm", ".jsp", ".php", ".php3", ".php4" ); /** * String that separates parts of the breadcrumb trail from each other. * When this is no longer a slash, I'm sure I'll be old and grey. */ var PATH_SEPARATOR = "/"; /* ======================================================================== UTILITY FUNCTIONS ======================================================================== */ /** * Capitalize first letter of the provided string and return the modified * string. */ function sentenceCase( string ) { return string; //var lower = string.toLowerCase(); //return lower.substr(0,1).toUpperCase() + lower.substr(1); } /** * Returns an array containing the names of all the directories in the * current document URL */ function getDirectoriesInURL() { var trail = document.location.pathname.split( PATH_SEPARATOR ); // check whether last section is a file or a directory var lastcrumb = trail[trail.length-1]; for( var i = 0; i < FILE_EXTENSIONS.length; i++ ) { if( lastcrumb.indexOf( FILE_EXTENSIONS[i] ) ) { // it is, remove it and send results return trail.slice( 1, trail.length-1 ); } } // it's not; send the trail unmodified return trail.slice( 1, trail.length ); } /* ======================================================================== BREADCRUMB FUNCTIONALITY ======================================================================== */ /** * Return a two-dimensional array describing the breadcrumbs based on the * array of directories passed in. */ function getBreadcrumbs( dirs ) { var prefix = "/"; var postfix = "/"; // the array we will return var crumbs = new Array(); if( dirs != null ) { for( var i = 0; i < dirs.length; i++ ) { prefix += dirs[i] + postfix; crumbs.push( new Array( dirs[i], prefix ) ); } } // preprend the PREPREND_CRUMBS if(PREPREND_CRUMBS.length > 0 ) { return PREPREND_CRUMBS.concat( crumbs ); } return crumbs; } /** * Return a string containing a simple text breadcrumb trail based on the * two-dimensional array passed in. */ function getCrumbTrail( crumbs ) { var xhtml = DISPLAY_PREPREND; for( var i = 0; i < crumbs.length; i++ ) { xhtml += ''; xhtml += sentenceCase( crumbs[i][0] ) + ''; if( i != (crumbs.length-1) ) { xhtml += DISPLAY_SEPARATOR; } } xhtml += DISPLAY_POSTPREND; return xhtml; } /** * Return a string containing an XHTML breadcrumb trail based on the * two-dimensional array passed in. */ function getCrumbTrailXHTML( crumbs ) { var xhtml = ''; xhtml += DISPLAY_PREPREND; for( var i = 0; i < crumbs.length; i++ ) { xhtml += ''; xhtml += sentenceCase( crumbs[i][0] ) + ''; if( i != (crumbs.length-1) ) { xhtml += '' + DISPLAY_SEPARATOR + ''; } } xhtml += DISPLAY_POSTPREND; xhtml += ''; return xhtml; } /* ======================================================================== PRINT BREADCRUMB TRAIL ======================================================================== */ // check if we're local; if so, only print the PREPREND_CRUMBS if( document.location.href.toLowerCase().indexOf( "http://" ) == -1 ) { document.write( getCrumbTrail( getBreadcrumbs() ) ); } else { document.write( getCrumbTrail( getBreadcrumbs( getDirectoriesInURL() ) ) ); } 1.1 xml-forrest/src/resources/skins/forrest-css/xslt/fo/document2fo.xsl Index: document2fo.xsl =================================================================== 1.1 xml-forrest/src/resources/skins/forrest-css/xslt/html/book2menu.xsl Index: book2menu.xsl ===================================================================
  • 1.1 xml-forrest/src/resources/skins/forrest-css/xslt/html/document2html.xsl Index: document2html.xsl ===================================================================

    by ,

    Note Warning Fixme ( )
    PDFPDF version
    1.1 xml-forrest/src/resources/skins/forrest-css/xslt/html/site2xhtml.xsl Index: site2xhtml.xsl =================================================================== <xsl:value-of select="div[@class='content']/div[@class='pagetitle']"/>
    grouplogo grouplogolink 65 220 -
    the site
    - projectlogo projectlogolink 65 220



    - {$name}
    1.1 xml-forrest/src/resources/skins/forrest-css/xslt/html/tab2menu.xsl Index: tab2menu.xsl ===================================================================

    -