|
Re: [BPMN2] Missing namespace export for XSD-based serialization [message #606557 is a reply to message #606556] |
Mon, 09 August 2010 09:45   |
Eclipse User |
|
|
|
Hello Joern,
thanks for using the BPMN 2 project and pointing this out.
This is to some extent a known problem, but I had hoped that it was solved:
We now register the XML namespace separately in code. It could be, however, that Xtext relies directly on the information in plugin.xml.
I'll try to test this myself - if you could supply a small sample that would be useful.
Which "version" of our project do you use? The latest from our git repository?
Thanks,
Henning
|
|
|
Re: [BPMN2] Missing namespace export for XSD-based serialization [message #606558 is a reply to message #606556] |
Mon, 09 August 2010 11:12   |
Eclipse User |
|
|
|
Hello Henning,
Quote:
> Which "version" of our project do you use? The latest from our git repository?
yes - got it from http://git.eclipse.org/c/bpmn2/
Quote:
> I'll try to test this myself - if you could supply a small sample that would be useful.
I wrote a small workaround to reference bpmn2 models in xText models. If you drop me a note with your email I can send you the source for the workaround and the corresponding ecore/xText projects.
Essential a sample grammar looks like (assuming a corresponding ecore model)
grammar foo.bar.mydsl.MyDsl with org.eclipse.xtext.common.Terminals
import "platform:/resource/foo.bar.ecore/model/My.ecore"
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
Model:
elements+=Element*;
Element :
Modelimport | Greeting
;
Modelimport :
'Import'
importURI=STRING
;
Greeting:
'Hello' name=ID '!'
('Reference' reference=[ecore::EObject])?;
A sample xText model will look like (assuming a bpmn2 model called "My.bpmn2" in the same directory containing an element with the name "MyProcess"):
Import "My.bpmn2"
Hello Henning !
Reference MyProcess
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04278 seconds