mturk       2004/11/19 01:30:47

  Modified:    jk/xdocs style.xsl
  Log:
  Added <directives> tag for three column directive layout
  
  Revision  Changes    Path
  1.5       +62 -7     jakarta-tomcat-connectors/jk/xdocs/style.xsl
  
  Index: style.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/xdocs/style.xsl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- style.xsl 18 Nov 2004 19:09:00 -0000      1.4
  +++ style.xsl 19 Nov 2004 09:30:47 -0000      1.5
  @@ -279,12 +279,14 @@
       <table border="1" cellpadding="5">
         <tr>
           <th width="220px" bgcolor="{$attributes-color}">
  -          <xsl:if test="@name = ''">
  -             <font color="#ffffff">Attribute</font>
  -          </xsl:if>           
  -          <xsl:if test="@name != ''">
  -             <font color="#ffffff"><xsl:value-of select="@name"/></font>
  -          </xsl:if>           
  +               <xsl:choose>

  +            <xsl:when test="@name != ''">

  +               <font color="#ffffff"><xsl:value-of select="@name"/></font>

  +            </xsl:when>

  +            <xsl:otherwise>

  +               <font color="#ffffff">Attribute</font>
  +            </xsl:otherwise>

  +          </xsl:choose>          
           </th>
           <th width="*" bgcolor="{$attributes-color}">
             <font color="#ffffff">Description</font>
  @@ -308,6 +310,50 @@
       </table>
     </xsl:template>
   
  +  <!-- Process an attributes list with nested attribute elements -->
  +  <xsl:template match="directives">
  +    <table border="1" cellpadding="5">
  +      <tr>
  +        <th width="15%" bgcolor="{$attributes-color}">
  +          <font color="#ffffff">Directive</font>
  +        </th>
  +        <th width="10%" bgcolor="{$attributes-color}">
  +          <font color="#ffffff">Default</font>
  +        </th>
  +        <th width="75%" bgcolor="{$attributes-color}">
  +          <font color="#ffffff">Description</font>
  +        </th>
  +      </tr>
  +      <xsl:for-each select="directive">
  +        <tr>
  +          <td align="left" valign="center">
  +            <xsl:if test="@required = 'true'">
  +              <strong><code><xsl:value-of select="@name"/></code></strong>
  +            </xsl:if>
  +            <xsl:if test="@required != 'true'">
  +              <code><xsl:value-of select="@name"/></code>
  +            </xsl:if>
  +          </td>
  +               <xsl:choose>

  +            <xsl:when test="@default != ''">

  +               <td align="left" valign="center">          
  +               <code><xsl:value-of select="@default"/></code>

  +              </td>
  +            </xsl:when>

  +            <xsl:otherwise>

  +               <td align="center" valign="center">          
  +              <code>-</code>

  +              </td>
  +            </xsl:otherwise>

  +          </xsl:choose>          
  +          <td align="left" valign="center">
  +            <xsl:apply-templates/>
  +          </td>
  +        </tr>
  +      </xsl:for-each>
  +    </table>
  +  </xsl:template>
  +
     <!-- Fix relative links in printer friendly versions of the docs -->
     <xsl:template match="a">
       <xsl:variable name="href" select="@href"/>
  @@ -332,6 +378,15 @@
           <a name="{$name}"><xsl:apply-templates/></a>
         </xsl:otherwise>
       </xsl:choose>
  +  </xsl:template>
  +    
  +  <!-- Warning -->
  +  <xsl:template match="warn">
  +    <p>
  +    <font color="#ff0000">
  +    <xsl:apply-templates/>
  +    </font>
  +    </p>
     </xsl:template>
   
     <!-- Changelog related tags -->
  
  
  

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

Reply via email to