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] Customize tip

Mansour schrieb:
>  I am trying to add an icon before the <tip> or <warning>. I need this 
icon to the left of the block. I have added the  icon I need using 
<fo:instream-foreign-object> but no luck with positioning it before the 
<tip>. Any ideas ?
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>  For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


I use  a table to put a icon on a left side of a warning. Therefore I 
overwrite the caution template in my customizations layer like this:

    <xsl:template match="caution">
        <fo:table table-layout="fixed" width="14cm">
            <fo:table-column column-width="proportional-column-width(10)"/>
            <fo:table-column column-width="proportional-column-width(90)"/>
                <fo:table-row keep-together.within-column="always">
                    <fo:table-cell text-align="center">
                        <fo:block space-before="3mm">
src="url(icons/attention_red_50x50mm.png)" width="10mm" height="10mm" 
content-width="scale-to-fit" content-height="scale-to-fit" />
                            <xsl:apply-imports />



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