Dynamic template generation
Kirill <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Hi there,
Just started working with Freemarker and it's been great so far.
Now, I need to figure out a way to have templates dynamically generated,
based on either:
- XSD
- sample XML
- Object (List of Maps, or Map of Maps)
So, for example, if I take a Map, with key=value pairs, I would like to have
all keys converted to tag names and values replaced with ${key} variables.
The resultant template would have to create an XML document.
Another example is to take an XSD and transform it to template, like:
<root>
<item1>${item1}</item1>
<item2>${item2}</item2>
</root>
Any ideas what would be the best approach here?
Thanks,
Upravdom
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user