|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] [ANN] Resin supports XPath/XSLT July draft
The latest Resin beta now supports the XSLT July draft for HTML and JSP
generation. Resin focuses on server page generation using XSLT, although it does
include a standalone XSLT processor. Resin's XML Template Pages (XTP) separates
page contents from server-side scripting and styling. XSLT stylesheets are
responsible for generating the server-side scripting using JSP. In contrast, other
server page generators, like ASP, PHP and JSP, mix scripting with HTML.
The Resin home page is http://www.caucho.com
Some of the Resin features:
* Generates JSP using stylesheets.
* Stylesheets compile to JavaScript or Java at the user's direction.
* Templates can use JavaScript or Java to access Java libraries like JDBC with
xtp:expression and xtp:scriptlet tags
* Cached pages are served nearly as fast as static pages. Cached generated JSP
pages execute as
fast as servlets
* Generation and application of XSL stylesheets are available as Java APIs.
* XPath queries are also available as a Java API, allowing querying and selection
of DOM trees.
* Included servlet 2.1 engine, web server, Apache and IIS supports a wide range
of deployment options.
As a trivial example of using Resin to create JSP, the following template creates
JSP to print a query variable:
<xsl:template match='ct:query'>
<jsp:expression>
request.getParameter("<xsl:value-of select='@name'>")
</jsp:expression>
</xsl:template>
The sample xtp file might contain a section like:
First Name: <ct:query name='first-name'/><br/>
Last Name: <ct:query name='last-name'/>
When called to process a form submission, it would produce the HTML:
First Name: Scott<br>
Last Name: Ferguson
Scott Ferguson
Caucho Technology
http://www.caucho.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








