Looking to do a BPMN > SVG XSLT [message #599924] |
Mon, 08 October 2007 08:10  |
Eclipse User |
|
|
|
Originally posted by: user.domain.invalid
Dear All,
I am looking to write an XSLT sheet which will transform a BPMN xmi/xmi
file into an SVG image.
A) Why are there 2 files i.e. x.bpmn & x.bpmn_diagram ? Is it like
UML/XMI & XMI-DI?
B) What is the relationship between them i.e. how are they bound
together? Simply "the same file name in the same directory one called
..bpmn & the other bpmn_diagram"? I can find no file url in one referring
to the other.
Adam
|
|
|
|
|
Re: Looking to do a BPMN > SVG XSLT [message #599943 is a reply to message #599937] |
Tue, 09 October 2007 07:38   |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
AdamF wrote:
> Antoine Toulme wrote:
>> Hi Adam,
>>
>>
>> GMF already provides support for export in SVG.
>>
>> Just right-click on the diagram, choose File>Save As Image File and
>> choose SVG.
>>
>
> I know and I am impressed......
You may thank GMF and the Batik teams for that.
>
> But we produce a set of healthcare related models in a large zip file
> which are then downloaded by people looking to implement those models (I
> work for the UK NHS IT program)
> This collection of artefacts is being rendered from the original models
> into HTML/Documentation, XSD, SVG & thus also to jpg etc.etc. via ant
> scripts including XSLT transforms etc.
>
> ie. we have lots of models (HL7 MIF, XMI, & hopefully now BPMN) all in
> some dialect of XML which are then rendered via XSLT into the various
> required formats as part of a build process.
Well, you can go and see their code. It's pretty straight forward once
you have been able to load the models in headless mode (that's a huge
piece of work when not running in Eclipse).
You can use our extension of CopyToImageUtil, LazyCopyToImageUtil, to
create the SVG by using all the GMF and Batik goodness.
>
>
>
>>> A) Why are there 2 files i.e. x.bpmn & x.bpmn_diagram ? Is it like
>>> UML/XMI & XMI-DI?
>> One file contains the semantic model, while the other contains pure
>> graphical notations.
>>>
>
>
> So a bit like XMI-DI then? Is it the same semantics or something wholly
> new?
I don't know what XMI-DI stands for. We chose to separate the semantic
model from the graphical model when saving.
>
>
>>> B) What is the relationship between them i.e. how are they bound
>>> together? Simply "the same file name in the same directory one called
>>> .bpmn & the other bpmn_diagram"? I can find no file url in one
>>> referring to the other.
>> The graphical notation file's elements are linked to their semantic
>> elements. It looks like this:
>>
>> <element xmi:type="bpmn:DataObject"
>> href="modeler.bpmn#_63FrkXBsEdyBRPFR9_F1HA"/>
>>
>
> Ahhhh.....I must have been blind as I did an XSLT to render the XMI
> compare tool's output into HTML for our use here (so we could produce
> advisories to developers showing what had changed between releases).
>
>> Hope this helps,
>>
>
> Indeed. Thanks.
>
> Adam
--
Intalio, the Open Source BPMS Company
<a href="http://www.intalio.com">http://www.intalio.com</a>
<a href="http://bpms.intalio.com">Community website</a>
|
|
|
Re: Looking to do a BPMN > SVG XSLT [message #599960 is a reply to message #599943] |
Thu, 11 October 2007 07:10  |
Eclipse User |
|
|
|
Originally posted by: user.domain.invalid
Antoine Toulme wrote:
> AdamF wrote:
>> Antoine Toulme wrote:
>>> Hi Adam,
>>>
>>>
>>> GMF already provides support for export in SVG.
>>>
>>> Just right-click on the diagram, choose File>Save As Image File and
>>> choose SVG.
>>>
>>
>> I know and I am impressed......
> You may thank GMF and the Batik teams for that.
I was aware of that because I use The UML2 tools.
>
> Well, you can go and see their code. It's pretty straight forward once
> you have been able to load the models in headless mode (that's a huge
> piece of work when not running in Eclipse).
>
> You can use our extension of CopyToImageUtil, LazyCopyToImageUtil, to
> create the SVG by using all the GMF and Batik goodness.
Yup but the nice thing is that I can create a diagram with all the known
shapes, save to SVG & then look at the result.....<G>
>> So a bit like XMI-DI then? Is it the same semantics or something
>> wholly new?
> I don't know what XMI-DI stands for. We chose to separate the semantic
> model from the graphical model when saving.
XMI Diagram Interchange.
Adam
|
|
|
Powered by
FUDForum. Page generated in 0.44903 seconds