/[classpath]/classpath/gnu/xml/transform/ForEachNode.java
ViewVC logotype

Diff of /classpath/gnu/xml/transform/ForEachNode.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mark, Thu Dec 23 22:38:44 2004 UTC revision 1.2 by dog, Thu Jun 30 22:09:07 2005 UTC
# Line 59  final class ForEachNode Line 59  final class ForEachNode
59    final Expr select;    final Expr select;
60    final List sortKeys;    final List sortKeys;
61    
62    ForEachNode(TemplateNode children, TemplateNode next, Expr select,    ForEachNode(Expr select, List sortKeys)
               List sortKeys)  
63    {    {
     super(children, next);  
64      this.select = select;      this.select = select;
65      this.sortKeys = sortKeys;      this.sortKeys = sortKeys;
66    }    }
# Line 75  final class ForEachNode Line 73  final class ForEachNode
73        {        {
74          sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet));          sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet));
75        }        }
76      return new ForEachNode((children == null) ? null :      TemplateNode ret = new ForEachNode(select.clone(stylesheet),
77                             children.clone(stylesheet),                                         sortKeys2);
78                             (next == null) ? null :      if (children != null)
79                             next.clone(stylesheet),        {
80                             select.clone(stylesheet),          ret.children = children.clone(stylesheet);
81                             sortKeys2);        }
82        if (next != null)
83          {
84            ret.next = next.clone(stylesheet);
85          }
86        return ret;
87    }    }
88    
89    void doApply(Stylesheet stylesheet, QName mode,    void doApply(Stylesheet stylesheet, QName mode,

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26