[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: performant templating language for XML


servlet xhtml templating
Nathan Young wrote:

> 
> The most likely contender has ended up being: pre-render the main 
> contents  using XSLT on the docs within the content management system 
> and cache and  serve up the results.  In conjunction have a lightweight 
> run time  templating language to do navigation, authentication, and 
> other aspects of  UE that need run time processing.


This is what we do. The CMS generates XHTML/JSPs putting together 
everything except what needs to be dynamic. For runtime the JSPs get 
precompiled. At runtime we use a servlet filter that wraps the response 
before hitting the XHTML/JSP (the JSPs generate XHTML). After hitting 
the page a simple transformation renders the output stream back to the 
client. We use the XSL to get valid XHTML output that plays well in all 
browsers (clients *are* asking for XHTML).

The transformation is basically an identity transform with a few basic 
parameters passed in, for example the user name and the user's current 
L&F. This way, many pages that would have to be dynamic can be simple, 
well-formed HTML. We use Caucho's Resin servlet container -- it has a 
compiling XSL processor which transforms very fast (you can probably do 
the same thing with Tomcat and Xalan's XSLTC). I suppose this type of 
transformation can be done with STX, but we have not had any performance 
problems.

best,
-Rob


> 
> Other options gratefully considered!
> 
> Thanks in advance!
> 
> -------------------------->Nathan
> 

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.