Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » [XPAND] duplication problem in html report
[XPAND] duplication problem in html report [message #540804] Thu, 17 June 2010 12:28 Go to next message
Akhtar  is currently offline Akhtar
Messages: 13
Registered: April 2010
Junior Member
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
Re: [XPAND] duplication problem in html report [message #540828 is a reply to message #540804] Thu, 17 June 2010 13:01 Go to previous message
Akhtar  is currently offline Akhtar
Messages: 13
Registered: April 2010
Junior Member
Sorry ! I posted this on a wrong forum. OCL community, Please ignore it.

regards,
Ak
Previous Topic:refering to a sepecific attribute
Next Topic:leaving model to parse ocl sentence.
Goto Forum:
  


Current Time: Tue Sep 16 13:49:58 GMT 2014

Powered by FUDForum. Page generated in 0.14073 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software