if ( expression) then expression else expression
Not all weblogs have a changesUrl
changesUrl
<xsl:template match="log"> <xsl:apply-templates select=" if (changesUrl) then document(changesUrl) else document(url)"/> </xsl:template>