vmassol 01/04/07 00:12:20
Added: cactus/docs/framework/skins/jakarta.apache.org loader.xml
cactus/docs/framework/skins/jakarta.apache.org/resources
add.jpg fix.jpg jakarta-logo.gif logocactus.gif
note.gif remove.jpg update.jpg
cactus/docs/framework/skins/jakarta.apache.org/stylesheets
book2project.xsl changes2document.xsl copyover.xsl
document2html.xsl todo2document.xsl
Removed: cactus/docs/framework/skins/xml.apache.org/graphics
button-a.gif button-b.gif
cactus/docs/framework/skins/xml.apache.org loader.xml
cactus/docs/framework/skins/xml.apache.org/resources
bar-border-bottom.gif bar-border-left.gif
bar-border-right.gif bar-border-top.gif
bar-bottom-left.gif bar-bottom-right.gif
bar-top-left.gif bar-top-right.gif bottom.gif
button-asf-hi.gif button-asf-lo.gif
button-w3c-hi.gif button-w3c-lo.gif
button-xml-hi.gif button-xml-lo.gif close.gif
dot.gif join.gif line.gif logo.gif note.gif
right.gif script.js separator.gif void.gif
cactus/docs/framework/skins/xml.apache.org/stylesheets
book2project.xsl changes2document.xsl
context2label.xsl copyover.xsl
directory2project.xsl document2html.xsl
document2image.xsl document2project.xsl
faqs2document.xsl scan4resources.xsl spec2html.xsl
todo2document.xsl
Log:
moved from the XML Apache skin to the jakarta skin
Revision Changes Path
1.1
jakarta-commons-sandbox/cactus/docs/framework/skins/jakarta.apache.org/loader.xml
Index: loader.xml
===================================================================
<?xml version="1.0"?>
<!-- CVS $Revision: 1.1 $ $Date: 2001/04/07 07:12:02 $ -->
<loader>
<processor name="xslt">
<parameter name="stylesheet" value="sbk:/style/stylesheets/book2project.xsl"/>
</processor>
</loader>
1.1
jakarta-commons-sandbox/cactus/docs/framework/skins/jakarta.apache.org/resources/add.jpg
<<Binary file>>
1.1
jakarta-commons-sandbox/cactus/docs/framework/skins/jakarta.apache.org/resources/fix.jpg
<<Binary file>>
1.1
jakarta-commons-sandbox/cactus/docs/framework/skins/jakarta.apache.org/resources/jakarta-logo.gif
<<Binary file>>
1.1
jakarta-commons-sandbox/cactus/docs/framework/skins/jakarta.apache.org/resources/logocactus.gif
<<Binary file>>
1.1
jakarta-commons-sandbox/cactus/docs/framework/skins/jakarta.apache.org/resources/note.gif
<<Binary file>>
1.1
jakarta-commons-sandbox/cactus/docs/framework/skins/jakarta.apache.org/resources/remove.jpg
<<Binary file>>
1.1
jakarta-commons-sandbox/cactus/docs/framework/skins/jakarta.apache.org/resources/update.jpg
<<Binary file>>
1.1
jakarta-commons-sandbox/cactus/docs/framework/skins/jakarta.apache.org/stylesheets/book2project.xsl
Index: book2project.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- match the root book element -->
<xsl:template match="book">
<project>
<parameter name="copyright" value="{@copyright}"/>
<resource source="sbk:/style/resources/logocactus.gif"
target="images/logocactus.gif"/>
<resource source="sbk:/style/resources/jakarta-logo.gif"
target="images/jakarta-logo.gif"/>
<resource source="sbk:/style/resources/update.jpg" target="images/update.jpg"/>
<resource source="sbk:/style/resources/remove.jpg" target="images/remove.jpg"/>
<resource source="sbk:/style/resources/add.jpg" target="images/add.jpg"/>
<resource source="sbk:/style/resources/fix.jpg" target="images/fix.jpg"/>
<resource source="sbk:/style/resources/note.gif" target="images/note.gif"/>
<xsl:apply-templates/>
</project>
</xsl:template>
<xsl:template match="menu-item">
<xsl:if test="not(@type) or ( @type!='external' )">
<create source="{@source}"
target="{substring(@source,0,string-length(@source)-3)}.html"
producer="parser"
printer="html">
<xsl:if test="@type and ( @type!='hidden' and @type!='document' )">
<processor name="xslt">
<parameter name="stylesheet"
value="sbk:/style/stylesheets/{@type}2document.xsl"/>
</processor>
</xsl:if>
<processor name="xslt">
<parameter name="docid" value="{@source}"/>
<parameter name="stylesheet"
value="sbk:/style/stylesheets/document2html.xsl"/>
</processor>
</create>
</xsl:if>
</xsl:template>
<xsl:template match="external">
</xsl:template>
<xsl:template match="project">
</xsl:template>
</xsl:stylesheet>
1.1
jakarta-commons-sandbox/cactus/docs/framework/skins/jakarta.apache.org/stylesheets/changes2document.xsl
Index: changes2document.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="changes">
<document>
<header>
<title><xsl:value-of select="@title"/></title>
</header>
<body>
<xsl:apply-templates/>
</body>
</document>
</xsl:template>
<xsl:template match="release">
<s1>
<xsl:attribute name="title">
<xsl:value-of select="@name"/><xsl:text> </xsl:text>
<xsl:value-of select="@version"/><xsl:text> </xsl:text>
<xsl:if test="@date">
<xsl:value-of select="@date"/>
</xsl:if>
</xsl:attribute>
<sl>
<xsl:apply-templates/>
</sl>
</s1>
</xsl:template>
<xsl:template match="action">
<li>
<icon src="images/{@type}.jpg" alt="{@type}"/>
<xsl:apply-templates/>
<xsl:text>(</xsl:text><xsl:value-of select="@dev"/><xsl:text>)</xsl:text>
<xsl:if test="@due-to">
<xsl:text> Thanks to </xsl:text>
<link href="mailto:{@due-to-email}"><xsl:value-of select="@due-to"/></link>
<xsl:text>.</xsl:text>
</xsl:if>
<xsl:if test="@fixes-bug">
<xsl:text> Fixes </xsl:text>
<link href="http://xml.apache.org/bugs/show_bug.cgi?id={@fixes-bug}">
<xsl:text>bug </xsl:text><xsl:value-of select="@fixes-bug"/>
</link>
<xsl:text>.</xsl:text>
</xsl:if>
</li>
</xsl:template>
<xsl:template match="devs">
<!-- remove -->
</xsl:template>
</xsl:stylesheet>
1.1
jakarta-commons-sandbox/cactus/docs/framework/skins/jakarta.apache.org/stylesheets/copyover.xsl
Index: copyover.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="@*|*|text()|processing-instruction()">
<xsl:copy>
<xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.1
jakarta-commons-sandbox/cactus/docs/framework/skins/jakarta.apache.org/stylesheets/document2html.xsl
Index: document2html.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="stylebook.project"/>
<xsl:param name="copyright"/>
<xsl:param name="docid"/>
<xsl:param name="target"/>
<xsl:output method="html" indent="yes"/>
<!-- <xsl:strip-space elements="*"/> -->
<!-- voodoo magic to calculate base directory -->
<xsl:template name="get-base-directory">
<xsl:call-template name="get-base-directory-internal">
<xsl:with-param name="file" select="$docid"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="get-base-directory-internal">
<xsl:param name="file"/>
<xsl:choose>
<xsl:when test="contains( $file, '/' )">
<xsl:variable name="remainder" select="substring-after($file, '/')" />
<xsl:variable name="path">
<xsl:call-template name="get-base-directory-internal">
<xsl:with-param name="file" select="$remainder"/>
</xsl:call-template>
</xsl:variable>
<xsl:value-of select="concat('../',$path)"/>
</xsl:when>
<xsl:otherwise>./</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- ====================================================================== -->
<!-- document section -->
<!-- ====================================================================== -->
<xsl:template match="document">
<html>
<head>
<title><xsl:value-of select="header/title"/></title>
</head>
<body text="#000000" link="#525D76" vlink="#023264" alink="#023264"
topmargin="4" leftmargin="4" marginwidth="4" marginheight="4"
bgcolor="#ffffff">
<!-- THE TOP BAR (HEADER) -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top" align="left">
<a href="http://jakarta.apache.org/index.html">
<img hspace="0" vspace="0" border="0">
<xsl:attribute name="src"><xsl:call-template
name="get-base-directory"/>images/jakarta-logo.gif</xsl:attribute>
</img>
</a>
</td>
<td width="100%" valign="middle" align="left" bgcolor="#ffffff">
<img hspace="0"
vspace="0"
border="0"
alt="{header/title}"
align="right">
<xsl:attribute name="src"><xsl:call-template
name="get-base-directory"/>/images/logocactus.gif</xsl:attribute>
</img>
</td>
</tr>
<tr>
<td width="100%" height="2" colspan="2"><hr noshade="" size="1"/></td>
</tr>
</table>
<!-- THE MAIN PANEL (SIDEBAR AND CONTENT) -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<!-- THE SIDE BAR -->
<td width="1%" valign="top">
</td>
<td width="14%" valign="top" nowrap="1">
<br/>
<font face="arial,helvetica,sanserif">
<xsl:apply-templates select="document($stylebook.project)"/>
</font>
</td>
<!-- THE CONTENT PANEL -->
<td width="*" valign="top" align="left">
<table border="0" cellspacing="0" cellpadding="3">
<tr><td><br/><xsl:apply-templates/></td></tr>
<tr>
<td align="right">
<xsl:if test="header/authors">
<p>by
<xsl:for-each select="header/authors/person">
<a href="mailto:{@email}"><xsl:value-of select="@name"/></a>
<xsl:if test="not(position()=last())">, </xsl:if>
</xsl:for-each>
</p>
</xsl:if>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><hr noshade="" size="1"/></td></tr>
<tr>
<td align="center">
<font face="arial,helvetica,sanserif" size="-1" color="#525D76">
<i>
Copyright © <xsl:value-of select="$copyright"/>.
All Rights Reserved.
</i>
</font>
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
<!--
======================================================================
book section
======================================================================
-->
<xsl:template match="menu-item">
<xsl:choose>
<xsl:when test="@type='external'">
<li>
<font size="-1">
<a href="{@href}" target="{@id}"><xsl:value-of select="@label"/></a>
</font>
</li>
</xsl:when>
<xsl:when test="not(@type) or @type!='hidden'">
<li>
<a>
<xsl:attribute name="href"><xsl:call-template
name="get-base-directory"/><xsl:value-of
select="substring(@source,0,string-length(@source)-3)"/>.html</xsl:attribute>
<font size="-1"><xsl:value-of select="@label"/></font>
</a>
</li>
</xsl:when>
<xsl:otherwise><!-- hidden --></xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="separator">
<br/>
</xsl:template>
<xsl:template match="menu">
<br/>
<!-- alternate color #F3510C -->
<font size="+1" color="#000000"><xsl:value-of select="@label"/></font>
<br/>
<font size="-1"><xsl:apply-templates/></font>
<br/>
</xsl:template>
<xsl:template match="project">
<br/>
<a href="{@href}">
<font size="+1" color="#F3510C"><xsl:value-of select="@label"/></font>
</a>
<br/>
</xsl:template>
<!-- ====================================================================== -->
<!-- header section -->
<!-- ====================================================================== -->
<xsl:template match="header">
<!--
<center>
<table width="80%">
<tr>
<td bgcolor="#F3DD61">
<br/>
<center>
<b>
<font face="arial,helvetica,sanserif" color="#000000">
<xsl:value-of select="title"/>
<xsl:if test="subtitle">
: <xsl:value-of select="subtitle"/>
</xsl:if>
</font>
</b>
</center>
<br/>
</td>
</tr>
</table>
</center>
<br/>
-->
</xsl:template>
<!-- ====================================================================== -->
<!-- body section -->
<!-- ====================================================================== -->
<xsl:template match="s1">
<xsl:call-template name="section">
<xsl:with-param name="width">100%</xsl:with-param>
<xsl:with-param name="font-size">+1</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="s2">
<xsl:call-template name="section">
<xsl:with-param name="width">95%</xsl:with-param>
<xsl:with-param name="font-size">+0</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="s3">
<xsl:call-template name="section">
<xsl:with-param name="width">90%</xsl:with-param>
<xsl:with-param name="font-size">-1</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="s4">
<xsl:call-template name="section">
<xsl:with-param name="width">85%</xsl:with-param>
<xsl:with-param name="font-size">-2</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template name="section">
<xsl:param name="width" />
<xsl:param name="font-size" />
<div align="right">
<table border="0" cellspacing="0" cellpadding="2">
<xsl:attribute name="width"><xsl:value-of select="$width"/></xsl:attribute>
<tr>
<td bgcolor="#525D76">
<font face="arial,helvetica,sanserif" color="#ffffff">
<xsl:attribute name="size"><xsl:value-of
select="$font-size"/></xsl:attribute>
<b><xsl:value-of select="@title"/></b>
</font>
</td>
</tr>
<tr>
<td>
<font face="arial,helvetica,sanserif"
color="#000000"><br/><xsl:apply-templates/></font>
</td>
</tr>
</table>
</div>
<br/>
</xsl:template>
<!-- ====================================================================== -->
<!-- footer section -->
<!-- ====================================================================== -->
<xsl:template match="footer">
<!-- ignore on general documents -->
</xsl:template>
<!-- ====================================================================== -->
<!-- paragraph section -->
<!-- ====================================================================== -->
<xsl:template match="p">
<p align="justify"><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="source">
<div align="center">
<table border="1" cellspacing="2" cellpadding="2">
<tr>
<td><pre><xsl:apply-templates/></pre></td>
</tr>
</table>
</div>
</xsl:template>
<xsl:template match="fixme">
<!-- ignore on documentation -->
</xsl:template>
<!-- ====================================================================== -->
<!-- list section -->
<!-- ====================================================================== -->
<xsl:template match="ul|ol|dl">
<blockquote>
<xsl:copy><xsl:apply-templates/></xsl:copy>
</blockquote>
</xsl:template>
<xsl:template match="li">
<xsl:copy><xsl:apply-templates/></xsl:copy>
</xsl:template>
<xsl:template match="sl">
<ul><xsl:apply-templates/></ul>
</xsl:template>
<xsl:template match="dt">
<li>
<strong><xsl:value-of select="."/></strong>
<xsl:text> - </xsl:text>
<xsl:value-of select="following::dd"/>
</li>
</xsl:template>
<xsl:template match="dd">
<!-- ignore since already used -->
</xsl:template>
<!-- ====================================================================== -->
<!-- note section -->
<!-- ====================================================================== -->
<xsl:template match="note">
<p>
<table width="100%" cellspacing="3" cellpadding="0" border="0">
<tr>
<td width="28" valign="top">
<img src="images/note.gif" width="28" height="29" vspace="0" hspace="0"
border="0" alt="Note"/>
</td>
<td valign="top">
<font size="-1" face="arial,helvetica,sanserif" color="#000000">
<i>
<xsl:apply-templates/>
</i>
</font>
</td>
</tr>
</table>
</p>
</xsl:template>
<!-- ====================================================================== -->
<!-- table section -->
<!-- ====================================================================== -->
<xsl:template match="table">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<caption><xsl:value-of select="caption"/></caption>
<xsl:apply-templates/>
</table>
</xsl:template>
<xsl:template match="tr">
<tr><xsl:apply-templates/></tr>
</xsl:template>
<xsl:template match="th">
<td bgcolor="#039acc"
colspan="{@colspan}"
rowspan="{@rowspan}"
valign="center"
align="center">
<font color="#ffffff" size="-1" face="arial,helvetica,sanserif">
<b><xsl:apply-templates/></b> 
</font>
</td>
</xsl:template>
<xsl:template match="td">
<td bgcolor="#a0ddf0" colspan="{@colspan}" rowspan="{@rowspan}" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<xsl:apply-templates/> 
</font>
</td>
</xsl:template>
<xsl:template match="tn">
<td bgcolor="#ffffff" colspan="{@colspan}" rowspan="{@rowspan}">
 
</td>
</xsl:template>
<xsl:template match="caption">
<!-- ignore since already used -->
</xsl:template>
<!-- ====================================================================== -->
<!-- markup section -->
<!-- ====================================================================== -->
<xsl:template match="strong">
<b><xsl:apply-templates/></b>
</xsl:template>
<xsl:template match="em">
<i><xsl:apply-templates/></i>
</xsl:template>
<xsl:template match="filename">
<filename><i><xsl:apply-templates/></i></filename>
</xsl:template>
<xsl:template match="code">
<code><font face="courier, monospaced"><xsl:apply-templates/></font></code>
</xsl:template>
<!-- ====================================================================== -->
<!-- images section -->
<!-- ====================================================================== -->
<xsl:template match="figure">
<p align="center"><img src="{@src}" alt="{@alt}" border="0" vspace="4"
hspace="4"/></p>
</xsl:template>
<xsl:template match="img">
<img src="{@src}" alt="{@alt}" border="0" vspace="4" hspace="4" align="right"/>
</xsl:template>
<xsl:template match="icon">
<img src="{@src}" alt="{@alt}" border="0" align="absmiddle"/>
</xsl:template>
<!-- ====================================================================== -->
<!-- links section -->
<!-- ====================================================================== -->
<xsl:template match="link">
<a href="{@href}"><xsl:apply-templates/></a>
</xsl:template>
<xsl:template match="jump">
<a href="{@href}#{@anchor}"><xsl:apply-templates/></a>
</xsl:template>
<xsl:template match="fork">
<a href="{@href}" target="_blank"><xsl:apply-templates/></a>
</xsl:template>
<xsl:template match="anchor">
<a name="{@id}"><xsl:comment>anchor</xsl:comment></a>
</xsl:template>
<!-- ====================================================================== -->
<!-- specials section -->
<!-- ====================================================================== -->
<xsl:template match="br">
<br/>
</xsl:template>
</xsl:stylesheet>
1.1
jakarta-commons-sandbox/cactus/docs/framework/skins/jakarta.apache.org/stylesheets/todo2document.xsl
Index: todo2document.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="copyover.xsl"/>
<xsl:template match="todo">
<document>
<header>
<title><xsl:value-of select="@title"/></title>
</header>
<body>
<xsl:apply-templates/>
</body>
</document>
</xsl:template>
<xsl:template match="actions">
<s2 title="{@priority}">
<sl>
<xsl:for-each select="action">
<li>
<strong><xsl:text>[</xsl:text><xsl:value-of
select="@context"/><xsl:text>]</xsl:text></strong><xsl:text> </xsl:text>
<xsl:apply-templates/>
</li>
</xsl:for-each>
</sl>
</s2>
</xsl:template>
</xsl:stylesheet>