husted      2002/08/31 06:13:36

  Modified:    doc/stylesheets userGuide.xsl
  Log:
  Update to provide "Back to Top" links on tag pages and to list authors in the 
otherwise unused chapter segment.
  
  Revision  Changes    Path
  1.9       +18 -4     jakarta-struts/doc/stylesheets/userGuide.xsl
  
  Index: userGuide.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/doc/stylesheets/userGuide.xsl,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- userGuide.xsl     3 Aug 2002 18:43:40 -0000       1.8
  +++ userGuide.xsl     31 Aug 2002 13:13:36 -0000      1.9
  @@ -24,7 +24,14 @@
                   select="document('../userGuide/project.xml')/project"/>
       <html>
       <head>
  -    <meta name="author" content="{properties/author/.}"/>
  +
  +    <xsl:for-each select="properties/author">
  +    <xsl:variable name="author">
  +      <xsl:value-of select="."/>
  +    </xsl:variable>
  +    <meta name="author" content="{$author}"/>
  +    </xsl:for-each>
  +
       <!-- <link rel="stylesheet" type="text/css" href="default.css"/> -->
       <xsl:choose>
         <xsl:when test="properties/title">
  @@ -41,7 +48,7 @@
   
       <body bgcolor="{$body-bg}" text="{$body-fg}" link="{$body-link}"
             alink="{$body-link}" vlink="{$body-link}">
  -
  + 
       <table border="0" width="100%" cellspacing="5">
   
         <tr><td colspan="2">
  @@ -102,6 +109,12 @@
             <strong><xsl:value-of select="@name"/></strong>
           </font>
         </td></tr>
  +      <tr><td><p>Contributors: </p><ul>
  +    <xsl:for-each select="/document/properties/author">
  +    <li><xsl:value-of select="."/></li>
  +    </xsl:for-each>
  +    </ul>
  +      </td></tr>
       </table>
       <xsl:apply-templates select="section" />
     </xsl:template>
  @@ -180,7 +193,7 @@
           <blockquote>
             <table border="1" cellspacing="2" cellpadding="2">
               <tr>
  -              <th width="15%">Tag Name</th>
  +              <th width="15%"><a name="index"></a>Tag Name</th>
                 <th>Description</th>
               </tr>
               <xsl:for-each select="tag">
  @@ -238,6 +251,7 @@
           <xsl:call-template name="document-tag-attributes" />
         </xsl:if>
       </table>
  +    <p><a href="#index">Back to top</a></p>
     </xsl:template>
   
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to