Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Amalgam » Question about the mindmap2xhtml.qvto transformation
Question about the mindmap2xhtml.qvto transformation [message #525201] Sat, 22 August 2009 22:27 Go to next message
Toñi Reina is currently offline Toñi Reina
Messages: 204
Registered: July 2009
Senior Member
Hi Richard,

I'm reading your book and trying to follow some of the examples.
Currently I'm working with the mindmap2xhtml example. I have
downloaded the examples code, but the mindmap2xhtml.qvto has some
compilation errors.

By reading the 6.7. Transforming a Mindmap to XHTML section, I have
found out that the xhtml metamodel is not included in the examples code
that I have downloaded, so I have follow the import process, and as a
consequence, now I have my xhtml.ecore file obtained from the .xsd you
mention in the 6.7 section. Some compilation errors, have disappear,
but there are some of them yet.

These are due to some xhtml.ecore metamodel modifications. The
metamodel is change because there's no way to declare text between
elements. The solution you have proposed is declaring the
XMLTypeDocumentRoot as eSuperType for the Inline and Flow metaclasses.

My problem at this point is that I can not found the
XMLTypeDocumentRoot metaclass in my xhtml.ecore. Please tell me where
this class is, or if I have to create it manually.


I'll also be very grateful if you could summarize the
modifications that have to be done to the xhtml.ecore metamodel.

Thanks, and best regards
Toñi Reina
Re: Question about the mindmap2xhtml.qvto transformation [message #525202 is a reply to message #525201] Sun, 23 August 2009 18:48 Go to previous messageGo to next message
Sergey Boyko is currently offline Sergey Boyko
Messages: 162
Registered: July 2009
Senior Member
Hi Toñi ,

You might want to take a look at
'org.eclipse.m2m/org.eclipse.m2m.qvt.oml/examples/org.eclips e.m2m.qvt.oml.econ2009.tutorial'
plug-in in the 'dev.eclipse.org:/cvsroot/modeling' CVS repository.
There's an '\projects\qvto.uml2xhtml.model' folder that contains patched
xhtml.ecore model.

Mentioned 'XMLTypeDocumentRoot' metaclass belongs to 'namespace.ecore'
model (it's NsURI is 'http://www.w3.org/XML/1998/namespace') available
from EPackage global registry and physically located in
'org.eclipse.emf.ecore/model'.

Regards,
Sergey Boyko

Toñi Reina Quintero wrote:
> Hi Richard,
>
> I'm reading your book and trying to follow some of the examples.
> Currently I'm working with the mindmap2xhtml example. I have downloaded
> the examples code, but the mindmap2xhtml.qvto has some compilation errors.
>
> By reading the 6.7. Transforming a Mindmap to XHTML section, I have
> found out that the xhtml metamodel is not included in the examples code
> that I have downloaded, so I have follow the import process, and as a
> consequence, now I have my xhtml.ecore file obtained from the .xsd you
> mention in the 6.7 section. Some compilation errors, have disappear,
> but there are some of them yet.
>
> These are due to some xhtml.ecore metamodel modifications. The
> metamodel is change because there's no way to declare text between
> elements. The solution you have proposed is declaring the
> XMLTypeDocumentRoot as eSuperType for the Inline and Flow metaclasses.
>
> My problem at this point is that I can not found the
> XMLTypeDocumentRoot metaclass in my xhtml.ecore. Please tell me where
> this class is, or if I have to create it manually.
>
>
> I'll also be very grateful if you could summarize the
> modifications that have to be done to the xhtml.ecore metamodel.
>
> Thanks, and best regards
> Toñi Reina
Re: Question about the mindmap2xhtml.qvto transformation [message #525203 is a reply to message #525202] Sun, 23 August 2009 21:07 Go to previous message
Toñi Reina is currently offline Toñi Reina
Messages: 204
Registered: July 2009
Senior Member
Thanks Sergey,

the information has been very useful.


Sergey Boyko escribió:
> Hi Toñi ,
>
> You might want to take a look at
> 'org.eclipse.m2m/org.eclipse.m2m.qvt.oml/examples/org.eclips e.m2m.qvt.oml.econ2009.tutorial'
> plug-in in the 'dev.eclipse.org:/cvsroot/modeling' CVS repository.
> There's an '\projects\qvto.uml2xhtml.model' folder that contains patched
> xhtml.ecore model.
>
> Mentioned 'XMLTypeDocumentRoot' metaclass belongs to 'namespace.ecore'
> model (it's NsURI is 'http://www.w3.org/XML/1998/namespace') available
> from EPackage global registry and physically located in
> 'org.eclipse.emf.ecore/model'.
>
> Regards,
> Sergey Boyko
>
> Toñi Reina Quintero wrote:
>> Hi Richard,
>>
>> I'm reading your book and trying to follow some of the
>> examples. Currently I'm working with the mindmap2xhtml example. I
>> have downloaded the examples code, but the mindmap2xhtml.qvto has some
>> compilation errors.
>>
>> By reading the 6.7. Transforming a Mindmap to XHTML section, I
>> have found out that the xhtml metamodel is not included in the
>> examples code that I have downloaded, so I have follow the import
>> process, and as a consequence, now I have my xhtml.ecore file obtained
>> from the .xsd you mention in the 6.7 section. Some compilation
>> errors, have disappear, but there are some of them yet.
>>
>> These are due to some xhtml.ecore metamodel modifications. The
>> metamodel is change because there's no way to declare text between
>> elements. The solution you have proposed is declaring the
>> XMLTypeDocumentRoot as eSuperType for the Inline and Flow metaclasses.
>>
>> My problem at this point is that I can not found the
>> XMLTypeDocumentRoot metaclass in my xhtml.ecore. Please tell me where
>> this class is, or if I have to create it manually.
>>
>>
>> I'll also be very grateful if you could summarize the
>> modifications that have to be done to the xhtml.ecore metamodel.
>>
>> Thanks, and best regards
>> Toñi Reina
Re: Question about the mindmap2xhtml.qvto transformation [message #583832 is a reply to message #525201] Sun, 23 August 2009 18:48 Go to previous message
Sergey Boyko is currently offline Sergey Boyko
Messages: 162
Registered: July 2009
Senior Member
Hi Toñi ,

You might want to take a look at
'org.eclipse.m2m/org.eclipse.m2m.qvt.oml/examples/org.eclips e.m2m.qvt.oml.econ2009.tutorial'
plug-in in the 'dev.eclipse.org:/cvsroot/modeling' CVS repository.
There's an '\projects\qvto.uml2xhtml.model' folder that contains patched
xhtml.ecore model.

Mentioned 'XMLTypeDocumentRoot' metaclass belongs to 'namespace.ecore'
model (it's NsURI is 'http://www.w3.org/XML/1998/namespace') available
from EPackage global registry and physically located in
'org.eclipse.emf.ecore/model'.

Regards,
Sergey Boyko

Toñi Reina Quintero wrote:
> Hi Richard,
>
> I'm reading your book and trying to follow some of the examples.
> Currently I'm working with the mindmap2xhtml example. I have downloaded
> the examples code, but the mindmap2xhtml.qvto has some compilation errors.
>
> By reading the 6.7. Transforming a Mindmap to XHTML section, I have
> found out that the xhtml metamodel is not included in the examples code
> that I have downloaded, so I have follow the import process, and as a
> consequence, now I have my xhtml.ecore file obtained from the .xsd you
> mention in the 6.7 section. Some compilation errors, have disappear,
> but there are some of them yet.
>
> These are due to some xhtml.ecore metamodel modifications. The
> metamodel is change because there's no way to declare text between
> elements. The solution you have proposed is declaring the
> XMLTypeDocumentRoot as eSuperType for the Inline and Flow metaclasses.
>
> My problem at this point is that I can not found the
> XMLTypeDocumentRoot metaclass in my xhtml.ecore. Please tell me where
> this class is, or if I have to create it manually.
>
>
> I'll also be very grateful if you could summarize the
> modifications that have to be done to the xhtml.ecore metamodel.
>
> Thanks, and best regards
> Toñi Reina
Re: Question about the mindmap2xhtml.qvto transformation [message #583844 is a reply to message #525202] Sun, 23 August 2009 21:07 Go to previous message
Toñi Reina is currently offline Toñi Reina
Messages: 204
Registered: July 2009
Senior Member
Thanks Sergey,

the information has been very useful.


Sergey Boyko escribió:
> Hi Toñi ,
>
> You might want to take a look at
> 'org.eclipse.m2m/org.eclipse.m2m.qvt.oml/examples/org.eclips e.m2m.qvt.oml.econ2009.tutorial'
> plug-in in the 'dev.eclipse.org:/cvsroot/modeling' CVS repository.
> There's an '\projects\qvto.uml2xhtml.model' folder that contains patched
> xhtml.ecore model.
>
> Mentioned 'XMLTypeDocumentRoot' metaclass belongs to 'namespace.ecore'
> model (it's NsURI is 'http://www.w3.org/XML/1998/namespace') available
> from EPackage global registry and physically located in
> 'org.eclipse.emf.ecore/model'.
>
> Regards,
> Sergey Boyko
>
> Toñi Reina Quintero wrote:
>> Hi Richard,
>>
>> I'm reading your book and trying to follow some of the
>> examples. Currently I'm working with the mindmap2xhtml example. I
>> have downloaded the examples code, but the mindmap2xhtml.qvto has some
>> compilation errors.
>>
>> By reading the 6.7. Transforming a Mindmap to XHTML section, I
>> have found out that the xhtml metamodel is not included in the
>> examples code that I have downloaded, so I have follow the import
>> process, and as a consequence, now I have my xhtml.ecore file obtained
>> from the .xsd you mention in the 6.7 section. Some compilation
>> errors, have disappear, but there are some of them yet.
>>
>> These are due to some xhtml.ecore metamodel modifications. The
>> metamodel is change because there's no way to declare text between
>> elements. The solution you have proposed is declaring the
>> XMLTypeDocumentRoot as eSuperType for the Inline and Flow metaclasses.
>>
>> My problem at this point is that I can not found the
>> XMLTypeDocumentRoot metaclass in my xhtml.ecore. Please tell me where
>> this class is, or if I have to create it manually.
>>
>>
>> I'll also be very grateful if you could summarize the
>> modifications that have to be done to the xhtml.ecore metamodel.
>>
>> Thanks, and best regards
>> Toñi Reina
Previous Topic:Question about the mindmap2xhtml.qvto transformation
Next Topic:Is there any way to generate an indefinite number of target models in a qvto m2m transformation?
Goto Forum:
  


Current Time: Sat Sep 20 06:17:26 GMT 2014

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

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