vgritsenko    02/02/01 19:21:04

  Modified:    src/webapp/stylesheets simple-samples2html.xsl
  Log:
  ideal balancing
  
  Revision  Changes    Path
  1.6       +5 -2      xml-cocoon2/src/webapp/stylesheets/simple-samples2html.xsl
  
  Index: simple-samples2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/stylesheets/simple-samples2html.xsl,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- simple-samples2html.xsl   29 Jan 2002 02:51:45 -0000      1.5
  +++ simple-samples2html.xsl   2 Feb 2002 03:21:04 -0000       1.6
  @@ -36,7 +36,7 @@
     <xsl:variable name="all-samples" select="count(group/sample)"/>
     <xsl:variable name="half-samples" select="round($all-samples div 2)"/>
   
  -  <xsl:variable name="half">
  +  <xsl:variable name="half-possibilities">
       <xsl:for-each select="group">
         <xsl:if test="position() &lt; last() and position() &gt; 1">
           <xsl:variable name="group-position" select="position()"/>
  @@ -74,10 +74,13 @@
             </xsl:choose>
           </xsl:variable>
           <xsl:if test="$prev-deviation &gt;= $curr-deviation and $curr-deviation 
&lt;= $next-deviation">
  -          <xsl:value-of select="$group-position"/>
  +          <xsl:value-of select="$group-position"/><xsl:text> </xsl:text>
           </xsl:if>
         </xsl:if>
       </xsl:for-each>
  +  </xsl:variable>
  +  <xsl:variable name="half">
  +    <xsl:value-of select="substring-before($half-possibilities, ' ')"/>
     </xsl:variable>
   
     <table width="100%">
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to