forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/skins/krysalis-site/xslt/html document2html.xsl site2xhtml.xsl tab2menu.xsl
Date Tue, 11 Feb 2003 14:19:06 GMT
jefft       2003/02/11 06:19:06

  Modified:    src/resources/skins/krysalis-site/xslt/html
                        document2html.xsl site2xhtml.xsl tab2menu.xsl
  Log:
  Zap tabs, reindent to 2 spaces
  
  Revision  Changes    Path
  1.7       +74 -74    xml-forrest/src/resources/skins/krysalis-site/xslt/html/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/krysalis-site/xslt/html/document2html.xsl,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- document2html.xsl	11 Feb 2003 11:46:55 -0000	1.6
  +++ document2html.xsl	11 Feb 2003 14:19:06 -0000	1.7
  @@ -28,13 +28,13 @@
                 </h1>
               </td>
               <!--td align="center" width="80" nowrap><a href="" class="dida"><img src="images/singlepage.gif"><br>
  -              single page<br>
  -              version</a></td-->
  +                  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" alt="print-friendly version"/><br/>
  -                print-friendly<br/>
  -                PDF</a>
  +                  <img border="0" src="{$skin-img-dir}/printer.png" alt="print-friendly version"/><br/>
  +                  print-friendly<br/>
  +                  PDF</a>
                 </td>
               </xsl:if>
             </tr>
  @@ -47,8 +47,8 @@
         </xsl:if>
   
         <xsl:apply-templates select="body"/>
  -      
  -       <xsl:if test="header/authors">
  +
  +      <xsl:if test="header/authors">
           <p align="right">
             <font size="-2">
               <xsl:for-each select="header/authors/person">
  @@ -61,13 +61,13 @@
             </font>
           </p>
         </xsl:if>
  -      
  +
       </div>
     </xsl:template>
   
     <xsl:template match="body">
   
  -<xsl:if test="section and not($isfaq='true')">
  +    <xsl:if test="section and not($isfaq='true')">
         <toc>
           <xsl:for-each select="section">
             <tocc>
  @@ -116,72 +116,72 @@
     <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">
  -
  -             <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>
  -        <!-- If a faq, answer sections will be level 3 (1=Q/A, 2=part) -->
  -        <xsl:when test="$level=3 and $isfaq='true'">
  -          <h4><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: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>
  +      <!-- If a faq, answer sections will be level 3 (1=Q/A, 2=part) -->
  +      <xsl:when test="$level=3 and $isfaq='true'">
  +        <h4><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:when>
  +
  +      <xsl:otherwise>
  +        <h5><xsl:value-of select="title"/></h5>
  +        <xsl:apply-templates select="*[not(self::title)]"/>
  +      </xsl:otherwise>
  +    </xsl:choose>
  +
  +  </xsl:template>  
   
  -	 	<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>
  @@ -225,7 +225,7 @@
     <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>
  
  
  
  1.10      +309 -311  xml-forrest/src/resources/skins/krysalis-site/xslt/html/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/krysalis-site/xslt/html/site2xhtml.xsl,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- site2xhtml.xsl	10 Feb 2003 06:46:03 -0000	1.9
  +++ site2xhtml.xsl	11 Feb 2003 14:19:06 -0000	1.10
  @@ -24,7 +24,7 @@
     <xsl:import href="../../../common/xslt/html/site2xhtml.xsl"/>
   
     <xsl:variable name="header-color" select="'#FFFFFF'"/>
  -  <xsl:variable name="header-color2" select="'#a5b6c6'"/>  
  +  <xsl:variable name="header-color2" select="'#a5b6c6'"/>
     <xsl:variable name="menu-border" select="'#F7F7F7'"/>
     <xsl:variable name="background-bars" select="'#CFDCED'"/>
   
  @@ -36,327 +36,325 @@
           <link rel="stylesheet" href="{$root}skin/page.css" type="text/css"/>
         </head>
         <body bgcolor="#FFFFFF" text="#000000">
  -      
  -    <!-- ================================= 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">
  -            <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>
  -          </xsl:if>
  -        </td>
  -        <xsl:comment>================= end Group Logo ==================</xsl:comment>
  -        <xsl:comment>================= start Project Logo ==================</xsl:comment>
  -        <td bgcolor="{$header-color}" align="center" width="100%">
  -          <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>
  -        </td>
  -        <xsl:comment>================= end Project Logo ==================</xsl:comment>
  -
  -       <xsl:comment>================= start Search ==================</xsl:comment>
  -        <td 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">
  +        <!-- ================================= 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">
  +                <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>
  +              </xsl:if>
  +            </td>
  +            <xsl:comment>================= end Group Logo ==================</xsl:comment>
  +            <xsl:comment>================= start Project Logo ==================</xsl:comment>
  +            <td bgcolor="{$header-color}" align="center" width="100%">
  +              <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>
  +            </td>
  +            <xsl:comment>================= end Project Logo ==================</xsl:comment>
  +
  +            <xsl:comment>================= start Search ==================</xsl:comment>
  +            <td 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 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="sitesearch" value="{$config/searchsite-domain}"/>
  +                        <input type="text" id="query" name="q" 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&#160;&#160;<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>
  +            <xsl:comment>================= end Search ==================</xsl:comment>
  +
  +            <td bgcolor="{$header-color}"><img src="{$spacer}" alt="" width="10" height="10" /></td>
  +          </tr>
  +          <tr>
  +            <td colspan="2" bgcolor="{$header-color}" valign="bottom">
  +              <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 src="{$spacer}" height="1" width="1" alt="" /></td>
  +          </tr>
  +          <tr>
  +            <td colspan="4" bgcolor="{$header-color2}"><img src="{$spacer}" alt="" height="10" width="1" /></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="#ffffff" summary="page content">
  +          <tr>
  +            <td valign="top">
  +              <table cellpadding="0" cellspacing="0" border="0" summary="menu">
                   <tr>
  -                  <td colspan="3" bgcolor="#a5b6c6"><img src="{$spacer}" alt="" width="1" height="10" /></td>
  +                  <xsl:comment>================= start left top NavBar ==================</xsl:comment>
  +                  <td valign="top" rowspan="3">
  +                    <table cellspacing="0" cellpadding="0" border="0" summary="blue line">
  +                      <tr><td bgcolor="{$header-color2}"><img 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}">&#160;</font></td></tr>
  +                      <tr><td bgcolor="{$header-color}"><img src="{$spacer}" alt="" height="1" width="10" /></td></tr>
  +                    </table>
  +                  </td>
  +                  <xsl:comment>================= end left top NavBar ==================</xsl:comment>
  +
  +                  <td bgcolor="{$header-color2}"><img src="{$spacer}" alt="" height="1" width="1" /></td>
  +                  <td bgcolor="{$menu-border}" valign="bottom"><img src="{$spacer}" alt="" height="10" width="10" /></td>
  +                  <td bgcolor="{$menu-border}" valign="top" nowrap="nowrap">
  +
  +                    <xsl:comment>================= start Menu items ==================</xsl:comment>
  +                    <!-- original: <xsl:apply-templates select="div[@class='menu']"/>    -->
  +
  +                    <div class="menu"><ul>
  +                        <xsl:for-each select = "div[@class='menu']/ul/li">
  +                          <xsl:call-template name = "innermenuli" />
  +                        </xsl:for-each>
  +                    </ul></div>
  +
  +                    <xsl:comment>================= end Menu items ==================</xsl:comment>
  +                  </td>
  +                  <td bgcolor="{$menu-border}" valign="bottom"><img src="{$spacer}" alt="" height="10" width="10" /></td>
  +                  <td bgcolor="{$header-color2}"><img src="{$spacer}" alt="" height="1" width="1" /></td>
                   </tr>
  +
                   <tr>
  -                  <td colspan="3"><img src="{$spacer}" alt="" width="1" height="8" /></td>
  -                </tr>                
  +                  <td class="bottom-left-thick" rowspan="2" colspan="2"></td>
  +                  <td bgcolor="{$header-color2}"><img src="{$spacer}" alt="" border="0" width="10" height="10" /></td>
  +                  <td class="bottom-right-thick" rowspan="2" colspan="2"></td>
  +                </tr>
                   <tr>
  -                  <td><img 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 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&#160;&#160;<input type="radio" name="mail" value="mail"/>mail lists
  -                      -->
  -                    </span>
  -                  </td>
  -                  <td><img src="{$spacer}" alt="" width="1" height="1" /></td>
  +                  <td bgcolor="{$header-color2}" 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">
  +
  +                <xsl:comment>================= start middle NavBar ==================</xsl:comment>
  +                <tr><td bgcolor="{$header-color2}" colspan="4"><img src="{$spacer}" alt="" height="1" width="10" /></td></tr>
                   <tr>
  -                  <td colspan="3"><img src="{$spacer}" alt="" width="1" height="7" /></td>
  +                  <td bgcolor="{$background-bars}" width="10" align="left"><img src="{$spacer}" alt="" height="1" width="10" /></td>
  +                  <td bgcolor="{$background-bars}" width="50%" align="left">
  +                    <!-- ============ Page number =========== -->
  +                    <span class="trail">
  +                      &#160;
  +                      <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="{$background-bars}" width="50%" align="right">
  +                    <!-- ============ Page navigation =========== -->
  +                    <font face="Arial, Helvetica, Sans-serif" size="3" color="{$menu-border}">
  +                      &#160;
  +                      <!-- <b>&#171; prev&#160;&#160;<font size="4">[3]</font>&#160;&#160;next &#187;</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="{$header-color2}" colspan="4"><img src="{$spacer}" alt="" height="1" width="10" /></td></tr>
  +                <xsl:comment>================= end middle NavBar ==================</xsl:comment>
  +
  +                <xsl:comment>================= start Content==================</xsl:comment>
                   <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>
  +                  <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>
  +                <xsl:comment>================= end Content==================</xsl:comment>
  +
                 </table>
  -            </form>
  -          </xsl:if>
  -        </td>
  -        <xsl:comment>================= end Search ==================</xsl:comment>
  -       
  -        <td bgcolor="{$header-color}"><img src="{$spacer}" alt="" width="10" height="10" /></td>
  -      </tr>
  -      <tr>
  -        <td colspan="2" bgcolor="{$header-color}" valign="bottom">
  -          <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 src="{$spacer}" height="1" width="1" alt="" /></td>
  -      </tr>
  -      <tr>
  -        <td colspan="4" bgcolor="{$header-color2}"><img src="{$spacer}" alt="" height="10" width="1" /></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="#ffffff" summary="page content">
  -      <tr>
  -        <td valign="top">
  -          <table cellpadding="0" cellspacing="0" border="0" summary="menu">
  -            <tr>
  -              <xsl:comment>================= start left top NavBar ==================</xsl:comment>
  -              <td valign="top" rowspan="3">
  -                <table cellspacing="0" cellpadding="0" border="0" summary="blue line">
  -                  <tr><td bgcolor="{$header-color2}"><img 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}">&#160;</font></td></tr>
  -                  <tr><td bgcolor="{$header-color}"><img src="{$spacer}" alt="" height="1" width="10" /></td></tr>
  -                </table>
  -              </td>
  -              <xsl:comment>================= end left top NavBar ==================</xsl:comment>
  -              
  -              <td bgcolor="{$header-color2}"><img src="{$spacer}" alt="" height="1" width="1" /></td>
  -              <td bgcolor="{$menu-border}" valign="bottom"><img src="{$spacer}" alt="" height="10" width="10" /></td>
  -              <td bgcolor="{$menu-border}" valign="top" nowrap="nowrap">
  -                  
  -                <xsl:comment>================= start Menu items ==================</xsl:comment>
  -                <!-- original: <xsl:apply-templates select="div[@class='menu']"/>    -->
  -                
  -                 <div class="menu"><ul>                
  -                  <xsl:for-each select = "div[@class='menu']/ul/li">
  -                  	<xsl:call-template name = "innermenuli" />
  -                  </xsl:for-each>
  -                 </ul></div>
  -                 
  -                <xsl:comment>================= end Menu items ==================</xsl:comment>
  -              </td>
  -              <td bgcolor="{$menu-border}" valign="bottom"><img src="{$spacer}" alt="" height="10" width="10" /></td>
  -              <td bgcolor="{$header-color2}"><img 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 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 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">
  -          
  -            <xsl:comment>================= start middle NavBar ==================</xsl:comment>          
  -            <tr><td bgcolor="{$header-color2}" colspan="4"><img src="{$spacer}" alt="" height="1" width="10" /></td></tr>
  -            <tr>
  -              <td bgcolor="{$background-bars}" width="10" align="left"><img src="{$spacer}" alt="" height="1" width="10" /></td>
  -              <td bgcolor="{$background-bars}" width="50%" align="left">
  -                <!-- ============ Page number =========== -->
  -                <span class="trail">
  -                &#160;        
  -                 <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="{$background-bars}" width="50%" align="right">
  -                <!-- ============ Page navigation =========== -->
  -                <font face="Arial, Helvetica, Sans-serif" size="3" color="{$menu-border}">
  -                &#160;
  -                <!-- <b>&#171; prev&#160;&#160;<font size="4">[3]</font>&#160;&#160;next &#187;</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="{$header-color2}" colspan="4"><img 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 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>
  -            <xsl:comment>================= end Content==================</xsl:comment>
  -            
  -          </table>
  -        </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 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 src="{$root}skin/images/spacer.gif" 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 &#169;
  -          <xsl:value-of select="$config/year"/>&#160;<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"/>
  -
  -        <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 src="{$spacer}" border="0" alt="" width="5" height="1" />
  -            </a>
  -          </xsl:for-each>
  -        </xsl:if>
  -        </td>
  -      </tr>
  -    </table>
  -    <xsl:comment>================= end Footer ==================</xsl:comment>    
  +            </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 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 src="{$root}skin/images/spacer.gif" 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 &#169;
  +                <xsl:value-of select="$config/year"/>&#160;<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"/>
  +
  +              <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 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="innermenuli">
  -      <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:when test="span/@class='sel'">
  -							 <li>
  -							   <span class="sel"><xsl:value-of select="span" /></span>
  -	        	                <xsl:if test="//toc/tocc"> <i>
  -						        <ul> 
  -						        <xsl:for-each select = "//toc/tocc">
  -						         <li>
  -						         <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"> 
  -						        	<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>
  -                                  </li> 
  -						         </xsl:for-each>   
  -                                </ul></i>
  -						       </xsl:if>      
  -                              </li>
  -							</xsl:when>
  -			  				<xsl:otherwise>
  -                  	            <xsl:call-template name = "innermenuli" />
  -							</xsl:otherwise>
  -						</xsl:choose>
  -                  	                
  -                       </xsl:for-each>
  -                      </ul>                      
  -                    </li>
  -   </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:template name="innermenuli">
  +    <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:when test="span/@class='sel'">
  +              <li>
  +                <span class="sel"><xsl:value-of select="span" /></span>
  +                <xsl:if test="//toc/tocc"> <i>
  +                    <ul>
  +                      <xsl:for-each select = "//toc/tocc">
  +                        <li>
  +                          <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">
  +                            <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>
  +                        </li>
  +                      </xsl:for-each>
  +                  </ul></i>
  +                </xsl:if>
  +              </li>
  +            </xsl:when>
  +            <xsl:otherwise>
  +              <xsl:call-template name = "innermenuli" />
  +            </xsl:otherwise>
  +          </xsl:choose>
  +
  +        </xsl:for-each>
  +      </ul>
  +    </li>
  +  </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>
  
  
  
  1.3       +7 -7      xml-forrest/src/resources/skins/krysalis-site/xslt/html/tab2menu.xsl
  
  Index: tab2menu.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/krysalis-site/xslt/html/tab2menu.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- tab2menu.xsl	27 Jan 2003 18:35:00 -0000	1.2
  +++ tab2menu.xsl	11 Feb 2003 14:19:06 -0000	1.3
  @@ -54,15 +54,15 @@
         <table cellspacing="0" cellpadding="0" border="0" summary="selected tab">
           <tr>
             <td class="top-left" height="22"></td>
  -          
  +
             <td bgcolor="#a5b6c6" valign="middle" height="22">
               <span class="tab">
                 <b>
                   <xsl:call-template name="base-selected"/>
                 </b>
  -             </span>
  -           </td>
  -          
  +            </span>
  +          </td>
  +
             <td class="top-right" height="22"></td>
           </tr>
         </table>
  @@ -73,9 +73,9 @@
       <td valign="bottom">
         <table cellspacing="0" cellpadding="0" border="0" summary="non selected tab">
           <tr>
  -        
  +
             <td class="top-left-tab" height="18"></td>
  -          
  +
             <td bgcolor="#cedfef" valign="middle" height="18">
               <span class="tab">
                 <xsl:call-template name="base-not-selected"/>
  
  
  

Mime
View raw message