JSP+XML Custom Tag Examples

Introduction

This library contains a collection of JSP custom tags that are useful in manipulating XML data content using XSL stylesheets. In order to execute these tags, you must have downloaded the Xalan 1 distribution from http://xml.apache.org, and have installed the xalan.jar and xerces.jar files into your application's /WEB-INF/lib directory.

When navigating the examples, the following icons will help:

Execute the example JSP page
Look at the source code of the example JSP page, or one of the custom tag implementation classes.

The Example Page

Apply.jsp Apply.jsp

The Custom Tag Classes

ApplyTag.java ExportTag.java
ImportTag.java IncludeTag.java

Historical Note

The original version of this tag library had an InsertWithXSL tag, whose functionality has been absorbed into the new apply tag. If you were using the former version, simply replace any use of:

    <xsl:InsertWithXSL url="/xml/data.xml" xsl="/xml/style.xsl"/>

with the new syntax:

    <xsl:apply xml="/xml/data.xml" xsl="/xml/style.xsl"/>