Hi, vertical-align is used to display a glyph (or a graphical symbol) on the line. This property is treated in XSL-FO as a shorthand and maps to alignment-baseline, alignment-adjust, baseline-shift, and dominant-baseline.
As says the REC XSL-FO 1.1, all theses properties apply to "fo:character, fo:external-graphic, fo:instream-foreign-object, fo:inline, fo:inline-container, fo:leader, fo:page-number, fo:page-number-citation, fo:page-number-citation-last, fo:scaling-value-citation, and fo:basic-link" To perform a vertical alignment inside a box, you should use display-align. As says the REC XSL-FO 1.1: "Property display-align applies to: fo:region-body, fo:region-before, fo:region-after, fo:region-start, fo:region-end, fo:block-container, fo:external-graphic, fo:instream-foreign-object, fo:inline-container, and fo:table-cell" So, in your case, you just need to apply display-align on a fo:block-container. Possible values for this property are: auto | before | center | after | inherit For further information, see http://www.w3.org/TR/xsl/ HTH, Pascal Magdikova a écrit : > Hi, thanks for the answer! > but it does not work :( > Have you got any solution (except table)? > > > Georg Datterl wrote: > >> Hi Magdikova, >> >> <fo:block-container top="25.3cm" left="2.1cm" width="4cm" >> position="absolute" text-align="start" font-family="Arial Narrow" >> font-size="12pt" vertical-align="center" > >> <fo:block> >> <xsl:value-of select="id"/> >> </fo:block> >> </fo:block-container> >> >> Regards, >> >> Georg Datterl >> >> ------ Kontakt ------ >> >> Georg Datterl >> >> Geneon media solutions gmbh >> Gutenstetter Straße 8a >> 90449 Nürnberg >> >> HRB Nürnberg: 17193 >> Geschäftsführer: Yong-Harry Steiert >> >> Tel.: 0911/36 78 88 - 26 >> Fax: 0911/36 78 88 - 20 >> >> www.geneon.de >> >> Weitere Mitglieder der Willmy MediaGroup: >> >> IRS Integrated Realization Services GmbH: www.irs-nbg.de >> Willmy PrintMedia GmbH: www.willmy.de >> Willmy Consult & Content GmbH: www.willmycc.de >> -----Ursprüngliche Nachricht----- >> Von: Magdikova [mailto:[email protected]] >> Gesendet: Dienstag, 26. Januar 2010 12:25 >> An: [email protected] >> Betreff: Re: AW: How to: <fo:block vertical align ? >> >> >> How can I vertical align the text in this case: >> >> <fo:block-container top="25.3cm" left="2.1cm" width="4cm" >> position="absolute" text-align="start" font-family="Arial Narrow" >> font-size="12pt"> >> <fo:block> >> <xsl:value-of select="id"/> >> </fo:block> >> </fo:block-container> >> >> Georg Datterl wrote: >> >>> Hi Magdikova, >>> >>> http://www.w3.org/TR/xsl/ >>> >>> 7.31.22 "vertical-align" >>> >>> This property affects the vertical positioning inside a line box of >>> the boxes generated by an inline-level element. The following values >>> only have meaning with respect to a parent inline-level element, or to >>> a parent block-level element, if that element generates anonymous >>> inline boxes; they have no effect if no such parent exists. >>> >>> Regards, >>> >>> Georg Datterl >>> -----Ursprüngliche Nachricht----- >>> Von: Magdikova [mailto:[email protected]] >>> How to: <fo:block vertical align ? >>> >>> Help me please. >>> -- >>> View this message in context: >>> http://old.nabble.com/How-to%3A-%3Cfo%3Ablock-vertical-align---tp27318 >>> 222p27318222.html Sent from the FOP - Users mailing list archive at >>> Nabble.com. >>> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
