Is this possible?
I would like to use the outputclass attribute to determine which topics should have a page break before them. I put this code in my commons-attr.xsl file:
<xsl:attribute-set name="pagebreak">
<xsl:attribute name="break-before">page</xsl:attribute>
</xsl:attribute-set>
Then, I have this other piece of code that I'm trying to insert into the commons.xsl file:
<xsl:template match="//*[contains(@class,' topic/topic ')]/*[contains(@outputclass,'pagebreak')]">
<fo:block xsl:use-attribute-sets="pagebreak">
</fo:block>
</xsl:template>
The problem is, every topic now has a page break before it. What am I doing wrong? Am using XMetal 6.0. Thanks!