How do i pass in a delimited value from a variable in a when/test?
INPUT:<root><folders><folder><name>one</name></folder><folder><name>two</name></folder><folder><name>three</name></folder></root> XSLT<xsl:stylesheet.....><xsl:variable name=DelimitedValues>one,three</xsl:variable><xsl:template match='@*|node()'><xsl:copy><xsl:apply-templates select='@*|node()'/></xsl:copy></xsl:template><xsl:template match="/root/Folders/Folder"<xsl:choose><xsl:when test="Name=$DelimitedVariable"><xsl:copy.....></xsl:when><xsl:choose><xsl:template</xsl:stylesheet> EXPECTED OUTPUT:<root><folders><folder><name>one</name></folder><folder><name>three</name></folder></root>
↧
XSLT - When/Test with single variable with delimited values
↧