Summary

In this chapter, we’ve examined a several ways to generate links and cross-references between different parts of a document. If your XML document has a reasonable amount of structure, you can use the id() and key() functions to define many different relationships between the parts of a document. Even if your XML document isn’t structured, you may be able to use key() and generate-id() to create simple references. In the next chapter, we’ll look at sorting and grouping, two more ways to organize the information in our XML documents.

Get XSLT 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.