cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coli...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/generation JXTemplateGenerator.java
Date Wed, 10 Dec 2003 16:43:49 GMT
coliver     2003/12/10 08:43:49

  Modified:    src/java/org/apache/cocoon/generation
                        JXTemplateGenerator.java
  Log:
  Fix loop tag status
  
  Revision  Changes    Path
  1.22      +8 -4      cocoon-2.1/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java
  
  Index: JXTemplateGenerator.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- JXTemplateGenerator.java	10 Dec 2003 16:24:35 -0000	1.21
  +++ JXTemplateGenerator.java	10 Dec 2003 16:43:49 -0000	1.22
  @@ -403,8 +403,8 @@
       public class LocatorFacade implements Locator {
           private Locator locator;
      
  -        public LocatorFacade(Locator intialLocator) {
  -            this.locator = intialLocator;
  +        public LocatorFacade(Locator initialLocator) {
  +            this.locator = initialLocator;
           }
           
           public void setDocumentLocator(Locator newLocator) {
  @@ -3025,6 +3025,9 @@
           public boolean isLast() {
               return last;
           }
  +        public int getBegin() {
  +            return begin;
  +        }
           public int getEnd() {
               return end;
           }
  @@ -3243,6 +3246,7 @@
                   LoopTagStatus status = null;
                   if (startForEach.varStatus != null) {
                       status = new LoopTagStatus();
  +                    status.begin = begin;
                       status.end = end;
                       status.step = step;
                       status.first = true;
  @@ -3251,7 +3255,7 @@
                       localJXPathVariables.declareVariable(startForEach.varStatus,
                                                            status);
                   }
  -                for (int count = 1; i <= end && iter.hasNext(); i++, count++)
{
  +                for (int count = 1; i <= end && iter.hasNext(); i+=step, count++)
{
                       Object value;
                       JXPathContext localJXPathContext = null;
                       value = iter.next();
  
  
  

Mime
View raw message