[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: About figure references
Hello, I try to customize my figures legend. In french Figure x.yy should be on small caps and the legend it self should be in italic. So I took form Bob's book a customization code and I customize it again: <xsl:template name="formal.object.heading"> <xsl:param name="object" select="."/> <xsl:param name="placement" select="'before'"/> <fo:block> <xsl:choose> <xsl:when test="$placement = 'before'"> <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="keep-with-previous.within-column">always</xsl:attribute> </xsl:otherwise> </xsl:choose> <fo:inline xsl:use-attribute-sets="formal.label.properties" font- variant="small-caps"> <xsl:call-template name="gentext"> <xsl:with-param name="key" select="local-name($object)"/> </xsl:call-template> <xsl:text> </xsl:text> <xsl:apply-templates select="$object" mode="label.markup"> <xsl:text>: </xsl:text> </xsl:apply-templates> </fo:inline> <fo:inline xsl:use-attribute-sets="formal.title.properties" font- style="italic"> <xsl:apply-templates select="$object" mode="title.markup"/> </fo:inline> </fo:block> </xsl:template> It almost work but this part : <xsl:apply-templates select="$object" mode="label.markup"> <xsl:text>: </xsl:text> </xsl:apply-templates> generate an error : Description: Invalid element within xsl:apply-templates: Description: Element must only be used within a template body If I comment it, tho more errors, but I have no figure number. Did I have to define label.markup in my custom stylesheet ? Thanks in advance for you help, Jacques -- « Mac OS X Server à votre Service » est épuisé. Vous pouvez désormais l'acquérir en PDF <http://www.foucry.net/Redaction/service/service.html>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]