Book a Demo

Author Topic: Code Generating  (Read 4625 times)

Mr._K

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Code Generating
« on: September 12, 2002, 03:04:39 am »
Hy Sparx!

I have one question relating the process of code-generation. Is it possible to change the template used in your generator in order to dynamicly addapt the ouptut?

Thanx and have a nice day


Molto Mike

  • EA User
  • **
  • Posts: 66
  • Karma: +0/-0
    • View Profile
Re: Code Generating
« Reply #1 on: September 12, 2002, 09:39:11 am »
No, Sparx has mentioned multiple times they were going to implement this by the end of the year, but at this point, there are no code generation templates (or to be precise, they are not exposed).

Mike
« Last Edit: September 12, 2002, 09:39:45 am by molto_b »

gerrit

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Code Generating
« Reply #2 on: September 17, 2002, 09:21:54 pm »
as documented/suggested, the xml export srtyle sheets can be used for code generation.
I created such a style sheet to generate php code.
The caveate is that for all dependacies to be resolved, a full export need to be done.
I based my xslt sheet on.

http://www.objectsbydesign.com/projects/xmi_to_html.html

Which transforms xmi to html.
You could also look at a sourceforge project on this:-

http://sourceforge.net/projects/xsl4xmi

I found cooktop v2 to be a good & free tool for xslt process experiments and development.
EA uses microsoft v3 xlst engine.
Cheers,
 Gerrit.

Molto Mike

  • EA User
  • **
  • Posts: 66
  • Karma: +0/-0
    • View Profile
Re: Code Generating
« Reply #3 on: September 30, 2002, 12:27:29 pm »
When you say "documented", can you please specify what you are referring to? EA documentation? I did not find it in the docs for 504...

Thanks a lot.

Mike