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 ...
Get Sams Teach Yourself XSLT in 21 Days 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.