On Mar 16, 2007, at 13:37, Larkin, Rob wrote:

I'm seeing a issue with the text-align attribute being ignored in
headers. For example (from pdfoutline.fo in the examples directory):

<fo:static-content flow-name="xsl-region-before">
<fo:block>
<fo:inline text-align="start" font-size="10pt" font-family="serif"
line-height="14pt" color="blue" >
This is not the latest Fop documentation, but just an fo example.
</fo:inline>
<fo:inline text-align="end" font-size="10pt" font-family="serif"
line-height="14pt" color="blue" >
Page <fo:page-number/>
</fo:inline>
</fo:block>
</fo:static-content>

This should align "...not the latest FOP documentation" to the left and
the page numbers to the right.

Nope, FOP is perfectly compliant here.

Explanation: text-align is not applicable to an fo:inline. An fo:inline ALWAYS inherits the text-align properties from the ancestor fo:block (in this case the default value of "start"). [Note: An interesting side-effect that may be difficult to grasp is that any fo:block nested in the fo:inline will inherit the value specified on the fo:inline.]

FOP cannot warn you about this, because it is perfectly legal to specify non-applicable properties (mainly used to take advantage of property inheritance)

Solution: the quickest way to achieve the effect you're after, is probably to use an fo:table.


HTH!

Cheers,

Andreas




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to