<xsl:variable> with conditional select

Hi Guys

Can anyone tell me why this wouldn't work please?

<xsl:variable name="eventItems"> <xsl:value-of select="$matchedNodes [parent::node/@nodeName = 'Events']" /> </xsl:variable>

This works fine :

<xsl:variable name="eventItems" select="$matchedNodes [parent::node/@nodeName = 'Events']" />
I need to set the vaiable accoding to an XSL:CHOOSE but this XSLT won't compile for some reason?


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/6565-xslvariable-with-conditional-select