- By David Geary
Create XML files using JSP
Listing 1. test.jsp.
<html><head><title>Applying Xsl with Jsp</title></head>
<%@ taglib uri='WEB-INF/tlds/xsl.tld' prefix='xsl' %>
<%@ taglib uri='WEB-INF/tlds/inventory.tld' prefix='inventory' %>
Auction Inventory as of <%= new java.util.Date() %>
<xsl:apply xml='inventory.xml' xsl='inventory.xsl'/></p>
David Geary was the lead engineer for the Java Management API GUI toolkit, and is now an independent Java consultant. David is the author of Graphic Java—Mastering the JFC. He can be contacted at firstname.lastname@example.org.