Name

starts-with( ) — returns true if the src string starts with the substr string

Synopsis

Defined in: XPath 1.0
Parameters: string src (required); string substr (required)
Return type: boolean

This example returns true:

starts-with('Hello World!', 'H')

Get XForms Essentials 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.