I'm afraid in XSL-FO there is no option to "test" for the current font-size and switch to an appropriate action. That's because the XSLT step is separate from the XSL-FO step. In XSLT, you can do xsl:choose to take different actions. But the resolved font-size is not known until the XSL-FO step after all property inheritance has been resolved, and XSL-FO does not have a choose function.
In the XSLT stage, you can test for various ancestor elements that you know produce small type and take action there. Bob Stayton Sagehill Enterprises [email protected] ----- Original Message ----- From: Damon Mannion To: [email protected] Sent: Sunday, May 10, 2009 10:31 AM Subject: [docbook-apps] trademark customisation Hi I have customised the registration mark handling like this: <xsl:template name="dingbat"> <xsl:param name="dingbat">bullet</xsl:param> <xsl:variable name="symbol"> <xsl:choose> [ snip ] <xsl:when test="$dingbat='registered'"> <fo:inline baseline-shift="super" font-size="75%" inline-progression-dimension="100%">®</fo:inline> </xsl:when> [ snip ] </xsl:template> All works well, but I want to extend this so that when the font size for registration make is (say) less than 8pt then just output the registration character without the superscript and font size reduction, as at some point it becomes difficult to read. [ I have the (r) on both the cover page and in the footer ]. The question is: how to test the active font size, so I can switch behaviour accordingly? Thanks. Damon
