Synopses & Reviews
There's been great anticipation surrounding the release of XSLT 2.0, the new language specification that's critical for converting XML documents into other formats, such as HTML code or a PDF file. The XSLT 2.0 specification is approaching completion at long last, but unfortunately, version 2.0's delays and complexity have forced developers to rely on the XSLT 1.0 standard longer than they anticipated. Both specifications will be in use during what is likely to be a long transition period.
The second edition of XSLT incorporates new material for XSLT 2.0 and expounds on the lessons learned over the last six years of XSLT 1.0 use. Whether you're looking for the latest and greatest in XSLT 1.0 techniques, or is moving on to XSLT 2.0, this new edition of XSLT will address your needs. The book includes plenty of practical, real-world examples to show you how to apply XSLT stylesheets to XML data using either version.
You'll get a thorough understanding of XSLT and XPath and their relationship to other web standards, along with recommendations for a honed toolkit in an open platform-neutral, standards-based environment. Author Doug Tidwell starts with the basics: simple stylesheets and methods for setting up transformation engines. Then he works through examples that develop your understanding of the many parts of XSLT, particularly XSLT's template-based approach to transformations. This new edition has been updated to explain XSLT 2.0's many dependencies, notably XML Schema and XPath 2.0.
Author Doug Tidwell starts with the basics: simple stylesheets and methods for setting up transformation engines. After presenting numerous examples, he explains XSLT 2.0Us many dependencies, notably XML Schema and XPath 2.0.
After years of anticipation and delay, the W3C finally released the XSLT 2.0 standard in January 2007. The revised edition of this classic book offers practical, real-world examples that demonstrate how you can apply XSLT stylesheets to XML data using either the new specification, or the older XSLT 1.0 standard.
XSLT is a critical language for converting XML documents into other formats, such as HTML code or a PDF file. With XSLT, you get a thorough understanding of XSLT and XPath and their relationship to other web standards, along with recommendations for a honed toolkit in an open platform-neutral, standards-based environment. This book:
- Covers the XSLT basics, including simple stylesheets and methods for setting up transformation engines
- Walks you through the many parts of XSLT, particularly XSLT's template-based approach to transformations
- Applies both XSLT 1.0 and 2.0 solutions to the same problems, helping you decide which version of XSLT is more appropriate for your project
- Includes profuse examples that complement both the tutorial and the reference material
The new edition of XSLT has been updated thoroughly to explain XSLT 2.0's many dependencies, notably XML Schema and XPath 2.0. Want to find out how the 2.0 specification improves on the old? This book will explain.
About the Author
Doug Tidwell is a senior programmer at IBM. He has more than a sixth of a century of programming experience, and has been working with markup languages for more than a decade. He was a speaker at the first XML conference in 1997, and has taught XML classes around the world. His job as a Cyb
Table of Contents
Preface; About This Book; Where I'm Coming From; How This Book Is Organized; Conventions Used in This Book; How to Contact Us; Safari® Enabled; Acknowledgments for the Second Edition; Acknowledgments from the First Edition; Chapter 1: Getting Started; 1.1 The Design of XSLT; 1.2 XML Basics; 1.3 Installing XSLT Processors; 1.4 Summary; Chapter 2: The Obligatory Hello World Example; 2.1 Goals of This Chapter; 2.2 Transforming Hello World; 2.3 How a Stylesheet Is Processed; 2.4 Stylesheet Structure; 2.5 Sample Gallery; 2.6 Summary; Chapter 3: XPath: A Syntax for Describing Needles and Haystacks; 3.1 The XPath Data Model; 3.2 Location Paths; 3.3 Attribute Value Templates; 3.4 Datatypes; 3.5 XPath Operators; 3.6 [2.0] Comments in XPath Expressions; 3.7 [2.0] Types of XSLT 2.0 Processors; 3.8 The XPath View of an XML Document; 3.9 Summary; Chapter 4: Creating Output; 4.1 Goals of This Chapter; 4.2 Generating Text; 4.3 Numbering Things; 4.4 Formatting Decimal Numbers; 4.5 [2.0] Formatting Dates and Times; 4.6 Using and ; 4.7 Dealing with Whitespace; 4.8 Summary; Chapter 5: Branching and Control Elements; 5.1 Goals of This Chapter; 5.2 Branching Elements of XSLT; 5.3 Invoking Templates by Name; 5.4 Parameters; 5.5 Variables; 5.6 Using Recursion to Do Most Anything; 5.7 A Stylesheet That Emulates a for Loop; 5.8 Summary; Chapter 6: Creating Links and Cross-References; 6.1 Using the XML ID, IDREF, and IDREFS Datatypes; 6.2 XSLT's Key Facility; 6.3 Generating Links in Unstructured Documents; 6.4 Summary; Chapter 7: Sorting and Grouping Elements; 7.1 Sorting Data with ; 7.2 [2.0] The Element; 7.3 Grouping Nodes; 7.4 [2.0] New Grouping Syntax in XSLT 2.0; 7.5 Summary; Chapter 8: Combining Documents; 8.1 The document