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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -