Chapter 12
Combining XSLT Stylesheets
In This Chapter
Including and importing stylesheets into another stylesheet
Highlighting the similarities and differences of xsl:include and xsl:import
Finding out about how xsl:include and xsl:import handle conflicts
Using xsl:import to bring in external elements
A nyone who rents videos from a local video store has probably seen that little sticker that says, “Be kind; please rewind.” As you begin to work with a growing number of XSLT stylesheets, my guess is that you’ll quickly find that your motto is “Be kind, please combine.”
Managing XSLT code can be challenging, especially when you have common template rules or other instructions that you want to use in more than one context. Isolating sections of XSLT code and placing them into different files can be useful. This practice allows you to mix and match various stylesheets, depending on your current need, without resorting to copying and pasting code from one stylesheet to another.
Combining stylesheets can be a useful organizing tool for XSLT developers. In this chapter, you find out ...
Get XSLT for Dummies 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.