Synopses & Reviews
The power of XSLT is its ability to change the structure or format of any content that can be converted to XML. Java and XSLT shows you how to use XSL transformations in Java programs ranging from stand-alone applications to servlets. After an introduction to XSLT, the book focuses on applying transformations in some real-world scenarios, such as developing a discussion forum, transforming documents from one form to another, and generating content for wireless devices.Java and XSLT discusses several common XSLT processors and the TRAX API, paying special attention to performance issues. Although there's a brief tutorial introduction to the XSLT language, the primary focus of the book isn't on learning XSLT or developing stylesheets; it's on making practical use of transformations in Java code.The book covers:
- Introduction and Technology Review
- XSLT--The Basics
- XSLT--Beyond The Basics
- Java Web Architecture
- Programmatic Interfaces to XSLT Processors
- Using XSLT with Servlets
- Discussion Forum Implementation
- Advanced XSLT Web Techniques
- Testing, Tuning and Development Environments
- WAP and WML
- XSLT and Wireless Examples
Table of Contents
Preface; Audience; Software and Versions; Organization; Conventions Used in This Book; How to Contact Us; Acknowledgments; Chapter 1: Introduction; 1.1 Java, XSLT, and the Web; 1.2 XML Review; 1.3 Beyond Dynamic Web Pages; 1.4 Getting Started; 1.5 Web Browser Support for XSLT; Chapter 2: XSLT Part 1 -- The Basics; 2.1 XSLT Introduction; 2.2 Transformation Process; 2.3 Another XSLT Example, Using XHTML; 2.4 XPath Basics; 2.5 Looping and Sorting; 2.6 Outputting Dynamic Attributes; Chapter 3: XSLT Part 2 -- Beyond the Basics; 3.1 Conditional Processing; 3.2 Parameters and Variables; 3.3 Combining Multiple Stylesheets; 3.4 Formatting Text and Numbers; 3.5 Schema Evolution; 3.6 Ant Documentation Stylesheet; Chapter 4: Java-Based Web Technologies; 4.1 Traditional Approaches; 4.2 The Universal Design; 4.3 XSLT and EJB; 4.4 Summary of Key Approaches; Chapter 5: XSLT Processing with Java; 5.1 A Simple Example; 5.2 Introduction to JAXP 1.1; 5.3 Input and Output; 5.4 Stylesheet Compilation; Chapter 6: Servlet Basics and XSLT; 6.1 Servlet Syntax; 6.2 WAR Files and Deployment; 6.3 Another Servlet Example; 6.4 Stylesheet Caching Revisited; 6.5 Servlet Threading Issues; Chapter 7: Discussion Forum; 7.1 Overall Process; 7.2 Prototyping the XML; 7.3 Making the XML Dynamic; 7.4 Servlet Implementation; 7.5 Finishing Touches; Chapter 8: Additional Techniques; 8.1 XSLT Page Layout Templates; 8.2 Session Tracking Without Cookies; 8.3 Identifying the Browser; 8.4 Servlet Filters; 8.5 XSLT as a Code Generator; 8.6 Internationalization with XSLT; Chapter 9: Development Environment, Testing, and Performance; 9.1 Development Environment; 9.2 Testing and Debugging; 9.3 Performance Techniques; Chapter 10: Wireless Applications; 10.1 Wireless Technologies; 10.2 The Wireless Architecture; 10.3 Java, XSLT, and WML; 10.4 The Future of Wireless; Discussion Forum Code; JAXP API Reference; XSLT Quick Reference; Colophon;