<xsl:if test="year != null"> <xsl:value-of select="year"/>, </xsl:if>
This will be true() if there is at least one child year current node and one null child of the current node whose string values ββare not equal.
Most likely, the XML document does not have a null element that you did not specify ...
Using
<xsl:if test="year"> <xsl:value-of select="concat(year, ',')"/> </xsl:if>
Dimitre novatchev
source share