[2.0] Types of XSLT 2.0 Processors

The XSLT 2.0 spec defines two types of XSLT 2.0 processors:

Schema-aware processors

A schema-aware XSLT 2.0 processor supports user-defined schemas. In other words, we can use XML Schema to define our own datatypes and document structures, then ask the processor to validate values or nodes against that schema.

Basic processors

A basic XSLT 2.0 processor supports only the datatypes defined in the XML Schema Datatypes spec, with a few extra datatypes added by the XPath 2.0 and XQuery 1.0 Data Model spec. We covered all of those datatypes earlier in this chapter.

For a brief introduction to XML Schema, as well as a short discussion of how schemas are used in XSLT 2.0 stylesheets, see Appendix D.

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.