我有一个serviceProvideList
包含字符串值的变量。
我使用以下代码分别获取每个字符串:
<xsl:variable name="tokenizedSample" select="str:tokenize($serviceProvideList,'
')"/>
<xsl:for-each select="$tokenizedSample">
<xsl:variable name="weakProvide" select="."/>
<xsl:variable name="tokenized" select="str:tokenize($weakProvide,' ')"/>
<xsl:for-each select="$tokenized">
<xsl:variable name="weakP" select="."/>
<xsl:value-of select="$weakP"/>
</xsl:for-each>
</xsl:for-each>
如何避免变量中的重复值serviceProvideList
?