Exercises

On Day 14, “JSP Tag Libraries,” you developed a custom tag library for use with your Web application. Today, you will write an XSLT stylesheet that will transform a Tag Library Descriptor (TLD) document into an HTML page for easy viewing.

Listing 17.19 shows the agency.tld file from Day 14 that you will transform into HTML for display by a Web browser.

Listing 17.19. Full Text of agency.tld
 1: <?xml version="1.0" encoding="ISO-8859-1" ?> 2: <!--DOCTYPE taglib PUBLIC 3: "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" 4: "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"--> 5: <taglib> 6: <tlib-version>1.0</tlib-version> 7: <jsp-version>1.2</jsp-version> 8: <short-name>agency</short-name> 9: <tag> 10: <name>getJob</name> 11: ...

Get Sams Teach Yourself J2EE™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.