cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/generation TraversableGenerator.java
Date Mon, 24 Nov 2003 22:05:23 GMT
unico       2003/11/24 14:05:23

  Modified:    src/blocks/repository/java/org/apache/cocoon/generation
                        TraversableGenerator.java
  Log:
  solve bug where content wasn't displayed at level 0
  
  Revision  Changes    Path
  1.6       +2 -3      cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/generation/TraversableGenerator.java
  
  Index: TraversableGenerator.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/generation/TraversableGenerator.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TraversableGenerator.java	15 Nov 2003 04:21:28 -0000	1.5
  +++ TraversableGenerator.java	24 Nov 2003 22:05:22 -0000	1.6
  @@ -408,6 +408,7 @@
               throws SAXException, ProcessingException {
           if (source.isCollection()) {
               startNode(COL_NODE_NAME, source);
  +            addContent(source);
               if (depth > 0) {
   
                   Collection contents = null;
  @@ -465,8 +466,6 @@
                           }
                       });
                   }
  -                
  -                addContent(source);
                   
                   for (int i = 0; i < contents.size(); i++) {
                       if (isIncluded((TraversableSource) contents.toArray()[i]) &&
!isExcluded((TraversableSource) contents.toArray()[i])) {
  
  
  

Mime
View raw message