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] Centering Table Titles in Print

Oh, right you are Tom! It didn't work for me as well - to top it off, I sent you the wrong section of my xsl.
This section will do what you want - but you will need to use
<table align="center">
This section also does a bit more with alignment in other places as well.
  <!-- Alignment for Equation Titles that use imagedata and MathML-->
    <xsl:attribute-set name="formal.title.properties"
        <xsl:attribute name="text-align">
        <xsl:when test="self::equation and descendant::imagedata/@align">
          <xsl:value-of select="descendant::imagedata/@align" />
        <xsl:when test="self::equation[@align] and descendant::title">
          <xsl:value-of select="@align" />
        </xsl:when> ;
        <!--  Also align figure titles -->
        <xsl:when test="self::figure[@align] and descendant::title">
          <xsl:value-of select="@align" />
        <!--  Also align table titles -->
        <xsl:when test="self::table[@align] and descendant::title">
          <xsl:value-of select="@align" />
        <xsl:otherwise>start</xsl:otherwise> <!-- default value for alignment-->
  & nbsp; </xsl:attribute-set>
Dean Nelson
In a message dated 11/08/10 16:16:45 Pacific Standard Time, tom.browder@gmail.com writes:
On Mon, Nov 8, 2010 at 17:57, deannelson <deannelson@aol.com> wrote:
> Tom,
> I have had this issue as well. Here is how I solved it.
>     <!-- center table titles -->
>     <xsl:attribute-set name="formal.title.properties">
>         <xsl:attribute name="text-align">
>             <xsl:choose>
>                 <xsl:when test="self::table">center</xsl:when>
>                 <xsl:otherwise>left</xsl:otherwise>
>             </xsl:choose>
>         </xsl:attribute>
>     </xsl:attribute-set>

But Dean, that's right out of the book as near as I can see.  Unless
I'm missing something, that d oesn't work for me.  What tools are you
using?  I'm using xsltproc and Apache fop.



Thomas M. Browder, Jr.
Niceville, Florida

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]