Chapter 11. A Case Study

This case study builds on the work you have already done with the templates for processing the XSLT 2.0 quick-reference documents found in Appendix D. The goal is to transform and combine a complete set of XSLT element and function reference documents in a single website that provides simple, clear navigation, and that makes use of the reference-document stylesheet code you have worked with so far.

However, this time the processing of links between reference pages is handed over to a small library of stylesheet modules that operate on both resource and subject metadata.

As a preliminary to explaining how the library modules can be used, I discuss the reference and metadata schemas. The reference stylesheets contain some minor changes to accommodate the use of the link modules. The link stylesheet module itself and a related function module together provide link processing. Terms are processed in a similar way to create a glossary or inline definitions.

Two examples complete the book. The first creates a quick-reference site for both XSLT elements and XSLT functions. The second outputs a sitemap conforming to the Sitemaps protocol for consumption by web crawlers.

Schema Overview

I'll be discussing several XML Schema structures in this chapter. The structure is modular with several interdependencies. The following table lists the modules A-Z, with their purpose and dependencies.

Schema

Purpose

Requires

common.xsd

Elements that are common to most of the other schemas ...

Get Beginning XSLT and XPath: Transforming XML Documents and Data 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.