XML technologies / XML / Python & XML / Transforming XML with XSLT / Choosing a technique
(Excerpt from "Python & XML" by Christopher A. Jones & Fred L. Drake, Jr.)
XSLT is extremely powerful when transforming XML from one form into another or converting XML to HTML for display in a web browser. If your website content has been converted to XML stored on disk, you may want to use a fast XSLT processor to batch-convert all your XML data to HTML whenever the files change. Batch conversion from XML to HTML lets your server continue serving static HTML requests, which can improve performance considerably, especially when stylesheets are large or complex. Performance benefits are increased by being able to use simpler web servers and configurations, making it easier to take advantage of architectures with specialized caching and load-balancing features.
Sometimes you may need to convert XML to HTML for each request or at runtime within your applications. In that case, you can embed XSLT functionality in your applications, as shown earlier in the CGI example.
Copyright © 2002 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from the book "Python & XML" is subject to the same conditions as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de
back to top