This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] table title horizontal alignment, center
- From: Steve Whitlatch <swhitlat at getnet dot net>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 17 Mar 2004 18:37:46 -0700
- Subject: [docbook-apps] table title horizontal alignment, center
- Organization: Steve Whitlatch, Inc.
- Reply-to: swhitlat at getnet dot net
Hello,
I am experimenting with techniques for horizontally aligning table
titles. I have some XSL code that center aligns the table title text,
but it fails to center align the prefix and autonumber.
Here is the code from my XSL customization layer:
<xsl:template match="table" mode="insert.title.markup">
<xsl:param name="title"/>
<fo:block text-align="center"
<xsl:value-of select="$title"/>
</fo:block>
</xsl:template>
Here is an ascii art depiction of what I get:
* table row *
******************************************
* last row of table *
******************************************
Table 1
Table Title
The text from <title>Table Title</title> is centered and moved down
vertically about one line. And the "Table 1" portion is unaffected. I
guess I should not be expecting anything else with that code though.
Seems obvious. I'd like to keep both parts together and also prevent
the entire displayed table title from moving down.
Looks like I need something like:
<xsl:value-of select="$title-plus-prefix-plus-autonumber"/>
But it won't be that easy. Any suggestions?
The answer to this question, and examples of applied solutions to all
other questions I've asked on this list will be made available in a
downloadable example DocBook XML document/project from my homepage.
I'm trying to remove the worst errors/deficiencies before posting it.
I've also got a round-trippable structured FrameMaker 7.0 version of
the same document I made for comparison. I'll post both projects
within a week or so.
Thanks to Bob Stayton for all his patient help.
Steve Whitlatch
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.