to the main page about the tutorial  THE XML REVOLUTION  -  TECHNOLOGIES FOR THE FUTURE WEB back up next

Conditional processing

Processing can be conditional:

Example:
<xsl:template match="nutrition">
  <xsl:if test="@alcohol">
    <td align="right"><xsl:value-of select="@alcohol"/>%</td>
  </xsl:if>
</xsl:template>

back COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH next