Summary

When you're using XSL templates to read the data from XML files, you need three things: the data, the XSL templates, and the HTML file to be displayed in the browser. In the long run, it's more efficient to create separate files for these three sections. In this hour, you learned how to create them and how they interact.

The order of the data in the XML file determines the order of execution of the templates, and two examples were presented that demonstrated this. Finally, four reasons for the separation into the three files were given.

Get Sams Teach Yourself XML in 24 Hours 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.