Skip to main content



      Home
Home » Modeling » OCL » [XPAND] duplication problem in html report
[XPAND] duplication problem in html report [message #540804] Thu, 17 June 2010 08:28 Go to next message
Eclipse UserFriend
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 09:01 Go to previous message
Eclipse UserFriend
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 Jul 22 18:57:42 EDT 2025

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

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

Back to the top