XSLT 1.0 Pocket Reference

Book description

XSLT is an essential tool for converting XML into other kinds of documents: HTML, PDF file, and many others. It's a critical technology for XML-based platforms such as Microsoft .NET, Sun Microsystems' Sun One, as well as for most web browsers and authoring tools. As useful as XSLT is, however, most people have a difficult time getting used to its peculiar characteristics. The ability to use advanced techniques depends on a clear and exact understanding of how XSLT templates work and interact.

The XSLT 1.0 Pocket Reference from O'Reilly wants to make sure you achieve that level of understanding. With its concise approach, this handy pocket guide quickly gets you up to speed on XSLT 1.0 so you can covert XML like a seasoned pro. In addition to covering the basics of stylesheet structure, it also explains how to:

  • use template rules
  • create a result tree
  • apply conditional processing
  • transform multiple source documents
  • employ number formatting

Thanks to their convenient, quick-reference format, O'Reilly's Pocket References spare you from having to hunt through larger books for answers. They deliver just what you need to get the job done in a timely fashion. And the XSLT 1.0 Pocket Reference is no different--it's the ideal companion to have at your desk when you need an answer fast.

Publisher resources

View/Submit Errata

Table of contents

  1. XSLT 1.0 Pocket Reference
  2. 1. Data Model
    1. Node Types
    2. Node Properties
  3. 2. The XPath Language
    1. Data Types
      1. Result Tree Fragments
    2. Expression Context
    3. Kinds of Expressions
    4. Node-Set Expressions
      1. Location Paths
        1. Steps
        2. Axes
        3. Node tests
        4. Abbreviations
      2. How Location Paths Are Evaluated
      3. Predicates
        1. Context size in predicates
        2. Context position in predicates
        3. Numeric predicates
        4. “Step filters” versus “expression filters”
      4. Other Node-Set Expressions
    5. Number Expressions
      1. Arithmetic Operators
    6. String Expressions
    7. Boolean Expressions
      1. Comparisons Involving Node-Sets
      2. Comparing Simple Values
  4. 3. How XSLT Works
    1. Stylesheet Structure
    2. Processing Model
      1. Template Rules
      2. Applying Template Rules
      3. Patterns
      4. Conflict Resolution for Template Rules
        1. Priority
      5. Modes
      6. Built-In Template Rules
    3. Template Rule Content
      1. Literal Result Elements
      2. Attribute Value Templates
      3. How XPath Context Is Initialized
    4. Whitespace Stripping
    5. Serializing the Result Tree
      1. Disabling Output Escaping
    6. XSLT Elements by Use Case
  5. 4. Elements
    1. Top-Level Elements
    2. Instructions
    3. Special Elements
    4. QNames
    5. Element Reference
      1. <xsl:apply-imports>
      2. <xsl:apply-templates>
      3. <xsl:attribute>
      4. <xsl:attribute-set>
      5. <xsl:call-template>
      6. <xsl:choose>
      7. <xsl:comment>
      8. <xsl:copy>
      9. <xsl:copy-of>
      10. <xsl:decimal-format>
      11. <xsl:element>
      12. <xsl:fallback>
      13. <xsl:for-each>
      14. <xsl:if>
      15. <xsl:import>
      16. <xsl:include>
      17. <xsl:key>
      18. <xsl:message>
      19. <xsl:namespace-alias>
      20. <xsl:number>
      21. <xsl:otherwise>
      22. <xsl:output>
      23. <xsl:param>
      24. <xsl:preserve-space>
      25. <xsl:processing-instruction>
      26. <xsl:sort>
      27. <xsl:strip-space>
      28. <xsl:stylesheet>
      29. <xsl:template>
      30. <xsl:text>
      31. <xsl:transform>
      32. <xsl:value-of>
      33. <xsl:variable>
      34. <xsl:when>
      35. <xsl:with-param>
  6. 5. Functions
    1. XPath Functions
    2. XSLT Functions
    3. Data Type Conversions
      1. Strings
      2. Numbers
      3. Booleans
      4. Node-Sets
    4. Function Reference
  7. 6. Extending XSLT
    1. Extension Functions
      1. How to Use an Extension Function
    2. Extension Elements
      1. How to Use an Extension Element
    3. EXSLT
    4. EXSLT—Common
      1. Core Functions—Common Module
      2. Optional Elements—Common Module
        1. <exsl:document>
    5. EXSLT—Dates and Times
      1. Data Types
      2. Core Functions—Dates and Times Module
      3. Optional Functions—Dates and Times Module
      4. Optional Elements—Dates and Times Module
    6. EXSLT—Functions
      1. Core Elements—Functions Module
        1. <func:function>
        2. <func:result>
      2. Optional Elements—Functions Module
        1. <func:script>
    7. EXSLT—Math
      1. Core Functions—Math Module
      2. Optional Functions—Math Module
    8. EXSLT—Random
      1. Core Functions—Random Module
    9. EXSLT—Sets
      1. Core Functions—Sets Module
    10. EXSLT—Dynamic
      1. Optional Functions—Dynamic Module
    11. EXSLT—Regular Expressions
      1. Optional Functions—Regular Expressions Module
    12. EXSLT—Strings
      1. Optional Functions—Strings Module
  8. A. XPath 1.0 Grammar
    1. Productions from XPath 1.0
    2. Productions from Namespaces in XML
    3. Productions from XML 1.0
  9. B. XSLT Pattern Grammar
  10. Index
  11. About the Author
  12. Copyright

Product information

  • Title: XSLT 1.0 Pocket Reference
  • Author(s): Evan Lenz
  • Release date: August 2005
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781449366049