XML and XSLT
Resin 3.1

Documentation
Examples
Changes

Overview
Quick Start
Installation
Command-Line
Configuration
Admin
Amber
Clustering
Caching
Database
Deployment
EJB 3.0
Embedding
Filters
Hessian
HMTP
IoC
JSP
Logging
Messaging
Performance
Quercus/PHP
Remoting
Scheduled Tasks
Security
Server Push
Servlets
Third-party
Troubleshooting
Virtual Hosting
Watchdog
WebApp
XML and XSLT

Introduction
JAXP
XML Path Language (XPath)
XSLT Filter
XSLT
XPath Functions
WebApp
Resin 3.1
Introduction

Introduction

JAXP

JAXP is a standard interface which supports pluggable XML and XSL implementations. JAXP selects the parser based on system properties. You can set the properties to select a different parser than the default one.

By default, Resin will use the JDK's parsers. Other parsers, including Resin's own parsers can be selected with the <system-property> tag.

XML Path Language (XPath)

Resin can use XPath, the XML Path Language, to select nodes from an XML tree. Scripts can select all 'table' children, or even all 'table' elements in an entire HTML file. The XPath language is exceptionally rich. It can describe an incredible number of node selections.

XSLT Filter

XSLT filters can be applied to the output of a JSP page or a Servlet. XSLT simplifies creating a uniform style for a site. XSLT converts XML to HTML or XML or WAP. It's easy to create different output depending on the browser. Just choose another stylesheet. The example below creates HTML or XML results from the same JSP.

The JSP page creates a simple XML file. It tells Resin to use XSL filtering by setting the contentType to x-application/xslt.

XSLT

The extensible stylesheet language is a language for transforming XML documents to new XML documents. It's based on matching elements in the XML tree and replacing the element with new XML. For example, replacing a 'definition' tag with an HTML table with a silver background.

XPath Functions


WebApp
Resin 3.1
Introduction
Copyright © 1998-2006 Caucho Technology, Inc. All rights reserved.
Resin ® is a registered trademark, and Quercustm, Ambertm, and Hessiantm are trademarks of Caucho Technology.