dims 01/06/01 10:22:40 Modified: webapp/stylesheets simple-samples2html.xsl Log: With this fix the main sample page will work fine with both even and odd number of group's. Revision Changes Path 1.2 +1 -1 xml-cocoon2/webapp/stylesheets/simple-samples2html.xsl Index: simple-samples2html.xsl =================================================================== RCS file: /home/cvs/xml-cocoon2/webapp/stylesheets/simple-samples2html.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- simple-samples2html.xsl 2001/05/09 20:50:11 1.1 +++ simple-samples2html.xsl 2001/06/01 17:22:39 1.2 @@ -36,7 +36,7 @@ <xsl:for-each select="group"> <xsl:variable name="here" select="position()"/> <xsl:choose> - <xsl:when test="../group[$here+$half]"> + <xsl:when test="../group[$here<=$half]"> <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" width="97%" align="center"> <tr> <td bgcolor="#0086b2" width="100%" align="left"> ---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]