You are previewing XML Companion, The, Third Edition.
O'Reilly logo
XML Companion, The, Third Edition

Book Description

Building on the success of the first and second editions of The XML Companion, Neil Bradley has up-dated this accessible, in-depth reference to cover many of the new supporting standards that have emerged since XML was released in 1998. Apart from the core chapters on the XML standard itself, this book concentrates on related standards developed by the W3C and on the two most popular applications of this technology: document publishing and data exchange.  The XML Companion

  • Provides accessible, comprehensive description of each XML feature

  • Does not assume experience of HTML or SGML

  • Detailed study of the standard is supported by the inclusion of cross-referenced ‘roadmaps’ of the building blocks that comprise the standard.

  • Includes an extensive glossary

  • Related standards for cataloguing, processing, linking and styling XML are covered in detail.

  • Table of Contents

    1. Copyright
    2. Preface
    3. Using this book
      1. Book structure
      2. Style conventions
      3. Editorial policies
    4. Elementary XML
      1. Introduction
      2. Text
      3. Markup
      4. XML documents
      5. Elements
      6. Document modelling
      7. Element hierarchies
      8. Attributes
      9. Uses of XML
    5. More document markup
      1. Introduction
      2. Reserved attributes
      3. Processing instructions
      4. XML declaration
      5. Markup declarations
      6. Document type declaration
      7. Character data sections
      8. Comments
      9. Syntax overview
    6. Physical structures (entities)
      1. Introduction
      2. Entity references
      3. Built-in entity references
      4. Character entity references
      5. Declaring an entity
      6. Internal text entities
      7. External text entities
      8. Entities within entities
      9. Binary entities
      10. General entities
      11. Parameter entities
      12. Document type declaration
      13. Alternatives to entities
    7. Document type definitions (the DTD)
      1. Introduction
      2. Models
      3. Validating parsers
      4. DTD location
      5. DTD markup
      6. Element declarations
      7. Attribute declarations
      8. Parameter entities
      9. Conditional sections
      10. Notation declarations
      11. DTD processing issues
    8. Document modelling techniques
      1. Stages of development
      2. Document analysis
      3. Database schema analysis
      4. Future-use analysis
      5. Legally overlapping structures
      6. Appropriate names
      7. Element or attribute
      8. Other modelling tips
      9. Appropriate granularity
      10. Industry standard models
      11. Lists
      12. Table standards
      13. Architectural forms
      14. DTD writing tools
      15. DTD formatting
      16. Debugging the DTD
      17. Case study (quotations)
      18. Case study (this book)
    9. Hypertext links
      1. Background
      2. ID/IDREF
      3. Link value strategies
      4. Merging to publish
    10. Whitespace issues
      1. Whitespace
      2. Line-end normalization
      3. Whitespace in markup
      4. Element content space
      5. Preserved space
      6. Line ending interpretation
      7. Ambiguous space
    11. XML extensions
      1. Extension standards
      2. General extensions
      3. Significant XML domains
    12. Namespaces
      1. Compound documents
      2. Mixed model problems
      3. The standard
      4. Namespace identification
      5. Using namespaces
      6. Defaults
      7. DTD handling
      8. Examples of usage
    13. Relative URLs (XML Base)
      1. Background
      2. XML Base markup
      3. External entity declarations
      4. External entity content
      5. DTD declarations
    14. Composite documents (XInclude)
      1. Overview
      2. Identifying objects to include
      3. Recursive processing
      4. Inclusion markup
      5. Text inclusions
      6. Duplicate entity and notation declarations
      7. Including complete documents
      8. Contextual base URLs
      9. Namespace complications
      10. Illegal inclusions
      11. Document modelling
      12. Alternatives to XInclude
      13. XSLT implementation
    15. Navigation (XPath)
      1. Background
      2. Expressions
      3. Simple location paths
      4. Complex location paths
      5. Patterns
      6. Predicate filters
      7. ID limitations
    16. Schemas
      1. DTD limitations
      2. Alternative modelling languages
      3. XML Schemas
      4. Element definitions
      5. Attributes
      6. Namespaces and schema references
      7. Including other models
      8. Efficiency shortcuts
    17. Advanced XML Schemas
      1. Introduction
      2. Default and fixed element values
      3. All groups
      4. Simple types with attributes
      5. Nil values
      6. Local element definitions
      7. Unique values
      8. Unique keys
      9. Keys
      10. Data types
      11. Type library
      12. Simple type derivations
      13. Patterns
      14. Complex type derivations
      15. Selection from instance documents
      16. Constraining derivations
      17. Substitutions
      18. Re-defining external definitions
      19. Imports
    18. Processing XML data
      1. Writing XML
      2. Reading XML
      3. Event processing
      4. Tree manipulation
      5. Processing approach decisions
      6. Transformation tools
    19. Transformations (XSLT)
      1. Overview
      2. XSLT and XSL
      3. XSLT DTD
      4. General structure
      5. Templates
      6. Recursive processing
      7. Selective processing
      8. Priorities
      9. Output
      10. Whitespace
      11. Sorting elements
      12. Automatic numbering
      13. Modes
      14. Variables and named templates
      15. Using attribute values
      16. Creating and copying elements
      17. XML output headers
      18. Repeating structures
      19. Conditions
      20. Keys
      21. Messages
      22. Imports and inclusions
      23. Extended functions
      24. Number formatting
      25. Stylesheet DTD issues
    20. SAX 1.0
      1. Background
      2. Call-backs and interfaces
      3. Java Xerces implementation
      4. The parser
      5. Document handlers
      6. Attribute lists
      7. Error handlers
      8. SAX Parse exception
      9. Locators
      10. DTD handlers
      11. Input sources
      12. Entity resolvers
      13. Handler bases
      14. Helper classes
    21. SAX 2.0
      1. Changes from 1.0
      2. XML Reader
      3. Features
      4. Properties
      5. Namespace support
      6. ContentHandler
      7. Attributes
      8. Helper classes
    22. DOM Level 1
      1. Background
      2. Implementing a DOM
      3. Nodes
      4. Documents
      5. Document types
      6. Elements
      7. Attributes
      8. Character data
      9. Text
      10. Character data sections
      11. Comments
      12. Processing instructions
      13. Entities and notations
      14. Node lists
      15. Named node maps
      16. Document fragments
      17. DOM implementation
    23. DOM Level 2
      1. Namespace support
      2. Node extensions
      3. Document extensions
      4. Document type extensions
      5. Element extensions
      6. Attribute extensions
      7. Named node map extensions
      8. DOM implementation extensions
      9. Unchanged interfaces
      10. Iteration and tree-walking
      11. Ranges
    24. Document formatting
      1. Presenting XML
      2. Style-oriented markup languages
      3. Formatting instructions
      4. Embedded styles
      5. Stylesheets
      6. Transformations
      7. DTD associations
      8. Stylesheet features
      9. Complex requirements
      10. Document layout categories
      11. Publishing from XML
      12. Stylesheet languages
      13. Formatting languages
      14. XSL or CSS
      15. Standard stylesheet references
      16. Implicit stylesheet references
    25. XHTML
      1. HTML
      2. Change of syntax
      3. Backward compatibility
      4. Flavours of XHTML
      5. Basic document structure
      6. Header elements
      7. Paragraphs
      8. Basic hypertext links
      9. Core attributes
      10. International attributes
      11. Headers and divisions
      12. Lists
      13. Font styles and phrases
      14. Formatted text
      15. Images and image zones
      16. Objects
      17. Tables
      18. Forms
      19. Descriptive markup
      20. Event trigger attributes
      21. Changes from HTML 4
    26. Cascading stylesheets (CSS1)
      1. Background
      2. Format overview
      3. Styling properties
      4. Colour and background properties
      5. Text style properties
      6. Boxes
      7. Display properties
      8. Simple element mapping
      9. Contextual rules
      10. Accessing and overriding styles
      11. XML specifics
      12. Batch composition to HTML
      13. HTML features
    27. Cascading stylesheets 2 (CSS2)
      1. Improvements
      2. Improved selection options
      3. Miscellaneous improvements
      4. Fonts and styles
      5. Boxes
      6. Lists
      7. Prefix and suffix generation
      8. Display options
      9. Tables
      10. Printed output
      11. User interface
      12. Aural styles
    28. Managing XML documents
      1. Introduction
      2. Simple file storage
      3. Free-text searching
      4. Maintaining document links
      5. Formal public identifiers
      6. XML Catalog format
      7. Classification
      8. Database management
      9. Basic document management
      10. Document component management
      11. Document disassembly techniques
      12. XML or SQL
      13. Document editing
    29. Extended links (XLink)
      1. Background
      2. Link markup
      3. Simple links
      4. Titles
      5. Roles
      6. Linking behaviour
      7. Simple link limitations
      8. Extended links
      9. Multiple titles
      10. More titles and roles
      11. Arcs
      12. Out-of-line links
    30. Advanced links (XPointer)
      1. Concepts
      2. XPointer
      3. Pointing to identifiers
      4. Fallbacks
      5. Location context
      6. Escaping characters
      7. Multiple targets
      8. Extension functions
      9. Points and ranges
      10. Relative links
      11. Targeting text strings
      12. Namespace issues
    31. Character sets
      1. Characters
      2. ASCII
      3. Text files
      4. Extended ASCII
      5. Unicode and ISO/IEC 10646
      6. Character sets summary
      7. Character set declarations
      8. Entities for characters
      9. XML language
    32. URLs
      1. URLs and URIs
      2. URL construction
      3. Protocols
      4. File and HTTP URLs
      5. Queries
      6. File paths
      7. Computer platform complications
      8. URL references
      9. Fragments
      10. Common errors
      11. URNs
    33. Past and future context
      1. Overview
      2. Markup
      3. SGML
      4. HTML
      5. XML
      6. The future
    34. SGML
      1. History and usage
      2. SGML Declaration
      3. DTD features
      4. Markup minimization techniques
      5. Converting to XML
    35. Charts and tables
      1. SAX 1.0 methods
      2. SAX 2.0 methods
      3. DOM methods
      4. XSLT elements and attributes
      5. CSS properties
      6. This book DTD
      7. ISO 8859/1 character set
      8. ISO 639 language codes
      9. ISO 3166 country codes
      10. HTML and XHTML elements and attributes
    36. XML road map
      1. Map formats
      2. Content lists
      3. Maps
    37. XPath road map
      1. Content lists
      2. Expression structure overview
      3. Expression tokens
      4. Maps
    38. Glossary
      1. Symbols and digits
      2. A
      3. B
      4. C
      5. D
      6. E
      7. F
      8. G
      9. H
      10. I
      11. J
      12. K
      13. L
      14. M
      15. N
      16. O
      17. P
      18. Q
      19. R
      20. S
      21. T
      22. U
      23. V
      24. W
      25. X
      26. Z
    39. Index