<xsl:if test=".//figure"><H1>Table of Figures</H1> <UL> <xsl:for-each match=".//figure"> <LI><xsl:process-children/></LI> </xsl:for-each> </UL> </xsl:if>