Menu

Post image 1
Post image 2
1 / 2
0

XSLT string functions: complete reference with examples

DEV Community·Alexandre Vazquez·19 days ago
#8MDoJz4W
Reading 0:00
15s threshold

String manipulation is one of the most common tasks in XSLT. Whether you are formatting output, parsing codes, or normalising values from external systems, XPath provides a rich set of string functions. This reference covers the most useful ones with examples you can run in XSLT Playground . Basic string functions (XSLT 1.0+) string-length Returns the number of characters in a string. Enter fullscreen mode Exit fullscreen mode substring Extracts a portion of a string. Arguments: string, start position (1-based), optional length. Enter fullscreen mode Exit fullscreen mode substring-before and substring-after Split a string on a delimiter. Enter fullscreen mode Exit fullscreen mode contains, starts-with, ends-with Test membership without extracting. ... ... ... Enter fullscreen mode Exit fullscreen mode concat Joins strings together. Takes any number of arguments.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More