Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

XSLT - When/Test with single variable with delimited values

$
0
0

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>



Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>