XML technologies / XSLT / Introduction to XSLT 2.0 / XSLT and XPath – round three / Modular stylesheets
(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, Chapter 3.)
Modularity appears throughout XML. Reusable structures or information can be placed in modules or Entitiesand included in main documents when needed. DTDs provide this through external Parameter entities; XML documents use text entities defined by DTD or schema. Although modular structures can become difficult to oversee, they offer many benefits. Like XML documents and schemas, XSLT stylesheets naturally have their own modular facilities, implemented using dedicated XSLT elements.
Faster processing, fresher information, and greater consistency
Modularity lets you assemble exactly the information and structures needed without unnecessary material. Memory requirements fall, indirectly improving speed if document assembly time is negligible. Most importantly, centralized information is easier to update than duplicates scattered through larger structures.
Copyright © Galileo Press, Bonn 2008
You may print the online version for your private use.
Otherwise, this chapter from "XSLT 2.0 & XPath 2.0 ― Das umfassende Handbuch" is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Galileo Press, Rheinwerkallee 4, 53227 Bonn