From: <fun...@us...> - 2003-08-05 20:02:31
|
Update of /cvsroot/sheets/sheets/src/documentation/skins/sheets-site/xslt/html In directory sc8-pr-cvs1:/tmp/cvs-serv17082/src/documentation/skins/sheets-site/xslt/html Modified Files: book2menu.xsl document2html.xsl site2xhtml.xsl tab2menu.xsl Log Message: website update Index: book2menu.xsl =================================================================== RCS file: /cvsroot/sheets/sheets/src/documentation/skins/sheets-site/xslt/html/book2menu.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** book2menu.xsl 6 Dec 2002 12:54:45 -0000 1.2 --- book2menu.xsl 5 Aug 2003 20:02:28 -0000 1.3 *************** *** 1,9 **** <?xml version="1.0"?> <!-- ! book2menu.xsl generates the HTML menu. It outputs XML/HTML of the form: ! <div class="menu"> ! ... ! </div> ! which is then merged with other HTML by site2xhtml.xsl $Id$ --- 1,6 ---- <?xml version="1.0"?> <!-- ! book2menu.xsl generates the HTML menu. See the imported book2menu.xsl for ! details. $Id$ *************** *** 11,23 **** <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:param name="path"/> - - <xsl:include href="pathutils.xsl"/> ! <xsl:variable name="filename-noext"> ! <xsl:call-template name="filename-noext"> ! <xsl:with-param name="path" select="$path"/> ! </xsl:call-template> ! </xsl:variable> <xsl:template match="book"> --- 8,13 ---- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ! <xsl:import href="../../../common/xslt/html/book2menu.xsl"/> <xsl:template match="book"> *************** *** 40,66 **** <xsl:template match="menu-item"> <li> ! <xsl:choose> ! <xsl:when test="starts-with(@href, $filename-noext)"> ! <span class="sel"><font color="#ffcc00"><xsl:value-of select="@label"/></font></span> ! </xsl:when> ! <xsl:otherwise> ! <a href="{@href}"><xsl:value-of select="@label"/></a> ! </xsl:otherwise> ! </xsl:choose> </li> </xsl:template> ! <xsl:template match="external"> ! <li> ! <xsl:choose> ! <xsl:when test="starts-with(@href, $filename-noext)"> ! <font color="#ffcc00"><xsl:value-of select="@label"/></font> ! </xsl:when> ! <xsl:otherwise> ! <a href="{@href}" target="_blank"><xsl:value-of select="@label"/></a> ! </xsl:otherwise> ! </xsl:choose> ! </li> </xsl:template> ! <xsl:template match="menu-item[@type='hidden']"/> ! <xsl:template match="external[@type='hidden']"/> </xsl:stylesheet> --- 30,50 ---- <xsl:template match="menu-item"> <li> ! <xsl:apply-imports/> </li> </xsl:template> ! ! <xsl:template name="selected"> ! <span class="sel"> ! <font color="#ffcc00"> ! <xsl:value-of select="@label"/> ! </font> ! </span> </xsl:template> ! ! <xsl:template name="print-external"> ! <font color="#ffcc00"> ! <xsl:apply-imports/> ! </font> ! </xsl:template> ! </xsl:stylesheet> Index: document2html.xsl =================================================================== RCS file: /cvsroot/sheets/sheets/src/documentation/skins/sheets-site/xslt/html/document2html.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** document2html.xsl 6 Dec 2002 12:54:45 -0000 1.2 --- document2html.xsl 5 Aug 2003 20:02:28 -0000 1.3 *************** *** 15,50 **** <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ! <!-- If non-blank, a PDF link for this page will not be generated --> ! <xsl:param name="nopdf"/> ! <xsl:param name="isfaq"/> ! <xsl:param name="path"/> ! ! <xsl:include href="split.xsl"/> ! <xsl:include href="dotdots.xsl"/> ! <xsl:include href="pathutils.xsl"/> ! ! <!-- Path to site root, eg '../../' --> ! <xsl:variable name="root"> ! <xsl:call-template name="dotdots"> ! <xsl:with-param name="path" select="$path"/> ! </xsl:call-template> ! </xsl:variable> ! ! <xsl:variable name="filename-noext"> ! <xsl:call-template name="filename-noext"> ! <xsl:with-param name="path" select="$path"/> ! </xsl:call-template> ! </xsl:variable> ! ! <xsl:variable name="skin-img-dir" select="concat(string($root), 'skin/images')"/> <xsl:template match="document"> ! <!-- ! <xsl:message> ! ## path = <xsl:value-of select="$path"/> ! ## root = <xsl:value-of select="$root"/> ! ## nopdf = '<xsl:value-of select="$nopdf"/>' ! </xsl:message> ! --> <div class="content"> <xsl:if test="normalize-space(header/title)!=''"> --- 15,22 ---- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ! <xsl:import href="../../../common/xslt/html/document2html.xsl"/> <xsl:template match="document"> ! <div class="content"> <xsl:if test="normalize-space(header/title)!=''"> *************** *** 56,69 **** </h1> </td> ! <!--td align="center" width="80" nowrap><a href="" class="dida"><img src="images/singlepage.gif"><br> ! single page<br> ! version</a></td--> ! <xsl:if test="$nopdf = ''"> <!-- nopdf flag unset --> ! <td align="center" width="80" nowrap="nowrap"><a href="{$filename-noext}.pdf" class="dida"> ! <img border="0" src="{$skin-img-dir}/printer.png"/><br/> ! print-friendly<br/> ! version</a> ! </td> ! </xsl:if> </tr> </table> --- 28,36 ---- </h1> </td> ! <!-- ! <xsl:call-template name="printerfriendlylink"/> ! <xsl:call-template name="xmllink"/> ! --> ! <xsl:call-template name="pdflink"/> </tr> </table> *************** *** 76,81 **** <xsl:apply-templates select="body"/> ! ! <xsl:if test="header/authors"> <p align="right"> <font size="-2"> --- 43,48 ---- <xsl:apply-templates select="body"/> ! ! <xsl:if test="header/authors"> <p align="right"> <font size="-2"> *************** *** 90,94 **** </p> </xsl:if> ! </div> </xsl:template> --- 57,61 ---- </p> </xsl:if> ! </div> </xsl:template> *************** *** 96,104 **** <xsl:template match="body"> ! <xsl:if test="section and not($isfaq='true')"> <toc> <xsl:for-each select="section"> <tocc> ! <toca href="#{generate-id()}"> <xsl:value-of select="title"/> </toca> --- 63,74 ---- <xsl:template match="body"> ! <xsl:if test="section and not($notoc='true')"> <toc> <xsl:for-each select="section"> <tocc> ! <toca> ! <xsl:attribute name="href"> ! <xsl:text>#</xsl:text><xsl:call-template name="generate-id"/> ! </xsl:attribute> <xsl:value-of select="title"/> </toca> *************** *** 107,111 **** <xsl:for-each select="section"> <tocc> ! <toca href="#{generate-id()}"> <xsl:value-of select="title"/> </toca> --- 77,84 ---- <xsl:for-each select="section"> <tocc> ! <toca> ! <xsl:attribute name="href"> ! <xsl:text>#</xsl:text><xsl:call-template name="generate-id"/> ! </xsl:attribute> <xsl:value-of select="title"/> </toca> *************** *** 118,163 **** </toc> </xsl:if> - <!-- - <xsl:if test="section and not($isfaq='true')"> - <ul class="minitoc"> - <xsl:for-each select="section"> - <li> - <a href="#{generate-id()}"> - <xsl:value-of select="title"/> - </a> - <xsl:if test="section"> - <ul class="minitoc"> - <xsl:for-each select="section"> - <li> - <a href="#{generate-id()}"> - <xsl:value-of select="title"/> - </a> - </li> - </xsl:for-each> - </ul> - </xsl:if> - </li> - </xsl:for-each> - </ul> - </xsl:if> - --> <xsl:apply-templates/> </xsl:template> ! <!-- section handling ! - <a name/> anchors are added if the id attribute is specified ! - generated anchors are still included for TOC - what should we do about this? ! - FIXME: provide a generic facility to process section irrelevant to their ! nesting depth ! --> <xsl:template match="@id"> ! <xsl:if test="normalize-space(.)!=''"> ! <a> ! <xsl:attribute name="name"> ! <xsl:value-of select="."/> ! </xsl:attribute> ! </a> ! </xsl:if> </xsl:template> --- 91,110 ---- </toc> </xsl:if> <xsl:apply-templates/> </xsl:template> ! <xsl:template name="generate-id"> ! <xsl:choose> ! <xsl:when test="@id"> ! <xsl:value-of select="@id"/> ! </xsl:when> ! <xsl:otherwise> ! <xsl:value-of select="generate-id(.)"/> ! </xsl:otherwise> ! </xsl:choose> ! </xsl:template> <xsl:template match="@id"> ! <xsl:apply-imports/> </xsl:template> *************** *** 165,357 **** <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"> ! <table cellpadding="0" cellspacing="0" border="0" width="100%"> ! <tbody> ! <tr> ! <td width="9" height="10"></td> ! <td><h3><xsl:value-of select="title"/></h3></td> ! <td></td> ! </tr> ! <tr> ! <td class="bottom-left-thick"></td> ! <td bgcolor="#a5b6c6"></td> ! <td class="bottom-right-thick"></td> ! </tr> ! ! </tbody> ! </table> ! ! <div class="section"><xsl:apply-templates/></div> ! ! </xsl:when> ! <xsl:when test="$level=2"> ! <table cellpadding="0" cellspacing="0" border="0"> ! <tbody> ! <tr> ! <td width="9" height="10"></td> ! <td><h4><xsl:value-of select="title"/></h4></td> ! <td></td> ! </tr> ! <tr> ! <td class="bottom-left"></td> ! <td bgcolor="#a5b6c6"></td> ! <td class="bottom-right"></td> ! </tr> ! ! </tbody> ! </table> ! <xsl:apply-templates select="*[not(self::title)]"/> ! </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="fixme | note | warning"> ! <xsl:apply-templates select="@id"/> ! <div class="{local-name()}"> ! <p><strong> ! <xsl:choose> ! <xsl:when test="local-name() = 'note'">Note</xsl:when> ! <xsl:when test="local-name() = 'warning'">Warning</xsl:when> ! <xsl:otherwise>Fixme ( ! <xsl:value-of select="@author"/> ! )</xsl:otherwise> ! </xsl:choose> ! </strong></p> ! <p><xsl:apply-templates/></p> ! </div> ! </xsl:template> ! ! <!-- ! <xsl:template match="fixme | note | warning "> ! <xsl:apply-templates select="@id"/> ! <div class="frame {local-name()}"> ! <div class="label"> ! <xsl:choose> ! <xsl:when test="local-name() = 'note'">Note</xsl:when> ! <xsl:when test="local-name() = 'warning'">Warning</xsl:when> ! <xsl:otherwise>Fixme ( ! <xsl:value-of select="@author"/> ! )</xsl:otherwise> ! </xsl:choose> ! </div> ! <div class="content"> ! <xsl:apply-templates/> ! </div> ! </div> </xsl:template> ! --> <xsl:template match="link"> ! <xsl:apply-templates select="@id"/> ! <a href="{@href}"> ! <xsl:apply-templates/> ! </a> </xsl:template> <xsl:template match="jump"> ! <xsl:apply-templates select="@id"/> ! <a href="{@href}" target="_top"> ! <xsl:apply-templates/> ! </a> </xsl:template> <xsl:template match="fork"> ! <xsl:apply-templates select="@id"/> ! <a href="{@href}" target="_blank"> ! <xsl:apply-templates/> ! </a> </xsl:template> <xsl:template match="p[@xml:space='preserve']"> ! <xsl:apply-templates select="@id"/> ! <div class="pre"> ! <xsl:apply-templates/> ! </div> </xsl:template> <xsl:template match="source"> ! <xsl:apply-templates select="@id"/> ! <pre class="code"> ! <!-- Temporarily removed long-line-splitter ... gives out-of-memory problems --> ! <xsl:apply-templates/> ! <!-- ! <xsl:call-template name="format"> ! <xsl:with-param select="." name="txt" /> ! <xsl:with-param name="width">80</xsl:with-param> ! </xsl:call-template> ! --> ! </pre> </xsl:template> <xsl:template match="anchor"> ! <a name="{@id}"/> </xsl:template> <xsl:template match="icon"> ! <xsl:apply-templates select="@id"/> ! <img src="{@src}" alt="{@alt}"> ! <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> </xsl:template> <xsl:template match="code"> ! <xsl:apply-templates select="@id"/> ! <span class="codefrag"><xsl:value-of select="."/></span> </xsl:template> <xsl:template match="figure"> ! <xsl:apply-templates select="@id"/> ! <div align="center"> ! <img src="{@src}" alt="{@alt}" class="figure"> ! <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:template match="table"> ! <xsl:apply-templates select="@id"/> ! <table cellpadding="4" cellspacing="1" class="ForrestTable"> ! <xsl:if test="@cellspacing"><xsl:attribute name="cellspacing"><xsl:value-of select="@cellspacing"/></xsl:attribute></xsl:if> ! <xsl:if test="@cellpadding"><xsl:attribute name="cellpadding"><xsl:value-of select="@cellpadding"/></xsl:attribute></xsl:if> ! <xsl:if test="@border"><xsl:attribute name="border"><xsl:value-of select="@border"/></xsl:attribute></xsl:if> ! <xsl:if test="@class"><xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if> ! <xsl:if test="@bgcolor"><xsl:attribute name="bgcolor"><xsl:value-of select="@bgcolor"/></xsl:attribute></xsl:if> ! <xsl:apply-templates/> ! </table> </xsl:template> ! <xsl:template match="node()|@*" priority="-1"> ! <xsl:copy> ! <xsl:apply-templates select="@*"/> ! <xsl:apply-templates/> ! </xsl:copy> </xsl:template> </xsl:stylesheet> --- 112,228 ---- <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"> ! <table cellpadding="0" cellspacing="0" border="0" width="100%"> ! <tbody> ! <tr> ! <td width="9" height="10"></td> ! <td><h3><xsl:value-of select="title"/></h3></td> ! <td></td> ! </tr> ! <tr> ! <td class="bottom-left-thick"></td> ! <td bgcolor="#927762"></td> ! <td class="bottom-right-thick"></td> ! </tr> ! </tbody> ! </table> ! <div class="section"><xsl:apply-templates/></div> ! </xsl:when> ! <xsl:when test="$level=2"> ! ! <table cellpadding="0" cellspacing="0" border="0"> ! <tbody> ! <tr> ! <td width="9" height="10"></td> ! <td><h4><xsl:value-of select="title"/></h4></td> ! <td></td> ! </tr> ! <tr> ! <td class="bottom-left"></td> ! <td bgcolor="#927762"></td> ! <td class="bottom-right"></td> ! </tr> ! ! </tbody> ! </table> ! <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="fixme | note | warning"> ! <xsl:apply-imports/> </xsl:template> ! <xsl:template match="link"> ! <xsl:apply-imports/> </xsl:template> <xsl:template match="jump"> ! <xsl:apply-imports/> </xsl:template> <xsl:template match="fork"> ! <xsl:apply-imports/> </xsl:template> <xsl:template match="p[@xml:space='preserve']"> ! <xsl:apply-imports/> </xsl:template> <xsl:template match="source"> ! <xsl:apply-imports/> </xsl:template> <xsl:template match="anchor"> ! <xsl:apply-imports/> </xsl:template> <xsl:template match="icon"> ! <xsl:apply-imports/> </xsl:template> <xsl:template match="code"> ! <xsl:apply-imports/> </xsl:template> <xsl:template match="figure"> ! <xsl:apply-imports/> </xsl:template> <xsl:template match="table"> ! <xsl:apply-imports/> </xsl:template> ! <xsl:template match="title"> ! <!-- do not show title elements, they are already in other places--> </xsl:template> + </xsl:stylesheet> Index: site2xhtml.xsl =================================================================== RCS file: /cvsroot/sheets/sheets/src/documentation/skins/sheets-site/xslt/html/site2xhtml.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** site2xhtml.xsl 6 Dec 2002 12:54:45 -0000 1.2 --- site2xhtml.xsl 5 Aug 2003 20:02:28 -0000 1.3 *************** *** 21,325 **** <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <!-- Default skinconf.xml in the skins/ directory --> - <xsl:param name="config-file" select="'../../../../skinconf.xml'"/> - <xsl:variable name="config" select="document($config-file)/skinconfig"/> - <xsl:param name="path"/> - <xsl:include href="dotdots.xsl"/> - <xsl:include href="pathutils.xsl"/> ! <xsl:variable name="root"> ! <xsl:call-template name="dotdots"> ! <xsl:with-param name="path" select="$path"/> ! </xsl:call-template> ! </xsl:variable> ! ! <xsl:variable name="filename"> ! <xsl:call-template name="filename"> ! <xsl:with-param name="path" select="$path"/> ! </xsl:call-template> ! </xsl:variable> ! ! <xsl:variable name="skin-img-dir" select="concat(string($root), 'skin/images')"/> ! <xsl:variable name="spacer" select="concat($root, 'skin/images/spacer.gif')"/> ! <xsl:template match="site"> <html> <head> ! <title><xsl:value-of select="div[@class='content']/table/tr/td/h1"/></title> <link rel="stylesheet" href="{$root}skin/page.css" type="text/css"/> </head> ! <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> ! <!-- =========================== top line with navigation path ========================== --> ! <!-- <table cellspacing="0" cellpadding="0" border="0" width="100%" summary="navigation path"> ! <tr> ! <td bgcolor="#a5b6c6" valign="middle" nowrap="nowrap"> ! <img src="{$spacer}" border="0" alt="" width="5" height="1" /> ! ! <span class="trail"> ! <script type="text/javascript" language="JavaScript" src="{$root}skin/breadcrumbs.js"></script> </span> ! </td> ! </tr> ! <tr> ! <td height="1" bgcolor="#a5b6c6"><img src="{$spacer}" border="0" alt="" width="2" height="1" /></td> ! </tr> ! </table> ! --> ! <!-- ================================= top bar with logo's and search box =================================== --> <table cellspacing="0" cellpadding="0" border="0" width="100%" summary="header with logos"> ! <tr> ! <td bgcolor="#FFFFFF"> ! <xsl:if test="$config/group-url"><a href="{$config/group-url}"><img src="{$root}{$config/group-logo}" alt="{$config/group-name} logo" border="0"/></a></xsl:if></td> ! <td bgcolor="#FFFFFF" align="center" width="100%"><a href="{$config/project-url}"><img src="{$root}{$config/project-logo}" border="0" alt="{$config/project-name} site" /></a></td> ! <td bgcolor="#FFFFFF" rowspan="2" valign="top"> ! <xsl:if test="not($config/disable-search) or $config/disable-search='false' and $config/searchsite-domain and $config/searchsite-name"> ! <form method="get" action="http://www.google.com/search" onsubmit="q.value = query.value + ' site:{$config/searchsite-domain}'" target="_blank"> ! <table bgcolor="#F7F7F7" cellpadding="0" cellspacing="0" border="0" summary="search"> ! <tr> ! <td colspan="3" bgcolor="#a5b6c6"><img src="{$spacer}" alt="" width="1" height="10" /></td> ! </tr> ! <tr> ! <td colspan="3"><img src="{$spacer}" alt="" width="1" height="8" /></td> ! </tr> ! <tr> ! <td><img src="{$spacer}" alt="" width="1" height="1" /></td> <td nowrap="nowrap"> <input type="hidden" name="q"/> ! <input type="text" id="query" size="15"/><img src="{$spacer}" alt="" width="5" height="1" /><input type="submit" value="Search" name="Search"/> ! <br /> ! <span class="search"> ! the <xsl:value-of select="$config/searchsite-name"/> site <!-- setting search options off for the moment --> <!-- <input type="radio" name="web" value="web"/>web site  <input type="radio" name="mail" value="mail"/>mail lists --> ! </span> </td> - <td><img src="{$spacer}" alt="" width="1" height="1" /></td> </tr> ! <tr> ! <td colspan="3"><img src="{$spacer}" alt="" width="1" height="7" /></td> ! </tr> ! ! ! <tr> ! <td class="bottom-left-thick"></td> ! <td bgcolor="#a5b6c6"><img src="{$spacer}" alt="" width="1" height="1" /></td> ! <td class="bottom-right-thick"></td> ! </tr> ! </table> </form> </xsl:if> ! </td> ! <td bgcolor="#FFFFFF"><img src="{$spacer}" alt="" width="10" height="10" /></td> ! </tr> ! <tr> ! <td colspan="2" bgcolor="#FFFFFF" valign="bottom"> ! <xsl:apply-templates select="div[@class='tab']"/> ! </td> ! <td bgcolor="#FFFFFF"><img src="{$spacer}" height="1" width="1" alt="" /></td> ! </tr> ! <tr><!-- ! <td colspan="4" bgcolor="#a5b6c6" valign="middle" nowrap="nowrap"> ! <img src="{$spacer}" border="0" alt="" width="5" height="1" /> ! ! <span class="trail"> ! <script type="text/javascript" language="JavaScript" src="{$root}skin/breadcrumbs.js"></script> </span> ! </td> ! --> ! <td colspan="4" bgcolor="#a5b6c6"><img src="{$spacer}" alt="" height="10" width="1" /></td> ! </tr> ! </table> ! <!-- ====================================== Menu and Content table ====================================== --> ! <table cellspacing="0" cellpadding="0" border="0" width="100%" bgcolor="#ffffff" summary="page content"> ! <tr> - <td valign="top"> - <table cellpadding="0" cellspacing="0" border="0" summary="menu"> - <tr> - <td valign="top" rowspan="3"> - <table cellspacing="0" cellpadding="0" border="0" summary="blue line"> - <tr><td bgcolor="#a5b6c6"><img src="{$spacer}" alt="" height="1" width="10" /></td></tr> - <tr><td bgcolor="#CFDCED"><font face="Arial, Helvetica, Sans-serif" size="4" color="#4C6C8F"> </font></td></tr> - <tr><td bgcolor="#a5b6c6"><img src="{$spacer}" alt="" height="1" width="10" /></td></tr> - </table> - </td> - <td bgcolor="#a5b6c6" ><img src="{$spacer}" alt="" height="1" width="1" /></td> - <td bgcolor="#F7F7F7" valign="bottom"><img src="{$spacer}" alt="" height="10" width="10" /></td> - <td bgcolor="#F7F7F7" valign="top" nowrap="nowrap"> - - <!-- <xsl:apply-templates select="div[@class='menu']"/> --> ! <div class="menu"><ul> ! <xsl:for-each select = "div[@class='menu']/ul/li"> ! <li><font color="#000000"><xsl:value-of select="font"/></font> ! <ul> ! <xsl:for-each select = "ul/li"> ! ! <xsl:choose> ! <xsl:when test="a"> ! <li><a href="{a/@href}"><xsl:value-of select="a" /></a></li> ! </xsl:when> ! <xsl:otherwise> ! <li> ! <span class="sel"><xsl:value-of select="span" /></span></li> ! <ul> ! <xsl:for-each select = "//toc/tocc"> ! ! <xsl:choose> ! <xsl:when test="string-length(toca)>15"> ! <li><a href="{toca/@href}"><xsl:value-of select="substring(toca,0,15)" />...</a></li> ! </xsl:when> ! <xsl:otherwise> ! <li><a href="{toca/@href}"><xsl:value-of select="toca" /></a></li> ! </xsl:otherwise> ! </xsl:choose> ! ! <ul> ! <xsl:for-each select = "toc2/tocc"> ! ! <xsl:choose> ! <xsl:when test="string-length(toca)>15"> ! <li><a href="{toca/@href}"><xsl:value-of select="substring(toca,0,15)" />...</a></li> ! </xsl:when> ! <xsl:otherwise> ! <li><a href="{toca/@href}"><xsl:value-of select="toca" /></a></li> ! </xsl:otherwise> ! </xsl:choose> ! ! </xsl:for-each> ! </ul> ! </xsl:for-each> ! </ul> ! </xsl:otherwise> ! </xsl:choose> ! ! </xsl:for-each> ! </ul> ! </li> ! </xsl:for-each> ! </ul></div> ! </td> ! <td bgcolor="#F7F7F7" valign="bottom"><img src="{$spacer}" alt="" height="10" width="10" /></td> ! <td bgcolor="#a5b6c6"><img src="{$spacer}" alt="" height="1" width="1" /></td> ! </tr> ! <tr> ! <td class="bottom-left-thick" rowspan="2" colspan="2"></td> ! <td bgcolor="#a5b6c6"><img src="{$spacer}" alt="" border="0" width="10" height="10" /></td> ! <td class="bottom-right-thick" rowspan="2" colspan="2"></td> ! </tr> ! <tr> ! <td bgcolor="#a5b6c6" height="1"><img src="{$spacer}" alt="" height="1" width="1" /></td> ! </tr> </table> </td> - ! <td width="100%" valign="top"> ! <table cellspacing="0" cellpadding="0" border="0" width="100%" summary="content"> ! <tr><td bgcolor="#a5b6c6" colspan="4"><img src="{$spacer}" alt="" height="1" width="10" /></td></tr> ! <tr> ! <td bgcolor="#CFDCED" width="10" align="left"><img src="{$spacer}" alt="" height="1" width="10" /></td> ! <td bgcolor="#CFDCED" width="50%" align="left"> ! <!-- ========================================= Page number ===================================== --> ! <span class="trail"> !   ! ! <script type="text/javascript" language="JavaScript" src="{$root}skin/breadcrumbs.js"></script> ! <!-- ! <b>Page 1 of 5</b> ! --> ! </span> ! <img src="{$spacer}" alt="" height="8" width="10" /> ! </td> ! <td bgcolor="#CFDCED" width="50%" align="right"> ! <!-- ====================================== page navigation ===================================== --> ! <font face="Arial, Helvetica, Sans-serif" size="3" color="#4C6C8F"> !   ! <!-- ! <b>« prev  <font size="4">[3]</font>  next »</b> ! --> ! </font> ! <img src="{$spacer}" alt="" height="8" width="10" /> ! </td> ! <td bgcolor="#CFDCED" width="10"><img src="{$spacer}" alt="" height="1" width="10" /></td> ! </tr> ! <tr><td bgcolor="#a5b6c6" colspan="4"><img src="{$spacer}" alt="" height="1" width="10" /></td></tr> ! <tr> ! <td width="10" align="left"><img src="{$spacer}" alt="" height="1" width="10" /></td> ! <td width="100%" align="left"> ! <xsl:apply-templates select="div[@class='content']"/> ! </td> ! <td width="10"><img src="{$spacer}" alt="" height="1" width="10" /></td> ! </tr> ! </table> </td> </tr> - </table> - <!-- footer --> - <table border="0" height="20" width="100%" cellpadding="0" cellspacing="0" summary="footer"> - <tr><td bgcolor="#a5b6c6" height="1" colspan="2"><img src="{$spacer}" alt="" width="1" height="1" /><a href="{$skin-img-dir}/label.gif"></a><a href="{$skin-img-dir}/page.gif"></a><a href="{$skin-img-dir}/chapter.gif"></a><a href="{$skin-img-dir}/chapter_open.gif"></a><a href="{$skin-img-dir}/current.gif"></a><a href="/favicon.ico"></a></td> - - - <td class="logos" bgcolor="#a5b6c6" align="left"> - <xsl:if test="$config/host-logo and not($config/host-logo = '')"> - <a href="{$config/host-url}"><img src="{$config/host-logo}" alt="{$config/host-name} logo" border="0"/></a> - </xsl:if> - </td> ! <td width="90%" align="center" class="copyright" bgcolor="#a5b6c6" colspan="2"> ! <span class="footnote">Copyright © ! <xsl:value-of select="$config/year"/> <xsl:value-of ! select="$config/vendor"/> All rights reserved. ! <br/><script language="JavaScript" type="text/javascript"><![CDATA[<!-- ! document.write(" - "+"Last Published: " + document.lastModified); ! // -->]]></script></span> ! </td> ! ! <td class="logos" bgcolor="#a5b6c6" align="right" nowrap="nowrap"> ! <xsl:if test="$filename = 'index.html' and $config/credits"> ! <xsl:for-each select="$config/credits/credit"> ! <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}" valign="top"> ! <img alt="{$name} logo" 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:if test="$width"><xsl:attribute name="width"><xsl:value-of select="$width"/></xsl:attribute></xsl:if> ! <xsl:if test="$height"><xsl:attribute name="height"><xsl:value-of select="$height"/></xsl:attribute></xsl:if> ! </img> ! <img src="{$spacer}" border="0" alt="" width="5" height="1" /> ! </a> ! </xsl:for-each> ! </xsl:if> ! </td> </tr> </table> - </body> - </html> - </xsl:template> - - - <xsl:template match="toc|toc2|tocc|toca"> - </xsl:template> - - - <xsl:template match="node()|@*" priority="-1"> - <xsl:copy> - <xsl:apply-templates select="@*"/> - <xsl:apply-templates/> - </xsl:copy> </xsl:template> ! ! ! ! </xsl:stylesheet> --- 21,515 ---- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ! <xsl:import href="../../../common/xslt/html/site2xhtml.xsl"/> ! ! <xsl:variable name="header-color" select="''"/> ! <xsl:variable name="header-color2" select="'#927762'"/> ! <xsl:variable name="menu-border" select="'#E4D3C6'"/> ! <xsl:variable name="background-bars" select="''"/> ! ! <xsl:template match="site"> <html> <head> ! <!-- <title><xsl:value-of select="div[@class='content']/table/tr/td/h1"/></title>--> <link rel="stylesheet" href="{$root}skin/page.css" type="text/css"/> + <!-- <script type="text/javascript" language="javascript" src="{$root}skin/fontsize.js"></script>--> </head> ! <body bgcolor="E4D3C6" text="#000000" onload="init()"> ! <!-- <script type="text/javascript">ndeSetTextSize();</script>--> ! <!-- ================================= top bar with logo's and search box =================================== --> ! ! <xsl:comment>================= start Banner ==================</xsl:comment> ! <table cellspacing="0" cellpadding="0" border="0" width="100%" summary="header with logos"> ! <tr> ! ! ! ! <!-- <xsl:comment>================= start Group Logo ==================</xsl:comment> ! <td bgcolor="{$header-color}"> ! <xsl:if test="$config/group-url"> ! <div class="headerlogo"> ! <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:call-template> ! </div> ! <span class="textheader"><xsl:value-of select="$config/group-name"/></span> ! </xsl:if> ! </td> ! <xsl:comment>================= end Group Logo ==================</xsl:comment>--> ! <!-- <xsl:comment>================= start Project Logo ==================</xsl:comment> ! <td bgcolor="{$header-color}" align="center" > ! <div class="headerlogo"> ! <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:call-template> ! </div> ! </td> ! <xsl:comment>================= end Project Logo ==================</xsl:comment> ! --> ! <td> ! <img src="resources/images/sheets-logo.png" alt="" usemap="#sheets_logo_Map" border="0" align="top"></img> ! <map id="sheets_logo_map"> ! <p><area shape="rect" alt="" coords="24,20,375,77" href="http://www.browsecode.org"></area></p> ! <p><area shape="circle" alt="" coords="541,93,85" href="http://www.browsecode.org"></area></p> ! </map> ! </td> ! </tr> ! <tr> ! ! <td> ! <span class="trail"> ! <xsl:if test="not($config/disable-search) or $config/disable-search='false' and $config/searchsite-domain and $config/searchsite-name"> ! <form method="get" action="http://www.google.com/search" onsubmit="q.value = query.value + ' site:{$config/searchsite-domain}'" target="_blank"> ! <table border="0" cellpadding="0" cellspacing="0" summary="search"> ! ! <tr><xsl:comment>=============SITE TREE===========</xsl:comment> ! <td><img src="{$spacer}" alt="" width="10" height="1" /><script type="text/javascript" language="JavaScript" src="{$root}skin/breadcrumbs.js"></script></td> ! ! <td><img class="spacer" src="{$spacer}" alt="" width="275" height="1" /></td> ! <td nowrap="nowrap"> + the <xsl:value-of select="$config/searchsite-name"/> site <input type="hidden" name="q"/> ! <input type="text" id="query" size="15"/><img src="{$spacer}" alt="" width="5" height="1" /><!-- input box <input type="submit" value="Search" name="Search"/> --> ! ! <!-- <span class="search"> ! the <xsl:value-of select="$config/searchsite-name"/> site--> ! <!-- setting search options off for the moment --> <!-- <input type="radio" name="web" value="web"/>web site  <input type="radio" name="mail" value="mail"/>mail lists --> ! <!-- </span> --> </td> </tr> ! ! </table> ! </form> </xsl:if> ! ! ! ! </span> ! </td> ! ! ! ! ! <!-- ! <xsl:comment>================= start Search ==================</xsl:comment> ! <td class="search" align="right" bgcolor="{$header-color}" rowspan="2" valign="top"> ! <xsl:if test="not($config/disable-search) or ! $config/disable-search='false' and $config/searchsite-domain and ! $config/searchsite-name"> ! <form method="get" action="http://www.google.com/search" target="_blank"> ! <table bgcolor="{$menu-border}" cellpadding="0" cellspacing="0" border="0" summary="search"> ! <tr> ! <td colspan="3" bgcolor="#a5b6c6"><img class="spacer" src="{$spacer}" alt="" width="1" height="10" /></td> ! </tr> ! <tr> ! <td colspan="3"><img class="spacer" src="{$spacer}" alt="" width="1" height="8" /></td> ! </tr> ! <tr> ! <td><img class="spacer" src="{$spacer}" alt="" width="1" height="1" /></td> ! <td nowrap="nowrap"> ! <input type="hidden" name="sitesearch" value="{$config/searchsite-domain}"/> ! <input type="text" id="query" name="q" size="15"/> ! <img class="spacer" src="{$spacer}" alt="" width="5" height="1" /> ! <input type="submit" value="Search" name="Search"/> ! <br /> ! the <xsl:value-of select="$config/searchsite-name"/> site ! ! </td> ! <td><img class="spacer" src="{$spacer}" alt="" width="1" height="1" /></td> ! </tr> ! ! <tr> ! <td colspan="3"><img class="spacer" src="{$spacer}" alt="" width="1" height="7" /></td> ! </tr> ! ! <tr> ! <td class="bottom-left-thick"></td> ! <td bgcolor="#a5b6c6"><img class="spacer" src="{$spacer}" alt="" width="1" height="1" /></td> ! <td class="bottom-right-thick"></td> ! </tr> ! </table> ! </form> ! </xsl:if> ! </td> ! <xsl:comment>================= end Search ==================</xsl:comment> ! --> ! <!-- <td align="right" bgcolor="{$header-color}"><img class="spacer" src="{$spacer}" alt="" width="10" height="10" /> ! <span class="textheader"><xsl:value-of select="$config/project-name"/></span> ! </td> ! --> ! </tr> ! <tr bgcolor="D6C1B1" valign="bottom"><td height="26"><xsl:apply-templates select="div[@class='tab']"/></td> ! ! </tr> ! ! ! <!-- <tr> ! <td> ! <xsl:comment>================= start Tabs ==================</xsl:comment> ! <xsl:apply-templates select="div[@class='tab']"/> ! <xsl:comment>================= end Tabs ==================</xsl:comment> ! </td> ! <td bgcolor="{$header-color}"><img class="spacer" src="{$spacer}" height="1" width="1" alt="" /></td> ! </tr> ! --> ! <!-- <tr> ! <td colspan="4" bgcolor="{$header-color2}" align="right"> ! <img src="{$spacer}" alt="" height="10" width="1" /> ! <span class="datenote"><script language="JavaScript" type="text/javascript"><![CDATA[]]></script></span> ! </td> ! </tr> ! --> ! ! </table> ! <xsl:comment>================= end Banner ==================</xsl:comment> ! ! ! <xsl:comment>================= start Menu, NavBar, Content ==================</xsl:comment> ! <table cellspacing="0" cellpadding="0" border="0" width="100%" bgcolor="D6C1B1" summary="page content"> ! ! <tr> ! <td valign="top"> ! ! <!-- If we have any menu items, draw a menu --> ! <xsl:if test="div[@class='menu']/ul/li"> ! <xsl:call-template name="menu"/> ! </xsl:if> ! </td> + <td width="100%" valign="top"> + <table cellspacing="0" cellpadding="0" border="0" width="100%" summary="content"> ! <xsl:comment>================= start middle NavBar ==================</xsl:comment> ! <!-- <tr><td bgcolor="{$header-color2}" colspan="3"><img class="spacer" src="{$spacer}" alt="" height="1" width="10" /></td></tr> ! <tr> ! <td bgcolor="{$background-bars}" width="10" align="left"><img class="spacer" src="{$spacer}" alt="" height="1" width="10" /></td> ! <td width="100%" bgcolor="{$background-bars}"> ! <table cellspacing="0" cellpadding="0" border="0" width="100%" > ! <tr> ! <td bgcolor="{$background-bars}" width="50%" align="left"> ! --> ! <!-- ============ Page number =========== --> ! <!-- ! <span class="trail"> !   ! <script type="text/javascript" language="JavaScript" src="{$root}skin/breadcrumbs.js"></script> ! ! </span> ! <img class="spacer" src="{$spacer}" alt="" height="8" width="10" /> ! </td> ! <td bgcolor="{$background-bars}" width="50%" align="right"> ! --> ! <!-- ============ Page navigation =========== --> ! <!-- <span class="trail">Font size: !  <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"/> !  <input type="button" onclick="ndeSetTextSize('reset'); return false;" title="Reset text" class="resetfont" value="Reset"/> ! </span> ! ! <img class="spacer" src="{$spacer}" alt="" height="8" width="10" /> ! </td> ! </tr> ! </table> ! </td> ! <td bgcolor="#CFDCED" width="10"> ! <font face="Arial, Helvetica, Sans-serif" size="4" color="{$menu-border}"> </font> ! <img class="spacer" src="{$spacer}" alt="" height="1" width="10" /></td> ! </tr> ! <tr><td bgcolor="{$header-color2}" colspan="4"><img class="spacer" src="{$spacer}" alt="" height="1" width="10" /></td></tr> ! --> ! <xsl:comment>================= end middle NavBar ==================</xsl:comment> ! ! <xsl:comment>================= start Content==================</xsl:comment> ! <tr> ! <td width="10" align="left"><img class="spacer" src="{$spacer}" alt="" height="1" width="10" /></td> ! <td width="100%" align="left"> ! <xsl:apply-templates select="div[@class='content']"/> ! </td> ! <td width="10"><img class="spacer" src="{$spacer}" alt="" height="1" width="10" /></td> ! </tr> ! <xsl:comment>================= end Content==================</xsl:comment> ! ! </table> ! </td> ! </tr> ! <tr> ! <td><!-- using breaks so it scales with font size --> ! <br/><br/> ! </td> ! </tr> ! </table> ! <xsl:comment>================= end Menu, NavBar, Content ==================</xsl:comment> ! ! <xsl:comment>================= start Footer ==================</xsl:comment> ! <table border="0" width="100%" cellpadding="0" cellspacing="0" summary="footer"> ! <tr> ! <td bgcolor="{$menu-border}" height="1" colspan="2"> ! <img class="spacer" src="{$spacer}" alt="" width="1" height="1" /> ! <a href="{$skin-img-dir}/label.gif"/> ! <a href="{$skin-img-dir}/page.gif"/> ! <a href="{$skin-img-dir}/chapter.gif"/> ! <a href="{$skin-img-dir}/chapter_open.gif"/> ! <a href="{$skin-img-dir}/current.gif"/> ! <a href="/favicon.ico"/> ! </td> ! </tr> ! <tr> ! <xsl:if test="$config/host-logo and not($config/host-logo = '')"> ! <div class="host"> ! <img class="spacer" src="{$spacer}" width="10" height="1" alt=""/> ! <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> ! <td width="90%" align="center" class="copyright" bgcolor="{$header-color2}" colspan="2"> ! <span class="footnote">Copyright © ! <xsl:value-of select="$config/year"/> <xsl:value-of ! select="$config/vendor"/> All rights reserved. ! <br/><script language="JavaScript" type="text/javascript"><![CDATA[<!-- ! document.write(" - "+"Last Published: " + document.lastModified); ! // -->]]></script></span> ! </td> ! <td class="logos" bgcolor="{$header-color2}" align="right" nowrap="nowrap"> ! ! <xsl:call-template name="compliancy-logos"/> ! <!-- old place where to put credits icons--> ! <!-- ! <xsl:if test="$filename = 'index.html' and $config/credits"> ! <xsl:for-each select="$config/credits/credit[not(@role='pdf')]"> ! <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" 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:if test="$width"><xsl:attribute name="width"><xsl:value-of select="$width"/></xsl:attribute></xsl:if> ! <xsl:if test="$height"><xsl:attribute name="height"><xsl:value-of select="$height"/></xsl:attribute></xsl:if> ! </img> ! <img class="spacer" src="{$spacer}" border="0" alt="" width="5" height="1" /> ! </a> ! </xsl:for-each> ! </xsl:if> ! --> ! </td> ! </tr> ! </table> ! <xsl:comment>================= end Footer ==================</xsl:comment> ! </body> ! </html> ! </xsl:template> ! ! ! <xsl:template name="menu"> ! <table cellpadding="0" cellspacing="0" border="0" summary="menu"> ! ! ! <xsl:comment>================= start left top NavBar ==================</xsl:comment> ! ! <tr> ! <td width = "10"></td><td bgcolor="{$header-color2}" colspan="9"><img class="spacer" src="{$spacer}" alt="" height="1" width="1" /></td> ! ! </tr> ! ! <tr> ! ! ! <td valign="top" rowspan="3"> ! <table cellspacing="0" cellpadding="0" border="0" summary="blue line"> ! <tr><td><img class="spacer" src="{$spacer}" alt="" height="1" width="10" /></td></tr> ! <tr><td bgcolor="{$background-bars}"><font face="Arial, Helvetica, Sans-serif" size="4" color="{$menu-border}"> </font></td></tr> ! <tr><td bgcolor="{$header-color}"><img class="spacer" src="{$spacer}" alt="" height="1" width="10" /></td></tr> </table> </td> + ! ! ! ! <xsl:comment>================= end left top NavBar ==================</xsl:comment> ! ! <td bgcolor="{$header-color2}"><img class="spacer" src="{$spacer}" alt="" height="1" width="1" /></td> ! <td bgcolor="{$menu-border}" valign="bottom"><img class="spacer" src="{$spacer}" alt="" height="10" width="10" /></td> ! <td bgcolor="{$header-color2}" valign="top" nowrap="nowrap"> ! ! ! ! <xsl:comment>================= start Menu items ==================</xsl:comment> ! ! <div class="menu"> ! <xsl:for-each select = "div[@class='menu']/ul/li"> ! <xsl:call-template name = "innermenuli" /> ! </xsl:for-each> ! </div> ! ! <xsl:comment>================= end Menu items ==================</xsl:comment> </td> + <td bgcolor="{$menu-border}" valign="bottom"><img class="spacer" src="{$spacer}" alt="" height="10" width="10" /></td> + <td bgcolor="{$header-color2}"><img class="spacer" src="{$spacer}" alt="" height="1" width="1" /></td> </tr> ! <tr> ! <td class="bottom-left-thick" rowspan="2" colspan="2"></td> ! <td bgcolor="{$header-color2}"><img class="spacer" src="{$spacer}" alt="" border="0" width="10" height="10" /></td> ! <td class="bottom-right-thick" rowspan="2" colspan="2"></td> ! </tr> ! <tr> ! <td bgcolor="{$header-color2}" height="1"><img class="spacer" src="{$spacer}" alt="" height="1" width="1" /></td> </tr> + <tr> + <td height="5"><img class="spacer" src="{$spacer}" alt="" height="5" width="1" /></td> + </tr> + + + <xsl:if test="$filename = 'index.html' and $config/credits"> + <xsl:for-each select="$config/credits/credit[not(@role='pdf')]"> + <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"/> + <tr> + <td height="5"><img class="spacer" src="{$spacer}" alt="" height="5" width="1" /></td> + </tr> + <tr> + <td><img class="spacer" src="{$spacer}" alt="" height="1" width="1" /></td> + <td colspan="4" height="5" class="logos"> + <a href="{$url}"> + <img alt="{$name} logo" 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:if test="$width"><xsl:attribute name="width"><xsl:value-of select="$width"/></xsl:attribute></xsl:if> + <xsl:if test="$height"><xsl:attribute name="height"><xsl:value-of select="$height"/></xsl:attribute></xsl:if> + </img> + <img class="spacer" src="{$spacer}" border="0" alt="" width="5" height="1" /> + </a> + </td> + </tr> + </xsl:for-each> + </xsl:if> + </table> </xsl:template> ! ! ! <xsl:template name="innermenuli"> ! <div class="menutitle"><xsl:value-of select="font"/></div> ! <div class="menuitemgroup"> ! <xsl:for-each select= "ul/li"> ! ! <xsl:choose> ! <xsl:when test="a"> ! <div class="menuitem"><a href="{a/@href}"><xsl:value-of select="a" /></a></div> ! </xsl:when> ! <xsl:when test="span/@class='sel'"> ! <div class="menupage"> ! <div class="menupagetitle"><xsl:value-of select="span" /></div> ! <xsl:if test="//toc/tocc"> ! <div class="menupageitemgroup"> ! <xsl:for-each select = "//toc/tocc"> ! <div class="menupageitem"> ! <xsl:choose> ! <xsl:when test="string-length(toca)>15"> ! <a href="{toca/@href}" title="{toca}"><xsl:value-of select="substring(toca,0,20)" />...</a> ! </xsl:when> ! <xsl:otherwise> ! <a href="{toca/@href}"><xsl:value-of select="toca" /></a> ! </xsl:otherwise> ! </xsl:choose> ! ! <xsl:if test="toc2/tocc"> ! <!-- nicolaken: this enables double-nested page links--> ! <!-- ! <ul> ! <xsl:for-each select = "toc2/tocc"> ! ! <xsl:choose> ! <xsl:when test="string-length(toca)>15"> ! <li><a href="{toca/@href}" title="{toca}"><xsl:value-of select="substring(toca,0,20)" />...</a></li> ! </xsl:when> ! <xsl:otherwise> ! <li><a href="{toca/@href}"><xsl:value-of select="toca" /></a></li> ! </xsl:otherwise> ! </xsl:choose> ! ! </xsl:for-each> ! </ul> ! --> ! </xsl:if> ! </div> ! </xsl:for-each> ! </div> ! </xsl:if> ! </div> ! </xsl:when> ! <xsl:otherwise> ! <xsl:call-template name = "innermenuli" /> ! </xsl:otherwise> ! </xsl:choose> ! ! </xsl:for-each> ! </div> ! </xsl:template> ! ! ! <xsl:template match="toc|toc2|tocc|toca"> ! </xsl:template> ! ! ! <xsl:template match="node()|@*" priority="-1"> ! <xsl:copy> ! <xsl:apply-templates select="@*"/> ! <xsl:apply-templates/> ! </xsl:copy> ! </xsl:template> ! </xsl:stylesheet> Index: tab2menu.xsl =================================================================== RCS file: /cvsroot/sheets/sheets/src/documentation/skins/sheets-site/xslt/html/tab2menu.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tab2menu.xsl 6 Dec 2002 12:54:45 -0000 1.2 --- tab2menu.xsl 5 Aug 2003 20:02:28 -0000 1.3 *************** *** 23,62 **** $Id$ --> - <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:param name="path"/> - <xsl:param name="dir_index" select="'index.html'"/> - <xsl:include href="dotdots.xsl"/> - <xsl:include href="pathutils.xsl"/> - - <!-- NOTE: Xalan has a bug (race condition?) where sometimes $root is only half-evaluated --> - <xsl:variable name="root"> - <xsl:call-template name="dotdots"> - <xsl:with-param name="path" select="$path"/> - </xsl:call-template> - </xsl:variable> - - <xsl:variable name="skin-img-dir" select="concat(string($root), 'skin/images')"/> - - <xsl:template name="spacer"> - <td width="8"> - <img src="{$root}skin/images/spacer.gif" width="8" height="8" alt=""/> - </td> - </xsl:template> - - <!-- - The longest path of any tab, whose path is a subset of the current URL. Ie, - the path of the 'current' tab. - --> - <xsl:variable name="longest-dir"> - <xsl:for-each select="/tabs/tab[starts-with($path, @dir|@href)]"> - <xsl:sort select="string-length(@dir|@href)" - data-type="number" order="descending"/> - <xsl:if test="position()=1"> - <xsl:value-of select="@dir|@href"/> - </xsl:if> - </xsl:for-each> - </xsl:variable> <xsl:template match="tabs"> --- 23,29 ---- $Id$ --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:import href="../../../common/xslt/html/tab2men... [truncated message content] |