Recommended approach for generating XHTML from model data at runtime - XSLT/Xpand/? [message #528231] |
Mon, 19 April 2010 14:46  |
Eclipse User |
|
|
|
Hi,
what approach do you recommend for generating XHTML documents from a EMF model instances
at runtime? So far I have tried:
- XSLT: As of now, I'm serializing the model to a XMLResource and use the resulting
document as input for an XSLT transformation, mainly because I had a set of existing XSLT
templates before I started to utilize EMF to define the input data structure. This works,
but gets tricky as soon as there are references because I found no way to follow these in
a XSLT template.
- Xpand: I tried to use Xpand to cut down the additional transformation step and directly
work with the model data. Is it possible to use Xpand as template engine at runtime
independent from code generation / generator workflows? Is there an API / examples how to
apply a .xpand template to a model instances? I found org.eclipse.xpand2.Generator but
this doesn't look like a class that is supposed to be used outside of generator steps
executed in the IDE.
- Anything else which is better suited for this task?
Greetings,
Ralf
--
Learn how to contribute to Eclipse here: http://eclipse.org/contribute/
Read my Blog here: http://www.ralfebert.de/blog/
Follow me on Twitter here: http://twitter.com/ralfebert/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04865 seconds