O'Reilly logo

XML Pocket Consultant by William R. Stanek

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

Chapter 17. Working with Strings, Booleans, and Numbers

Previous chapters have discussed strings, Booleans, and numbers, but they haven’t really discussed in detail how to manipulate these datatypes. This chapter fills that gap by explaining how to work with strings, Booleans, and numbers. Although the emphasis is on converting, sorting, extracting, and merging strings, you’ll also learn how to how to format numbers and how to get the most out of Booleans.

Manipulating Strings

XSL Transformations (XSLT) and XML Path (XPath) define many functions for working with string values. You can use these functions to

  • Convert numeric and Boolean values to strings

  • Manage spaces within strings

  • Sort and merge strings

  • Extract substrings from strings

  • Translate individual ...

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