[Xpand] Root element not found [message #643365] |
Mon, 06 December 2010 16:31 |
Stefan Jurack Messages: 24 Registered: February 2010 |
Junior Member |
|
|
Hi,
I have a question according to Xpand and I guess this is the right location for that, next to Xtext?!
I have a grammar with top-level element "WebsiteModel":
...
WebsiteModel:
'site' title=STRING
pages+=WebPage+
...
When I try to generate code out of an instanz of my grammar with a workflow configuration as follows (excerpt)...:
load = {
slot = "websiteRoot"
type = "WebsiteModel"
}
...the console output is telling me, that no element of that type has been found. However, when I use a non-top-level element (e.g. WebPage) in the workflow configuration, the result set is not empty as expected.
Is there a certain trick I missed to access the root element in order to perform Xpand transformations?
Thnx,
Stefan
PS: Well, this question seems to be better off in the M2T forum. @Admin: Don't mind to delete this post. I put a duplicate in the M2T forum.
[Updated on: Mon, 06 December 2010 19:14] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02929 seconds