XML technologies / XSLT / XSLT Cookbook / Exploiting the potential of XSLT 2.0
(Excerpt from “XSLT Kochbuch” by Sal Mangano)
“If the only new thing we have to offer is an improved version of the past,
then today can only be inferior to yesterday.
Hypnotized by images of the past, we risk
losing all capacity for creative change.”
Robert Hewison
Introduction
XSLT 2.0 has many additions and extensions that make difficult tasks easier in XSLT. This chapter helps XSLT 1.0 veterans move to 2.0 and helps XSLT beginners understand how to approach stylesheet design better in 2.0.
XSLT 2.0 derives much of its improved functionality from XPath 2.0, so if you skipped chapter XPath, read it first.
As with most advances in software engineering, version 2.0 improves on the old version rather than offering an entirely new approach to stylesheet design. It also falls short in some features that would have made it a much better language, such as introspection and direct support for higher-order functions. Still, XSLT 2.0 does a good job of relieving the drudgery of developing complex stylesheet logic. Its main features are XPath functions, grouping, enhanced modes, cleaner ways to express reusable code, a richer type system and extended text-processing support. All these features were used to improve the 2.0 recipes in this edition. This chapter, however, provides a one-stop reference for the new features themselves.
Copyright © 2006 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “XSLT Kochbuch” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O'Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de