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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access