[XPAND] duplication problem in html report [message #540804] |
Thu, 17 June 2010 08:28  |
Eclipse User |
|
|
|
Hi,
I am generating a html report using Xpand. The problems of duplicates values arises in a generated html file. I have defined different tables for package, Class and Interaction. The problem is that class table includes the value of Interaction too. test Xpand templates is as follows.
«IMPORT uml»
«DEFINE main FOR Model»
«EXPAND templates::one::root»
«ENDDEFINE»
«DEFINE root FOR Model»
«FILE "test.html"»
<H2> Table 1</H2>
<TABLE BORDER="1">
<tr>
<th rowspan="2" >Name</th>
<th>C1</th>
<th >C2</th>
</tr><tr>
«EXPAND test FOREACH eAllContents.typeSelect(Package)»
</tr>
</TABLE>
<H2> Table 2</H2>
<TABLE BORDER="1">
<tr>
<th rowspan="2" >Name</th>
<th >C1</th>
<th >C2</th>
</tr><tr>
«EXPAND test FOREACH eAllContents.typeSelect(uml::Class)»
</tr>
</table>
<H1>Table 3</H1>
<TABLE BORDER="1">
<tr>
<th rowspan="2" >Name</th>
<th >C1</th>
<th >C2</th>
</tr><tr>
«EXPAND test FOREACH eAllContents.typeSelect(Interaction)»
</tr>
</table>
</body>
</html>
«ENDFILE»
«ENDDEFINE»
«DEFINE test FOR uml::Package »
<tr>
<td>«qualifiedName»</td>
<td>pkg value 1</td>
<td>pakg value 2</td>
</tr>
«ENDDEFINE»
«DEFINE test FOR uml::Class»
<tr>
<td>«qualifiedName»</td>
<td>Class value 1</td>
<td>Class value 2</td>
</tr>
«ENDDEFINE»
«DEFINE test FOR uml::Interaction»
<tr>
<td>«qualifiedName»</td>
<td>SD value 1</td>
<td>SD value 2</td>
</tr>
«ENDDEFINE»
When I generate html file, SD value 1 and SD Value 2 appears in Interaction table as well as in Class table. My question is How can I avoid Interaction values from class table.
regards,
Akhtar
|
|
|
|
Powered by
FUDForum. Page generated in 0.04220 seconds