As you gain a solid foundation in XSLT processing, you′ll learn the basic node tree structure that is used in the data model and discover how XSLT differs from the approach used in other programming languages. Example–laden chapters include both versions 1.0 and 2.0 features and demonstrate how to transform one XML data format to another. The book covers the key structural elements of an XSLT file and shows you how to use simple XPath expressions to match and select source file content. Along the way, you′ll uncover a rich set of XPath functions that will benefit you again and again as you develop your XSLT skills.
What you will learn from this book
How to define templates, the basic building blocks of XSLT
The way to construct XPath expressions and use a range of powerful XPath and XSLT functions
The role of variables and parameters in XSLT
Making use of control structures and iteration
How to generate and format numbers, dates, and times
Methods for working with multiple source and stylesheet documents
Ways to debug XSLT, validate types in XSLT, and document your stylesheets
Tips for indexing and linking items using identifiers and keys
Techniques for controlling whitespace and processing plain text
Who this book is for
This book is for web developers, authors, and designers who understand XML basics, and are interested in gaining a solid understanding of XSLT processing.
Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.
Chapter 1: First Steps with XSLT.
Chapter 2: Introducing XPath.
Chapter 3: Templates, Variables, and Parameters.
Chapter 4: Using Logic.
Chapter 5: Sorting and Grouping.
Chapter 6: Strings, Numbers, Dates, and Times.
Chapter 7: Multiple Documents.
Chapter 8: Processing Text.
Chapter 9: Identifiers and Keys.
Chapter 10: Debugging, Validation, and Documentation.
Chapter 11: A Case Study.
Appendix A: Answers to Exercises.
Appendix B: Extending XSLT.
Appendix C: XSLT Processing Model.
Appendix D: XSLT 2.0 Quick Reference.
Appendix E: XSLT 2.0 Schema.
Appendix F: XPath 2.0 Function Reference.
Appendix G: References.
Since 1998 Ian has worked on technical writing and information–design projects, most recently for Nokia, Reuters, and Volantis. He is co–author with Pierre Greborio of
Professional InfoPath 2003, also from Wrox Press.