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 |
} |
} |
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, |