Mikael Ståldal
Wed, 22 Jun 2005 22:30:37 -0700
Joseph Dane wrote:
The problem: I needed a very simple X?HTML template system. It had to be something that, however, complicated under the hood, could be used by junior developers and design people. I also wanted the source pages to be valid XML, so that I could use the various XML tools to edit/process/test the pages.
I wanted to avoid JSP"s scriptlet syntax. JSTL might work, but I wanted the source pages to be valid XML, so I wanted to avoid stuff like
<a href="<c:out value="..."/>"> ... </a>
Basically, I wanted XML source files, with the ability to dynamically evaluate expressions and a some minimal amount of flow control. Looping, for sure. Conditionals, probably. Something to match the minimalist spirit of Maverick itself.
Take a look at LSP (http://lspx.sourceforge.net/). The latest version (1.4) can be used as a Maverick view type.
LSP uses an pure XML syntax, quite similar to XSLT. It outputs SAX events,which can be directly feed into a subsequent XSLT transform. LSP is compiled into Java bytecode for efficient execution.
------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click [INVALID FOOTER]