-<xsl:template match="illref[@class='html']">
- <xsl:for-each select="id( @idref )">
- <!-- This creates unneccessary regeneration of float illustration pages, but it is easiest to keep things this way as long as we have to be backwards compatible... -->
- <!-- When backwards compatibility can be dropped, most of (all?) the <illustration> processing can happen here -->
- <xsl:apply-templates select="." />
- </xsl:for-each>
+<xsl:template match="illref">
+ <!-- It is important that the class is not checked right in the template - that would make this template match with higher priority, which will turn a few things upside down -->
+ <xsl:if test="@class='html'">
+ <xsl:for-each select="id( @idref )">
+ <!-- This creates unneccessary regeneration of float illustration pages, but it is easiest to keep things this way as long as we have to be backwards compatible... -->
+ <!-- When backwards compatibility can be dropped, most of (all?) the <illustration> processing can happen here -->
+ <xsl:apply-templates select="." />
+ </xsl:for-each>
+ </xsl:if>