docbook-apps message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: Question about DocBook, FOP, inlinegraphic and vertical align
- From: Andrea Mattioli <aldaris@jumpy.it>
- To: docbook-apps@lists.oasis-open.org
- Date: Wed, 15 Mar 2006 17:18:27 +0100
Dear Sir/Madam,
I have a question about how to obtain a vertical alignment using
DocBook.
I have created an xml docbook "doc" like the following and I
would like that the image, on the same line of the title,
is aligned vertically respect to the title itself.
<
book
>
<
bookinfo
>
<
title
>
<
inlinegraphic
fileref
="logo.jpg
"
width
="3cm
"
scalefit
="1
"
valign
="middle
"/>
TITLE
</
title
>
...
I'm using XALAN and FOP to transform the "doc" and I obtain the
following block:
<
fo:block
font-family
="
sans-serif,Symbol,ZapfDingbats
"
font-weight
="bold
"
font-size
="24.8832pt
"
text-align
="center
"
space-before
="18.6624pt
">
<
fo:block
hyphenate
="false
"
keep-with-next.within-column
="
always
">
<
fo:external-graphic
src
="url(logo.jpg)
"
width
="3cm
"
height
="auto
"
content-width
="scale-to-fit
"
content-height
="scale-to-fit
"
display-align
="center
"/>
TITLE
</
fo:block
>
</
fo:block
>
...
But in this way
TITLE is then rendered at the baseline of the graphic. I have noticed
that if I specify the attribute
vertical-align
="
middle
" in
fo:external-graphic
<
fo:external-graphic
src="
url(logo.jpg)
"
width="
3cm
"
height="
auto
"
content-width
="scale-to-fit
"
content-height
="scale-to-fit
"
display-align
="center
"
vertical-align
="middle
"/>
TITLE
</
fo:block
>
then the result using FOP is the
desired one. I also noticed that in file "graphics.xsl" valing
sets the attribute
display-align
="
center
".
How I can set in "doc.xml" the right tag to obtain
vertical-align
="
middle
" ? Is it a problem of
the DocBook stylesheet or a FOP problem ?
Thank you.
Best regards,
Andrea.
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]