cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
106
Views
10
Helpful
1
Replies

XML starts-with function

Hello,

How can test if java code variable ($VARIABLE) starts-with a string in XML code.

When I used when attribute like this: 

<group when="{starts-with({$PROVIDER_NAME},'voip')}">
....
</group>

I got the following error:

only one XPATH expression: '{starts-with({$PROVIDER_NAME},'voip')}' allowed in 'when' attribute

1 ACCEPTED SOLUTION

Accepted Solutions
hazad
Cisco Employee

Try removing the curly brackets around the variable $PROVIDER_NAME inside the when-expression.

View solution in original post

1 REPLY 1
hazad
Cisco Employee

Try removing the curly brackets around the variable $PROVIDER_NAME inside the when-expression.

View solution in original post