root/trunk/tests/templates/bug138.tmpl

Revision 404, 0.9 kB (checked in by schst, 4 years ago)

Fixed bug with condition templates that have single and empty defined (bug #138)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <patTemplate:tmpl name="table">
2 <table>
3 <patTemplate:tmpl name="row" type="condition" conditionvar="VALUE">
4     <patTemplate:sub condition="__single">
5         <tr>
6                 <td bgcolor="#FFFF99">single ({VALUE})</td>
7         </tr>
8     </patTemplate:sub>
9     <patTemplate:sub condition="__first">
10         <tr>
11                 <td bgcolor="#FFFF99">first ({VALUE})</font></td>
12         </tr>
13         <tr>
14                 <td height="5" bgcolor="#FFFF99"></td>
15         </tr>
16     </patTemplate:sub>
17     <patTemplate:sub condition="__default">
18         <tr>
19                 <td bgcolor="#FFFF99">default ({VALUE})</font></td>
20         </tr>
21         <tr>
22                 <td height="5" bgcolor="#FFFF99"></td>
23         </tr>
24     </patTemplate:sub>
25     <patTemplate:sub condition="__last">
26         <tr>
27                 <td bgcolor="#FFFF99">last ({VALUE})</td>
28         </tr>
29     </patTemplate:sub>
30     <patTemplate:sub condition="__empty">
31         <tr>
32                 <td bgcolor="#FFFF99">empty ({VALUE})</td>
33         </tr>
34     </patTemplate:sub>
35 </patTemplate:tmpl>
36 </table>
37 </patTemplate:tmpl>
Note: See TracBrowser for help on using the browser.