Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » QVT : Element Name Filtering
QVT : Element Name Filtering [message #535696] Tue, 25 May 2010 10:04
Vishal seth is currently offline Vishal sethFriend
Messages: 32
Registered: April 2010

Trying to do a basic transformation using QVT. But not sure how does class name filtering happens as far as ecore model is concerned.

Have a sample instance file which looks something like where

<?xml version="1.0" encoding="UTF-8"?>
<myDsl:Namespace xmi:version="2.0" xmlns:xmi="" xmlns:xsi="" xmlns:myDsl="">
<case name="Name">

The main method of QVT file is as:
main() {
source.rootObjects()[Namespace] -> map NamespaceToNS();

But this context does not get evaluated. But if i use Element as class name then this is evaluated & it moves to the map context. I tried few logging statement to see what is the class name by using self.metaClassName() which gives Namespace. Hence not sure whether missing somewhere on the syntax front or the way ecore model instance file is parsed in some different way.


Previous Topic:[ATL] UML model with UML profile as input
Next Topic:packagedElement <-Sequence{p.packagedelement}
Goto Forum:

Current Time: Thu Apr 22 18:30:12 GMT 2021

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

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

Back to the top