Summary
In this chapter, we’ve run the gamut of extension functions and extension elements, demonstrating how to add sophisticated processing power to our stylesheets. We’ve generated many output files from a stylesheet, created JPEGs dynamically, created interactive graphics, interacted with databases, and generated HTML files created with data retrieved from the filesytem.
In terms of XSLT itself, we’ve created both extension elements and extension functions, and we’ve returned simple values as well as trees of DOM objects. Most importantly, we’ve demonstrated how to access the XML source document and the extension code in a variety of ways, using different platforms, languages, and XSLT processors. If you master these techniques, there’s practically nothing you can’t do in your stylesheets.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access