Conditional Expressions

Not all weblogs have a changesUrl

<xsl:template match="log">
  <xsl:apply-templates select="
    if (changesUrl)
     then document(changesUrl)
     else document(url)"/>
</xsl:template>

Previous | Next | Top | Cafe con Leche

Copyright 2002-2004 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified February 18, 2002