Home > Store > Web Services > XML

Sams Teach Yourself XSLT in 21 Days

Sams Teach Yourself XSLT in 21 Days

eBook (Watermarked)

  • Your Price: $25.59
  • List Price: $31.99
  • Includes EPUB, MOBI, and PDF
  • About eBook Formats
  • This eBook includes the following formats, accessible from your Account page after purchase:

    ePub EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

    MOBI MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.

    Adobe Reader PDF The popular standard, used most often with the free Adobe® Reader® software.

    This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.

Also available in other formats.

Register your product to gain access to bonus material or receive a coupon.


  • Copyright 2002
  • Pages: 672
  • Edition: 1st
  • eBook (Watermarked)
  • ISBN-10: 0-13-265002-9
  • ISBN-13: 978-0-13-265002-1

The book covers XSLT and Xpath (as a part of XSLT), as these topics have everything to do with processing XML. It will also cover XML from an XSLT processing and design point of view. Other XML technologies will not be discussed as superset of XSLT, most notably XSL. XSL Formatting Objects alone is enough material for an entire book. Apart from that, XSLT and Xpath form the processing/programming section of the entire XSL specification. This book presents an overview of XSLT and guides readers through transforming their first XML data. In this book you will also learn:

  • Selecting Data-Stylesheets and Xpath Basics;
  • Inserting text and elements in output;
  • Copying elements from the source and inserting text;
  • Conditional processing basics and expressions;
  • Modularizing stylesheets;
  • Understanding, creating, and using templates;
  • Controlling output, as well as creating more advanced output;
  • Using multi-file stylesheets, variables, and parameters;
  • Working with numbers, strings, multiple XML sources, and namespaces;
  • Selecting data based upon keys;
  • Recursion;
  • Creating computational stylesheets;
  • Working with parses;
  • Designing XML and XSLT applications;
  • Extending XSLT.

Sample Content

Table of Contents

(NOTE: Each chapter concludes with a Summary, Q&A, and Workshop.)


Who Is This Book's Intended Audience? What Do You Need to Know Before You Read This Book? What Will You Learn from This Book? What Software Will You Need to Complete the Examples Provided with This Book? How This Book Is Organized. What's on the Sams Web Site for This Book. Conventions Used in This Book.


Day 1. Getting Started with XSLT.

Overview of XSLT. How Does XSLT Work? Creating XSLT Files. Processors for XML Transformation with XSLT.

Day 2. Transforming Your First XML.

Anatomy of a Stylesheet. Applying a Stylesheet to an XML Source.

Day 3. Selecting Data.

Understanding the XML Document Tree. Understanding XPath.

Day 4. Using Templates.

Understanding Templates. Creating and Using Templates. Determining Which Template Is Used.

Day 5. Inserting Text and Elements.

Inserting Text. Inserting Elements and Attributes. Copying Elements from the Source Document. Inserting Comments and Processing Instructions.

Day 6. Conditional and Iterative Processing.

Iterating Through a Node-Set. Conditional Processing. More About Expressions. Using Boolean Functions.

Day 7. Controlling the Output.

Creating Different Output Formats. Output Encoding and Output Escaping. Controlling Whitespace.

Week 1. In Review.

Overview of Bonus Project 1. Creating an Article with a Table of Contents.


Day 8. Working with Variables

Understanding Variables. Creating and Using Variables. Creating Variables from Expressions.

Day 9. Working with Parameters.

Understanding Parameters. Using Parameters.

Day 10. Understanding Data Types.

Data Type Basics. Conversion Between Data Types. Comparing Values.

Day 11. Working with Strings.

Operations on Strings. Formatting Data.

Day 12. Sorting and Numbering.

Sorting. Numbering.

Day 13. Working with Multifile Stylesheets.

Using Multiple Stylesheets. Including Stylesheets. Importing Stylesheets.

Day 14. Working with Multiple XML Sources.

Accessing Other XML Sources. Accessing the Stylesheet Elements. Multidocument Pros and Cons.

Week 2. In Review.

Overview of Bonus Project 2. Creating a Multifile Stylesheet with Parameters.


Day 15. Working with Namespaces.

Understanding Namespaces. Processing XML Sources with Namespaces. Getting Namespace Information. Inserting and Removing Namespaces.

Day 16. Advanced Data Selection.

More About Expressions. Working with Keys. Working with Unique IDs.

Day 17. Using Recursion.

Understanding Recursion. Creating Recursive Templates.

Day 18. Building Computational Stylesheets.

Computational Stylesheets Explained. Operators and Functions Used in Computations. Computational Applications.

Day 19. Working with XSLT Extensions.

Understanding XSLT Extensions. Using Built-in Extensions. Creating Your Own Extension Functions.

Day 20. Working with Different Processors.

Targeting Multiple Processors. XML Capabilities of Database Servers.

Day 21. Designing XML and XSLT Applications.

Designing XML. Designing XSLT.

Week 3. In Review.

Overview of Bonus Project 3. Creating a Shopping Basket in XSLT.


Appendix A. Answers to Quiz Questions and Exercises.

Answers for Day 1. Answers for Day 2. Answers for Day 3. Answers for Day 4. Answers for Day 5. Answers for Day 6. Answers for Day 7. Answers for Day 8. Answers for Day 9. Answers for Day 10. Answers for Day 11. Answers for Day 12. Answers for Day 13. Answers for Day 14. Answers for Day 15. Answers for Day 16. Answers for Day 17. Answers for Day 18. Answers for Day 19. Answers for Day 20. Answers for Day 21.

Appendix B. A Quick Reference of XSLT Elements and Functions.

XSLT Element Reference. XSLT and XPath Function Reference.

Appendix C. Command-Line Reference for Selected Processors.

MSXSL. Saxon. Xalan.

Appendix D. XML Resources on the Web.


Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership