[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.
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