xml and xslt
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.
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 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.
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.
Copyright © 1998-2015 Caucho Technology, Inc. All rights reserved. Resin ® is a registered trademark. Quercustm, and Hessiantm are trademarks of Caucho Technology.
Cloud-optimized Resin Server is a Java EE certified Java Application Server, and Web Server, and Distributed Cache Server (Memcached). Leading companies worldwide with demand for reliability and high performance web applications including SalesForce.com, CNET, DZone and many more are powered by Resin.
| home company docs app server |
|