xslt - Contains value xslt2 -
how possible check if array of example strings contains string?
<xsl:if test="inarray('a', $array)"></xsl:if>
if array mean sequence, use =...
<xsl:variable name="array" select="('a','b','c')"/> <xsl:if test="$array='a'"></xsl:if> you can test multiple values in array/sequence (this example evaluate true if a or c exists in sequence):
<xsl:if test="$array=('a','c')"></xsl:if>
Comments
Post a Comment