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 11 Working with Strings

Yesterday you learned all about data types and how they affect expressions. When you create output, XML, or HTML, you always create text. The string data type therefore is the most important data type in XSLT because you always come back to it.

In today’s lesson, you will learn how to manipulate strings so that you can create the output you want from just a value—for instance, outputting a number as currency or formatting data like you want it. Unlike yesterday’s theoretical lesson, this lesson is about the practical application of the available functions, or tricks if you will.

Today you will learn how to do the following:

• Add strings together

• Strip space properly

• Format strings to show dates, currencies, and ...

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