Xerox Xerox Web Document Submission Software (WDSS) Support & Software Administrator's Guide

Page of 210
M
ODIFYING 
T
EMPLATES
 
 
 
X
EROX 
W
EB 
D
OCUMENT 
S
UBMISSION 
S
OFTWARE 
V
ERSION 
2.0.1 
Looping the HTML code in coversheet.tpl and deliverysheet.tpl 
Simple looping is accomplished with the following tag as shown in 
Figure 12-3. 
Figure 12-3. The ‘foreach context’ tag begins looping in a template  
<foreach context="documents"> 
For each document being printed, print all the values between the 
<foreach> and </foreach> tags. For example, Figure 12-4 displays a 
fragment of the coversheet.tpl code that illustrates a loop. 
12-4 
S
YSTEM 
A
DMINISTRATION 
G
UIDE