-
XML Concepts
-
Chapter 1 Introducing XML
- The Benefits of XML
- What XML Is Not
- Portable Data
- How XML Works
- The Evolution of XML
-
Chapter 2 XML Fundamentals
- XML Documents and XML Files
- Elements, Tags, and Character Data
- Attributes
- XML Names
- References
- CDATA Sections
- Comments
- Processing Instructions
- The XML Declaration
- Checking Documents for Well-Formedness
-
Chapter 3 Document Type Definitions (DTDs)
- Validation
- Element Declarations
- Attribute Declarations
- General Entity Declarations
- External Parsed General Entities
- External Unparsed Entities and Notations
- Parameter Entities
- Conditional Inclusion
- Two DTD Examples
- Locating Standard DTDs
-
Chapter 4 Namespaces
- The Need for Namespaces
- Namespace Syntax
- How Parsers Handle Namespaces
- Namespaces and DTDs
-
Chapter 5 Internationalization
- Character-Set Metadata
- The Encoding Declaration
- Text Declarations
- XML-Defined Character Sets
- Unicode
- ISO Character Sets
- Platform-Dependent Character Sets
- Converting Between Character Sets
- The Default Character Set for XML Documents
- Character References
- xml:lang
-
-
Narrative-Like Documents
-
Chapter 6 XML as a Document Format
- SGML's Legacy
- Narrative Document Structures
- TEI
- DocBook
- OpenOffice
- WordprocessingML
- Document Permanence
- Transformation and Presentation
-
Chapter 7 XML on the Web
- XHTML
- Direct Display of XML in Browsers
- Authoring Compound Documents with Modular XHTML
- Prospects for Improved Web Search Methods
-
Chapter 8 XSL Transformations (XSLT)
- An Example Input Document
- xsl:stylesheet and xsl:transform
- Stylesheet Processors
- Templates and Template Rules
- Calculating the Value of an Element with xsl:value-of
- Applying Templates with xsl:apply-templates
- The Built-in Template Rules
- Modes
- Attribute Value Templates
- XSLT and Namespaces
- Other XSLT Elements
-
Chapter 9 XPath
- The Tree Structure of an XML Document
- Location Paths
- Compound Location Paths
- Predicates
- Unabbreviated Location Paths
- General XPath Expressions
- XPath Functions
-
Chapter 10 XLinks
- Simple Links
- Link Behavior
- Link Semantics
- Extended Links
- Linkbases
- DTDs for XLinks
- Base URIs
-
Chapter 11 XPointers
- XPointers on URLs
- XPointers in Links
- Shorthand Pointers
- Child Sequences
- Namespaces
- Points
- Ranges
-
Chapter 12 XInclude
- The include Element
- Including Text Files
- Content Negotiation
- Fallbacks
- XPointers
-
Chapter 13 Cascading Style Sheets (CSS)
- The Levels of CSS
- CSS Syntax
- Associating Stylesheets with XML Documents
- Selectors
- The Display Property
- Pixels, Points, Picas, and Other Units of Length
- Font Properties
- Text Properties
- Colors
-
Chapter 14 XSL Formatting Objects (XSL-FO)
- XSL Formatting Objects
- The Structure of an XSL-FO Document
- Laying Out the Master Pages
- XSL-FO Properties
- Choosing Between CSS and XSL-FO
-
Chapter 15 Resource Directory Description Language (RDDL)
- What's at the End of a Namespace URL?
- RDDL Syntax
- Natures
- Purposes
-
-
Record-Like Documents
-
Chapter 16 XML as a Data Format
- Why Use XML for Data?
- Developing Record-Like XML Formats
- Sharing Your XML Format
-
Chapter 17 XML Schemas
- Overview
- Schema Basics
- Working with Namespaces
- Complex Types
- Empty Elements
- Simple Content
- Mixed Content
- Allowing Any Content
- Controlling Type Derivation
-
Chapter 18 Programming Models
- Common XML Processing Models
- Common XML Processing Issues
- Generating XML Documents
-
Chapter 19 Document Object Model (DOM)
- DOM Foundations
- Structure of the DOM Core
- Node and Other Generic Interfaces
- Specific Node-Type Interfaces
- The DOMImplementation Interface
- DOM Level 3 Interfaces
- Parsing a Document with DOM
- A Simple DOM Application
-
Chapter 20 Simple API for XML (SAX)
- The ContentHandler Interface
- Features and Properties
- Filters
-
-
Reference
-
Chapter 21 XML Reference
- How to Use This Reference
- Annotated Sample Documents
- XML Syntax
- Constraints
- XML 1.0 Document Grammar
- XML 1.1 Document Grammar
-
Chapter 22 Schemas Reference
- The Schema Namespaces
- Schema Elements
- Built-in Types
- Instance Document Attributes
-
Chapter 23 XPath Reference
- The XPath Data Model
- Data Types
- Location Paths
- Predicates
- XPath Functions
-
Chapter 24 XSLT Reference
- The XSLT Namespace
- XSLT Elements
- XSLT Functions
- TrAX
-
Chapter 25 DOM Reference
- Object Hierarchy
- Object Reference
-
Chapter 26 SAX Reference
- The org.xml.sax Package
- The org.xml.sax.helpers Package
- SAX Features and Properties
- The org.xml.sax.ext Package
-
Chapter 27 Character Sets
- Character Tables
- HTML4 Entity Sets
- Other Unicode Blocks
-
-
Colophon
- Title:
- XML in a Nutshell, Third Edition
- By:
- Elliotte Rusty Harold, W. Scott Means
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- September 2004
- Ebook Release:
- June 2009
- Pages:
- 720
- Print ISBN:
- 978-0-596-00764-5
- | ISBN 10:
- 0-596-00764-7
- Ebook ISBN:
- 978-0-596-15962-7
- | ISBN 10:
- 0-596-15962-5
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of XML in a Nutshell, Third Edition, is a peafowl, the largest bird in the Phasianinae family, which also includes pheasants and turkeys. People often incorrectly call peafowl peacocks. Peacocks are actually male peafowl; the females are called peahens. Two wild peafowl species exist today: the Indian peafowl (Pavo cristatus) and the Green peafowl of Southeast Asia (Pavo muticus), which may be endangered. These wild peafowl live in musters of 8 to 12 birds in dense forest near water. Though they do not fly very well, and do so only for short distances, they do manage to escape most predators and roost peacefully at night, high up in treetops.
The peafowl's most famous characteristic, of course, is its beautiful fan of feathers, known as a "train." Each blue-green train feather has a dark spot on its tip that looks much like an eye. Peacocks develop especially brilliant plumage, an indicator of sexual maturity, by age three. A healthy peacock has a full and vibrant train each year during the spring mating season. During this period, peacocks strut their stuff--display their "breeding plumage," as it is called--to attract peahens. Scientists theorize that the peacock's performance plays upon the peahen's instinctive drives to find healthy mates in the hope of producing hardy offspring. Each summer after the mating season, peafowl shed their train feathers, which are often collected by humans as eye-catching souvenirs. Marlowe Shaeffer was the production editor and copyeditor for XML in a Nutshell, Third Edition. Jane Ellin was the proofreader. Sarah Sherman and Claire Cloutier provided quality control. James Quill provided production assistance. Ellen Troutman-Zaig wrote the index.
Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is an original illustration created by Susan Hart. Clay Fernald produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
Melanie Wang designed the interior layout, based on a series design by David Futato. This book was converted by Joe Wizda to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The tables in Chapter 27 were produced using Code2000, Code2001, Arial Unicode MS, Tibetan Machine Web, Tibetan Machine Uni, Doulos SIL, and PakType Naqsh fonts. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Sarah Jane Shangraw and Molly Shangraw.
