[Xpand]duplication problem in html report [message #540825] |
Thu, 17 June 2010 08:58  |
Eclipse User |
|
|
|
Hi,
I am generating a html report using Xpand. I have defined different tables for package, Class and Interaction. The problem is that class table includes the value of Interaction too. here is my Xpand templates :
«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»
result shows SD value 1 and SD Value 2 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 5.58236 seconds