XSLT and XPATH: A Guide to XML Transformations

Book description

Gain total control over your information with XSLT and XPath!

  • Master XSLT and XPath—the "keys to the XML kingdom"

  • Build custom XML output solutions that won't become obsolete

  • Learn everything from basic XML-to-HTML conversions to leading edge techniques

  • CD-ROM includes all examples from the book

  • Mastering XSLT and XPath gives you unprecedented control over your information—and helps you leverage virtually every new XML technology, from XLink to schemas. Discover XSLT's powerful vocabulary of easy, programming-like features, and learn how to build custom solutions that resist obsolescence. By the end of the first chapter, you'll be performing XML-to-HTML conversions for display in any Web browser. Then build on your knowledge through a series of hands-on examples that transform you into an XSLT/XPath expert!

  • XSLT as an XML document instance: leveraging your existing XML skills

  • XSLT stylesheet concepts and constructs: fundamental through advanced level

  • XPath patterns and functions

  • XSLT subroutine functions and variables

  • XSLT processing of multiple nodes: iterative and conditional XSLT elements

  • Controlling output options

  • XSLT extensions, and more

  • Whether you're an experienced programmer or a novice markup specialist, here's your chance to master XML's most potent tools for organizing, updating, and delivering digital information—any data, anywhere, any time!

    Table of contents

    1. Copyright
    2. Preface
    3. Acknowledgments
    4. Anatomy of an XSLT Stylesheet
      1. What Is Markup?
      2. What Is XSLT?
      3. What Is XPath?
      4. XSLT Stylesheet Concepts
      5. Terminology for XSLT
      6. Climbing 'Round the Family Tree: Addressing in XSLT
    5. Fundamental Concepts of XSLT Stylesheets
      1. Boilerplates for XSLT Stylesheets
      2. Embedding Stylesheets in XML Documents
      3. XSLT Stylesheet Terminology
      4. XML Components of XSLT Stylesheets
    6. Advanced Stylesheet Concepts
      1. Templates: The Building Blocks of Transformations
      2. Built-in Template Rules
    7. XPath Expressions
      1. XPath Syntax and Terminology
      2. Abbreviations
    8. XPath Functions
      1. XPath Function Library
      2. The Node-set Core Function Group
      3. String Core Function Group
      4. Boolean Core Function Group
      5. Number Core Function Group
    9. Building New XML Documents with XSLT
      1. Creating Elements with LREs
      2. The <xsl:element> Instruction Element
      3. Creating Attributes with the <xsl:attribute> Instruction Element
      4. The <xsl:attribute-set> Top-Level Element
      5. The <xsl:text> Instruction Element
      6. Adding Attributes to LREs
      7. Comments and Processing-Instructions
      8. Namespace Aliases
    10. Using Multiple Stylesheets
      1. Working with External Stylesheets
      2. Template Rule Processing and Priorities
    11. Working with Variables
      1. Declaring and Binding Variables
      2. Result Tree Fragments
      3. Using Variable References
      4. Comparing <xsl:variable> and <xsl:param>
      5. Comparing <xsl:with-param> to <xsl:param> and <xsl:variable>
    12. Duplication, Iteration, and Conditional XSLT Elements
      1. The <xsl:copy-of> Instruction Element
      2. The <xsl:copy> Instruction Element
      3. The <xsl:for-each> Instruction Element
      4. The <xsl:sort> Element
      5. The <xsl:if> Instruction Element
      6. The <xsl:choose> Instruction Element
      7. The <xsl:number> Instruction Element
    13. Controlling Output Options
      1. The <xsl:output> Top-Level Element
      2. The <xsl:strip-space> and <xsl:preserve-space> Top-Level Elements
      3. Generating Error Messages and Logs
    14. XSLT Functions and Related XSLT Elements
      1. XSLT Function Groups
      2. String XSLT Functions
      3. The Boolean XSLT Function Group
    15. XSLT Processors, Extensions, and Java
      1. XSLT Processors
      2. Extension Elements and Functions
      3. Namespaces
      4. Java
      5. Commercial XSLT Processors
    16. Xalan, Saxon, and XT
      1. Xalan
      2. Saxon
      3. XT
      4. Generating Multiple Output Files Using Saxon, Xalan, or XT
    17. Case Studies
      1. Lists
      2. MARC Records: The ATLAS Project from ATLA-CERTR at Emory University
      3. The Harvard-Kyoto Classics Project with Vedic Literature
    18. Grouping Using the Muenchian Method
      1. by Jeni Tennison
    19. Using XSLT for the Artificial Intelligence “N-Queens” Problem
      1. by Oren Ben-Kiki
      2. Architecture
      3. The Stylesheet
      4. Final notes

    Product information

    • Title: XSLT and XPATH: A Guide to XML Transformations
    • Author(s): John Robert Gardner, Zarella L. Rendon
    • Release date: July 2001
    • Publisher(s): Pearson
    • ISBN: 9780130404466