I have a sysml model where its xmi file starts with: 

<?xml version="1.0" encoding="UTF-8"?>
<uml:Model xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:sysML="http://www.topcased.org/2.0/sysML"; 
xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML"; 
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"; name="YYYYY" 
xmi:id="idModel">

Now, I fill the model and GenDoc2 works correctly, but when I apply a profile 
to apply a stereotype to any model item and I try to generate a document, I 
have this error message: “ The execution of a script failed: The model Model 
can not be loaded from URL: "file:/C:/…...”
I have noticed that now the the model xmi file is:

<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"; 
xmlns:nvmC="http:///schemas/nvmC/_tD5f8BdkEeCf6oiaF83L5A/294"; 
xmlns:sysML="http://www.topcased.org/2.0/sysML"; 
xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML"; 
xsi:schemaLocation="http:///schemas/nvmC/_tD5f8BdkEeCf6oiaF83L5A/294 
../../nvm.Topcased.nvmServices.profile/Models/nvm.C.profile.uml#_tD8jQBdkEeCf6oiaF83L5A">
  <uml:Model xmi:id="idModel" name="YYYYY">

>From now on GenDoc is not able to work properly. 
I have found a simple workaround: if I put under control a model section, its 
xmi file starts with:

<?xml version="1.0" encoding="UTF-8"?>
<uml:Package xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"; 
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"; 
xmlns:sysML="http://www.topcased.org/2.0/sysML"; 
xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML"; 
xmi:id="_y28nUDp8EeCrEMpMv9lJ5Q" name="XXXXX">

Now, I fill the model and GenDoc2 works correctly on this sub-model even if I 
modify it, but when I apply any stereotype to any sub-model item I have again 
this error message: “ The execution of a script failed: The model Model can not 
be loaded from URL: "file:/C:/…...” and I have noticed that the xmi file 
becomes:

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"; 
xmlns:nvmC="http:///schemas/nvmC/_tD5f8BdkEeCf6oiaF83L5A/294"; 
xmlns:sysML="http://www.topcased.org/2.0/sysML"; 
xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML"; 
xsi:schemaLocation="http:///schemas/nvmC/_tD5f8BdkEeCf6oiaF83L5A/294 
../../nvm.Topcased.nvmServices.profile/Models/nvm.C.profile.uml#_tD8jQBdkEeCf6oiaF83L5A">
  <uml:Package xmi:id="_y28nUDp8EeCrEMpMv9lJ5Q" name="XXXXX">

I reproduced this problem in Topcased 4.2.1/GenDoc 1.1.0, Topcased 4.3.0/GenDoc 
1.1.0 and Topcased 4.3.0/GenDoc 1.3.0.
Where is the problem? Do I mistake in any step?

Thanks a lot,
Nicola

                                          
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
  • [Topcased-users] GenDoc2 una... Topcased user list where issues are discussed

Reply via email to