I am learning xsl and I have some questions about variables. If I have a variable These would load the $Rows variable with some rows based on the conditions... However I would like to create a new variable from $Rows called $newRows just with rows where column @States are equal to "Florida." Is that possible and how should I do that. I thought about creating a variable and populate it using a for-each loop like: Is this possible and if is how can I populate the values into the new variable. Thank you
<xsl:variable name="Rows" select="../Rows/Row/some condition"/> <xsl:variable name="newRows> <xsl:for-each select="$Rows"> <xsl:value-of ....../> </xsl:for-each>