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.

   

   

back to top