strings:StartsWith

Previous Next

Evaluates whether or not a string value starts with another string value, heeding case.

Returns a boolean.

 

Syntax

strings:StartsWith( value1, value2 )

Both value1 and value2 are required string values. The result evaluates to true() if value1 starts with value2, and otherwise evaluates to false().

 

Example

select uscsxsl.blend(
  '<Example xmlns:pc="Processing.Command" pc:hideme="true">
     <pc:assign-default val = "abcDEF"/>
     <pc:value-of select="strings:StartsWith( $val, ''aBc'')"/>
   </Example>'
)

The result value is:

false()