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

Day 5 Inserting Text and Elements

Yesterday you learned all about using templates, that they are key to Extensible Stylesheet Language Transformations (XSLT), and that they can either be explicitly called or matched by the processor. When templates are being matched, multiple templates may match the current node. You have learned how to control which template is actually matched when this situation occurs, enabling you to control the output that is actually generated.

In today’s lesson, you will learn more details about inserting text and elements into the resulting output. You will learn how to do the following:

• Insert text with special characters

• Insert elements and attributes into the XML result

• Insert elements and attributes with a ...

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