<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/recipe-book" mode="backmatter"> \startbackmatter <!-- If a cited photograph is present, add the photographer index. --> <xsl:if test="count(recipe/description/photo/citation) > 0"> \RecipeIndexPhotographer </xsl:if> <xsl:apply-templates mode="backmatter" /> \RecipeIndexIngredient \stopbackmatter </xsl:template> <!-- | Use a default back cover when no picture is provided. <xsl:template match="not(photo[@use='back-cover'])" mode="backmatter"> \RecipeBookCoverBack </xsl:template> +--> <xsl:template match="*" mode="backmatter" /> </xsl:stylesheet>