My problem is to quote the values obtained from get-property('cf') in
<property expression="fn:concat(get-property('whereConcat'),' AND PA_INATO=', get-property('cf'))" name="whereConcat" scope="default" type="STRING"/>
I have tried in different ways(character encoding:'
, character escape: \'
) but without success.
the cleanest way is to define a constant:
<property name="apos" scope="default" type="STRING" value="'"/>
and then use it as follow:
<property expression="fn:concat(get-property('whereConcat'),' AND PA_INATO=',get-property('apos'), get-property('cf'),get-property('apos'))" name="whereConcat" scope="default" type="STRING"/>
来源:https://stackoverflow.com/questions/42862240/how-to-escape-apostrophe-in-wso2-property-xpath-expression