Q:

XSLT if >1 and if < 0

If i write 
<xsl:if test="$currentPage/seaside > 0">Seaside</xsl:if><br />
<xsl:if test="$currentPage/blueflag > 0">Blueflag</xsl:if><br />
<xsl:if test="$currentPage/family > 0">Family</xsl:if><br />

Seaside and Family have 1 so are shown in output. Blueflag has 0 so is not. 
My list has a space in the middle 
'Seaside 

Family'

How do i remove the blank space and for nothing to be written if value is 0? 

A:

Move the <br /> elements inside their respective if elements:
<xsl:if test="$currentPage/seaside > 0">Seaside<br /></xsl:if>
<xsl:if test="$currentPage/blueflag > 0">Blueflag<br /></xsl:if>
<xsl:if test="$currentPage/family > 0">Family<br /></xsl:if>

That way, the line break will only be produced in the case where the test is true.

