<xsl:if test = boolean-expression> ... </xsl:if> il valore booleano è falso se: numero zero, stringa nulla, sotto albero vuoto
notare:
<xsl:if test="position()!=1">, </xsl:if>
<xsl:if test="position()!=last()">, </xsl:if>
<xsl:if test="position() mod 2 = 0"><xsl:attribute name="bgcolor">yellow</xsl:attribute></xsl:if>
<xsl:if test="@international">International Stock </xsl:if>
<xsl:if test="@tipo='bibliografia'">Bibliografia </xsl:if>
<xsl:if match=".[ARTIST='Bob Dylan']">
<xsl:if test = "//BBB[2] < //BBB[3]">
<xsl:if test="@year < '1700'">
<xsl:if test="(@author = 'bd') or (@year='1667')">
<xsl:if test="contains($the-world,'Elvis')">
<xsl:if test=""(CAMPO[@CodiceCampo='radValutMultidisciplinare']/ValoriLista/item[@selected='true']/descr) != 'Non Applicabile'"">... </xsl:if>
<xsl:choose>
<xsl:when test="@tipo='abstract">Abstract dell'articolo</xsl:when>
<xsl:when test="@tipo='bibliografia">Bibliografia</xsl:when>
<xsl:when test="@tipo='note">Note finali </xsl:when>
<xsl:otherwise><xsl:value-of select="@titolo"/></xsl:otherwise>
</xsl:choose>