In addition, the book covers XSLT functions. The functions are explained fully and examples are well written. After each example, the book discusses the implications of the example and the output that results from the transformation. The author points out where the chapter in the book relations to the section of the XSLT specification, if the reader wanted to find the actual specification. All the chapters are easy to follow and understand because the author's writing style is very fluid and clear. The upcoming XSLT 2.0 specifications are also highlighted throughout the book.
I would recommend this book to anyone new to XSLT. It's a good book for learning XSLT in clear terms and at an easy pace. You won't be let down if you take the time to read it carefully, try out the different features of XSLT, and think about the XSLT concepts presented.
Contents
This is a tutorial guide for teaching yourself the fundamentals of Extensible Stylesheet Language Transformations, or XSLT.
The book contains the following chapters: Preface; Transforming Documents with XSLT; Building New Documents with XSLT; Controlling Output; Traversing the Tree; XPath and XSLT Functions; Copying Nodes; Using Variables and Parameters; Sorting Things Out; Numbering Lists; Templates; Using Keys; Conditional Processing; Working with Multiple Documents; Alternative Stylesheets; Extensions; XSLT 2.0 and XPath 2.0; Writing an XSLT Processor Interface; Parting Words; Appendix: XSLT Processors; Glossary; Index
Review
While XML is becoming the de facto standard for data exchange between programs and platforms, it does nothing to allow the reader to see the data in a useful, formatted output. And, since XML is not concerned about presentation of data, that's proper. What you need is some way to turn that data into readable output based on the reader's needs. To do that, you use XSLT. That's where this book comes into play.
Michael Fitzgerald has written a concise, easy-to-follow book that will allow you to start working with the XSLT language. Since this book is not combined with every other XML technology known to man, you will not get lost in a morass of acronyms or concepts that would quickly confuse the beginner. The focus is just XSLT, and the assumption is that you are approaching the language for the first time. There are a number of examples that give you hands-on experience during the learning process, and most of the examples also show a screen print of the browser output so that you know if you were successful with your coding. The code can also be downloaded from the book's website, so if you just want to skip to the output, you can do that.
The author doesn't try to write for both the beginner and the expert. Since the focus is on the beginning XSLT coder, the person with an existing base of XSLT experience may not find this book of much use. I don't say that as a gripe against the book, rather as a way to manage your expectations. It's better than a "For Dummies" title, but it's not an exhaustive guide to all that is XSLT. If you fall into the target audience, you should gain a lot from this title.
Conclusion
Learning XSLT is a very good choice to start your foray into the world of XML transformations. You should come away with the basic information you need to be effective and continue to expand your experience.
Discussions of big-picture concepts like how templates work and XPath in the early chapters of the book were not, in my opinion, adequately expansive and often digressed into what I consider peripheral detail. Information about templates that I consider key to understanding how a stylesheet works was not addressed until Chapter 10. And I had to lean heavily on the W3C's XPath Recommendation because I could not find important details about XPath in the single-chapter coverage the author provides.
This book offers virtually no practical advice on how to approach transformation of complex, real-world markup. The examples are short, contrived, and generally uninformative, beyond providing basic syntax.
I purchased this book because my employer offers discounts on O'Reilly books, and of the XSLT titles O'Reilly offers, this one seemed closest to my needs. Probably should have looked harder.
Afterward I got Michael Kay's book on XSLT by WROK, it soo much better.