OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: Attributes for figures


* Bob Stayton; <bobs@caldera.com> on 03 Dec, 2002 wrote:
>The problem is that your new match="figure" template
>overwrites the original, which called the "formal.object"
>template which produced the title.
>That's why I suggested customizing formal.object instead:

Ok I understand this (just this not the whole thing :-)

>You need to test for 'figure' since formal.object is
>used for example and table too.
>Combined with your 'figure.properties' attribute-set,
>this should work.

What happens is not only formal.figures disappear but also formal
examples also disappear, only the Titles of the examples/figures are
available. I tried with FOP 0.20.5cvs and XEP 2.77  :*( 

Somewhere I must be making a mistake that I do not see. I have the
following in my customization

   <xsl:attribute-set name="figure.properties"
     use-attribute-sets="formal.object.properties">
     <xsl:attribute name="border-color">black</xsl:attribute>
   <xsl:attribute name="border-style">solid</xsl:attribute>
   </xsl:attribute-set>


<xsl:template name="formal.object">
  <xsl:param name="placement" select="'before'"/>

  <xsl:variable name="id">
    <xsl:call-template name="object.id"/>
  </xsl:variable>

  <fo:block id="{$id}"
	xsl:use-attribute-sets="formal.object.properties">
    <xsl:if test="$placement = 'before'">
      <xsl:call-template name="formal.object.heading"/>
    </xsl:if>
    <xsl:if test="local-name(.) = 'figure'">                 <!-- new -->
      <fo:block xsl:use-attribute-sets="figure.properties">  <!-- new -->
        <xsl:apply-templates/>                               <!-- new -->
      </fo:block>                                            <!-- new -->
    </xsl:if>                                                <!-- new -->
    <xsl:if test="$placement != 'before'">
      <xsl:call-template name="formal.object.heading"/>
    </xsl:if>
  </fo:block>
</xsl:template>



-- 

Togan Muftuoglu



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC