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

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -