<rohlik cena="5"> ... </rohlik>
<rohlik cena="2"> ... </rohlik>
<rohlik cena="0.9"> ... </rohlik>
<xsl:template match="rohlik">
<p>
<xsl:when test="cena>2">
<span class="expensive">Drahý</span>
</xsl:when>
<xsl:when test="cena<1">
<span class="strangely-cheap">Podezřele levný</span>
</xsl:when>
<xsl:otherwise>
<span class="normal-price">Běžný</span>
</xsl:otherwise> rohlík - cena <xsl:value-of select="@cena"/> Kč </p>
</xsl:template>
Filters out two extreme prices - for xsl:otherwise „a normal“ price remains.