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] | [List Home]


Subject: Re: [docbook-apps] indenting formal para's


One method (not sure if this is "ideal" or "safe" though) which works 
is to define a more specific formalpara and then call a different 
attribute set :

<!-- Created to remove first line indent of figure legend, modified 
from fo/block.xsl -->
<xsl:template match="caption/formalpara">
   <fo:block xsl:use-attribute-sets="caption.para.spacing">
     <xsl:apply-templates/>
   </fo:block>
</xsl:template>

<xsl:attribute-set name="caption.para.spacing">
   <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
   <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
   <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
   <xsl:attribute name="text-indent">0pt</xsl:attribute>
</xsl:attribute-set>	


Cheers,        Tristan
---
Tristan J. Fiedler
Postdoctoral Fellow - Stein Lab
Cold Spring Harbor Laboratory
On Jun 6, 2005, at 6:04 PM, Tristan Fiedler wrote:

> To summarize my previous post, I would like to exclude formal 
> paragraphs which are within <caption>'s from the usual first-line 
> indentation
>
> The XML again is :
>
> <caption align="left">
>     <formalpara>
>         <title>figure title</title>
>         <para>text for figure caption.</para>
>     </formalpara>
> </caption>
>
>
> Cheers,        Tristan
> ---
> Tristan J. Fiedler
> Postdoctoral Fellow - Stein Lab
> Cold Spring Harbor Laboratory
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>



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