tokenize 函数未从 wso2 中的 属性 读取值
tokenize function is not reading the value from property in wso2
我需要在我的 wso2 序列文件中使用 tokenize 函数。
我得到像 testuser@gmail 这样的用户名。我需要使用分隔符 @ 拆分字符串。我正在使用下面的代码。
.但是,它总是在日志中打印空白。
你能请一些人帮助我吗?
PS:: 我在 synapse.properties 文件中启用了 xslt2.0。
使用substring-before函数
<property name="tokentest" value="testuser@gmail" scope="default" type="STRING"/>
<property name="NEW_CONTENT_TYPE" expression="substring-before($ctx:tokentest,'@')" scope="default" type="STRING"/>
<log level="custom">
<property name="NEW_CONTENT" expression="$ctx:NEW_CONTENT_TYPE"/>
</log>
希望对您有所帮助
我需要在我的 wso2 序列文件中使用 tokenize 函数。 我得到像 testuser@gmail 这样的用户名。我需要使用分隔符 @ 拆分字符串。我正在使用下面的代码。 .但是,它总是在日志中打印空白。 你能请一些人帮助我吗?
PS:: 我在 synapse.properties 文件中启用了 xslt2.0。
使用substring-before函数
<property name="tokentest" value="testuser@gmail" scope="default" type="STRING"/>
<property name="NEW_CONTENT_TYPE" expression="substring-before($ctx:tokentest,'@')" scope="default" type="STRING"/>
<log level="custom">
<property name="NEW_CONTENT" expression="$ctx:NEW_CONTENT_TYPE"/>
</log>
希望对您有所帮助