Hi, You should also take a look at http://swixml.org (sample code, XML parts) and JellySwing at http://commons.apache.org/jelly/libs/swing/index.html (examples at http://svn.apache.org/viewvc/commons/proper/jelly/trunk/jelly-tags/swing/src/test/org/apache/commons/jelly/swing/) that provide similar capabilites and are extensible.
Using Velocity for this is also a possibility, but looking at your example: it seems to me that you did not code using Velocity #directives but used some XSLT to do the magic. My 2c, Christoph Omer Uretzky wrote: > Hi, > > I have developed a framework (in Java) on top of the velocity template engine. > My framework is very simple, it creates input screens for a template (based > on predefined XML) > You can see attached a simple example: > > This example generates a simple letter (letter.txt). My tool reads the XML > (letter.xml) and create the input screen (attached). The user put his inputs > in the input screen and press OK. The tool takes the inputs and using the > Velocity engine combines the inputs with the template to generate the file. > > The tool also implements a storage where many templates and inputs screens > (XML) resides. So when the user activates the tool, he gets a list of > possible templates to generate. After choosing the desired template, the tool > opens the appropriate input screen. > > The attached example is the simplest example I could create for you. > Let me know if you care to hear more. > > Thanks, Omer > > This message and the information contained herein is proprietary and > confidential and subject to the Amdocs policy statement, > you may review at http://www.amdocs.com/email_disclaimer.asp > > > > ------------------------------------------------------------------------ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
