You are previewing XML Pocket Reference, Second Edition.
O'Reilly logo
XML Pocket Reference, Second Edition

Book Description

XML, the Extensible Markup Language, is the next-generation markup language for the Web. It provides a more structured (and therefore more powerful) medium than HTML, allowing you to define new document types and stylesheets as needed. Although the generic tags of HTML are sufficient for everyday text, XML gives you a way to add rich, well-defined markup to electronic documents. The XML Pocket Reference is both a handy introduction to XML terminology and syntax, and a quick reference to XML instructions, attributes, entities, and datatypes. Although XML itself is complex, its basic concepts are simple. This small book combines a perfect tutorial for learning the basics of XML with a reference to the XML and XSL specifications. The new edition introduces information on XSLT (Extensible Stylesheet Language Transformations) and Xpath.

Table of Contents

  1. XML Pocket Reference, 2nd Edition
    1. 1. XML Pocket Reference
      1. Introduction
      2. XML Terminology
        1. Unlearning Bad Habits
        2. An Overview of an XML Document
        3. A Simple XML Document
          1. Namespaces
        4. A Simple Document Type Definition (DTD)
        5. A Simple XSL Stylesheet
      3. XML Reference
        1. Well-Formed XML
        2. Special Markup
          1. <?xml ...?>
          2. <?...?>
          3. <!DOCTYPE>
          4. <!-- ... -->
          5. CDATA
        3. Element and Attribute Rules
        4. XML Reserved Attributes
          1. xml:lang
          2. xml:space
      4. Entity and Character References
      5. Document Type Definitions
        1. Element Declarations
        2. ANY and PCDATA
          1. Multiple sequences
          2. Grouping and recurrence
          3. Mixed content
          4. Empty elements
        3. Entities
          1. General entities
          2. Parameter entities
          3. External entities
          4. Unparsed entities
          5. Notations
        4. Attribute Declarations in the DTD
          1. Attribute modifiers
          2. Datatypes
        5. Included and Ignored Sections
          1. Internal subsets
      6. The Extensible Stylesheet Language
        1. Formatting Objects
      7. XSLT Stylesheet Structure
      8. Templates and Patterns
        1. Parameters and Variables
        2. Stylesheet Import and Rules of Precedence
        3. Loops and Tests
        4. Numbering Elements
        5. Output Method
      9. XSLT Elements
        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:value-of>
        32. <xsl:variable>
        33. <xsl:when>
        34. <xsl:with-param>
      10. XPath
        1. Axes
        2. Predicates
        3. Functions
        4. Additional XSLT Functions and Types
      11. XPointer and XLink
        1. Unique Identifiers
        2. ID References
        3. XPointer
          1. Fragment-identifier syntax
          2. XPointer datatypes
          3. Manipulation of points, ranges, and positions
        4. XLink
        5. Building Extended Links
          1. Extended links
          2. Resource elements
          3. Locator elements
          4. Arc elements
          5. Title elements
          6. Linkbases
        6. XBase