Appendix D. XML Schema Overview

This appendix is a brief overview of XML Schema. For in-depth information about XML Schemas, I highly recommend Eric van der Vlist’s XML Schema, published by O’Reilly. The XML Schema Primer at the W3C is very useful as well.

We’ll cover three topics in this appendix. First, we’ll look at how to declare elements and attributes in XML Schema. Next we’ll go through the many ways to create types. Finally, we’ll look at how to use XML Schemas in XSLT stylesheets. The focus here is on the aspects of XML Schema that apply to XSLT. A schema-aware XSLT processor can use a schema to validate a document or element. If we’re working with types declared in an XML Schema, a schema-aware processor can use those datatypes just like xs:string, xs:date, or any other basic datatype.

Get XSLT, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.