jstrachan    2002/12/11 11:12:18

  Modified:    src/plugins-build/xdoc site.jsl
  Log:
  Patched the alternating row colouring
  
  Revision  Changes    Path
  1.10      +6 -5      jakarta-turbine-maven/src/plugins-build/xdoc/site.jsl
  
  Index: site.jsl
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/xdoc/site.jsl,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- site.jsl  11 Dec 2002 18:58:55 -0000      1.9
  +++ site.jsl  11 Dec 2002 19:12:18 -0000      1.10
  @@ -340,22 +340,23 @@
         
         <jsl:template match="tr">
                                <x:element name="tr">
  +
                                        <j:choose>
  -                                             <j:when test="${(count % 2) gt 0}">
  -                                                     <x:attribute 
name="class">a</x:attribute>
  +                                             <j:when test="${rowMode == 'a'}">
  +                                                     <j:set var="rowMode" 
value="b"/>
                                                </j:when>
                                                <j:otherwise>
  -                                                     <x:attribute 
name="class">b</x:attribute>
  +                                                     <j:set var="rowMode" 
value="a"/>
                                                </j:otherwise>
                                        </j:choose>
  +
  +                                     <x:attribute 
name="class">${rowMode}</x:attribute>
                                        
                                        <!-- copy attributes -->
                                        <x:forEach select="@*">
                                                <x:set var="attr" value="."/>
                                                <x:attribute 
name="${attr.name}">${attr.text}</x:attribute>
                                        </x:forEach>
  -                                     
  -                                     <j:set var="count" value="${1+count}"/>
                                        
                                        <jsl:applyTemplates select="*"/>
                                </x:element>
  
  
  

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

Reply via email to