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

Re: performant templating language for XML


resin jsp 2.0
David Megginson wrote:
> On Tue, 28 Dec 2004 15:03:32 -0800, Nathan Young <natyoung@c...> wrote:
> 
> 
>>I'm going to ask the following question:  Is there a good templating
>>language that can be used to build a high demand website from a collection
>>of XML documents?
> 
> 
> You can try JSP (Java Server Pages).  There is an alternative,
> XML-conformant syntax that works starting with version 1.1 or 1.2, and
> they allow for live content in the pages.  Unfortunately, it's a
> Java-only solution.  Recent versions of Tomcat support the XML JSP
> syntax, and at least some standard tagsets (like JSTL) work with it.


Hi,

If using JSP, you will probably want to use version 2.0 if you can 
(Tomcat 5+, Resin 3+). This allows an Expression Lanuguage (EL) where 
you can do:

<a href="go?id=${id}"/>

as opposed to:

<a href="go?id=<%=id%>"/>

Annoyingly, most (all?) of frameworks/taglibs encourage something like:

<input type="submit" value="<tl:i18n key="global.submit"/>"/>

Another problem with JSP and its XML syntax is that containers implement 
it differently in small, but annoying ways. An example of a difference 
is creating an XHTML BR element (outputting contentType=text/xml). 
Tomcat will give you <br/>, but Resin will give you <br></br> which is a 
problem in IE.

And hardly anyone creates well-formed JSPs. I only do it when I (our 
CMS) generate them using XSL. If I am writing a JSP by hand I don't 
create a well-formed JSP XML.

best,
-Rob

> 
> 
> All the best,
> 
> 
> David
> 


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.