Yep. XSLT is very cool. Since you asked :-), Caucho Technology's Resin
supports XSLT in an interesting way, with our Active Template Pages
(ATP).
There are advantages and disadvantages of XSL vs JSP. The main
advantage is that the .atp file can be any HTML, so anyone can create a
new page. Of course, if you start using custom tags, the skill level
required increases a little.
The main disadvantage is that XSL is harder to create than JSP.
.atp files are just HTML or HTML/XML files with a funny extension. No
scriptlets are allowed. The Resin ATP process looks something like the
following:
ATP + XSL ----> JSP ----> HTML
Here's a little example (using JavaScript for both the XSL actions and
the JSP actions). Resin interprets the '<%' tags at JSP time. The '<#'
tags are interpreted at XSL time:
foo.atp
Visitor: <application-counter var='count1'/>
default.xsl
<xsl:template match='application-counter'>
<%
synchronized (application) {
out.write(application.attribute.<#= elt.attribute.var
#>++);
}
%>
</xsl:template>
The Caucho website, including the priddied JSP FAQ (okay a bit
outdated), is created from XML source files and a few custom tags:
<example>, <def>, <section>, <objsummary> etc. The formatting,
navigation, and the method summaries in the reference guide are all
generated by the XSL files.
Scott Ferguson
Caucho Technology
Tuyen Tran wrote:
> To get a sense of what JSP 1.1 is about, play with XML to JSP
> transformations using the existing tools (with some tweaking to handle
> the less-than and greater-than characters). Wow. The whole
> scriplets/tags argument could be rendered moot with JSP 1.1 once XSLT,
> or some variation thereof, is in place. With 1.1 you should be able to
> hide all scriplets behind custom tags, if that's what you want. Better
> yet, you could conceivably maintain your pages in XML and deploy on
> either ASP or JSP, depending on the XSLT transform. You would need
> both COM and Bean implementations for your objects, but that's
> conceivable too. Aside from Cocoon and OpenXML, are there other
> initiatives that dynamic content generation folks should be aware
> of? Tuyen [EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".