Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Service Oriented Architecture Tools Platform (STP) » Looking to do a BPMN > SVG XSLT
Looking to do a BPMN > SVG XSLT [message #599924] Mon, 08 October 2007 12:10 Go to next message
Eclipse UserFriend
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 #599928 is a reply to message #599924] Mon, 08 October 2007 14:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

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.

> 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.
>
> 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"/>

Hope this helps,

Antoine

--
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 #599937 is a reply to message #599928] Tue, 09 October 2007 11:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

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......

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.



>> 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?


>> 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
Re: Looking to do a BPMN > SVG XSLT [message #599943 is a reply to message #599937] Tue, 09 October 2007 11:38 Go to previous messageGo to next message
Eclipse UserFriend
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 11:10 Go to previous message
Eclipse UserFriend
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
Previous Topic:Creation tool for combined figures
Next Topic:Deploy SOA Web Service Errors
Goto Forum:
  


Current Time: Wed Sep 25 13:11:38 GMT 2024

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

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

Back to the top