froehlich 02/04/19 10:08:00
Modified: src/java/org/apache/cocoon/components/language/markup/xsp/java
Tag: cocoon_2_0_3_branch esql.xsl
Log:
applied patch from Tim Myers [EMAIL PROTECTED]
esql:group, footer fix
Revision Changes Path
No revision
No revision
1.13.2.1 +6 -2
xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl
Index: esql.xsl
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl,v
retrieving revision 1.13
retrieving revision 1.13.2.1
diff -u -r1.13 -r1.13.2.1
--- esql.xsl 22 Feb 2002 12:14:12 -0000 1.13
+++ esql.xsl 19 Apr 2002 17:07:59 -0000 1.13.2.1
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
-<!-- $Id: esql.xsl,v 1.13 2002/02/22 12:14:12 tcurdt Exp $-->
+<!-- $Id: esql.xsl,v 1.13.2.1 2002/04/19 17:07:59 froehlich Exp $-->
<!--
============================================================================
@@ -56,7 +56,7 @@
* ESQL Logicsheet
*
* @author ?
- * @version CVS $Revision: 1.13 $ $Date: 2002/02/22 12:14:12 $
+ * @version CVS $Revision: 1.13.2.1 $ $Date: 2002/04/19 17:07:59 $
-->
<xsl:stylesheet version="1.0"
@@ -728,6 +728,7 @@
<xsl:with-param name="group-on" select="@group-on"/>
</xsl:apply-templates>
</xsp:content>
+ _esql_query.nextRow(); //readvance (see previousRow() in esql:member)
}
</xsp:logic>
</xsl:template>
@@ -764,6 +765,9 @@
}
if (((Boolean)_esql_query.getGroupingVar("<xsl:value-of
select="$group-on"/>Changed")).booleanValue()) {
//footer contents
+ _esql_query.previousRow(); //if we want the footer to be able to
+ // access common columns of the group as the header can, we
+ // must back up into the last record.
</xsp:logic>
</xsl:template>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]