O'Reilly logo

Sams Teach Yourself XSLT in 21 Days by Michiel van Otegem

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

WEEK 1 Day 4 Using Templates

Yesterday you learned how to select element attributes from Extensible Markup Language (XML) source with XPath expressions. By using these expressions when matching templates, you achieved more control over the output from a stylesheet applied to an XML source. XPath expression templates form the cornerstone of XSLT. So, now it’s time to learn more about templates and what you can do with them.

In today’s lesson covering option templates, you will learn the following:

• Why templates are so significant in XSLT

• How to work with match templates

• How to work with named templates

• What happens when more than one template matches

• How to give priorities to templates

Understanding Templates

Templates are a key concept ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required