Re: Table cell, vertical alignment with text and Instream
Thanks a lot Pascal for your comments and help. Jean Message du 18/02/10 15:52 De : Pascal Sancho A : fop-users@xmlgraphics.apache.org Copie à : Objet : Re: Table cell, vertical alignment with text and Instream Readind back your request, you probably want to align the 1st line of each cell of the same row on the same baseline. This is exactly the purpose of the relative-align property, witch unfortunately is not yet supported by FOP. Pascal Pascal Sancho a écrit : Jean, If you want to center each graphic on its own line, you have to adjust its vertical position regarding its vertical size. So this is a graphic-by-graphic treatment, witch cannot be done at cells level. Pascal jean.duracel a écrit : Thanks Pascal for your answer. You are right I'm speaking about the vertical alignment of the image within its line. Putting a vertical-align on the instream does the work. To get this behavior we will have to analyze the cell content, before its xslt transformation to xsl-fo, to have the possibility to put the vertical-align in place ... Any chance to get this behavior from attributes put on the cell only ? Jean Message du 18/02/10 14:52 De : Pascal Sancho Jeandur, I don't see anything wrong. In the 3rd cell, since the height of the cell equals to its content, display-align cannot affect it. If you are speaking about the vertical alignment of the image within its line, this is another topic. You can change the vertical alignment of a graphic object (the fo:instream-object in your case) with appropriate properties: either alignment-adjust or the shorthand vertical-align. HTH, Pascal Jeandur a écrit : Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : border-style=solid Some text vertical centered border-style=solid border-style=solid Some text with instream centered ? This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ? Je crée ma boîte mail www.laposte.net
Table cell, vertical alignment with text and Instream
Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : !-- [..] -- fo:table-body fo:table-row fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block Some text vertical centered/fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:blockSome text with instream centered ?fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell /fo:table-row /fo:table-body !-- [...]-- This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean -- View this message in context: http://old.nabble.com/Table-cell%2C-vertical-alignment-with-text-and-Instream-tp27637607p27637607.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table cell, vertical alignment with text and Instream
Jeandur, I don't see anything wrong. In the 3rd cell, since the height of the cell equals to its content, display-align cannot affect it. If you are speaking about the vertical alignment of the image within its line, this is another topic. You can change the vertical alignment of a graphic object (the fo:instream-object in your case) with appropriate properties: either alignment-adjust or the shorthand vertical-align. HTH, Pascal Jeandur a écrit : Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : !-- [..] -- fo:table-body fo:table-row fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block Some text vertical centered/fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:blockSome text with instream centered ?fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell /fo:table-row /fo:table-body !-- [...]-- This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table cell, vertical alignment with text and Instream
Hi, If you keep the third cell elements in another table, then it should work. Third cell should be fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block fo:table fo:table-body fo:table-row fo:table-cell display-align=center fo:blockSome text with instream centered/fo:block /fo:table-cell fo:table-cell display-align=center fo:block fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:block /fo:table-cell If you replace the above xsl:fo script with your third cell, it should work as you expected. Venkat. Jeandur wrote: Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : !-- [..] -- fo:table-body fo:table-row fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block Some text vertical centered/fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:blockSome text with instream centered ?fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell /fo:table-row /fo:table-body !-- [...]-- This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table cell, vertical alignment with text and Instream
Hi, you can also uses a text-align attribute on the block element. Philippe 2010/2/18 Venkat Reddy vanukuri.ven...@googlemail.com Hi, If you keep the third cell elements in another table, then it should work. Third cell should be fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block fo:table fo:table-body fo:table-row fo:table-cell display-align=center fo:blockSome text with instream centered/fo:block /fo:table-cell fo:table-cell display-align=center fo:block fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:block /fo:table-cell If you replace the above xsl:fo script with your third cell, it should work as you expected. Venkat. Jeandur wrote: Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : !-- [..] -- fo:table-body fo:table-row fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block Some text vertical centered/fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:blockSome text with instream centered ?fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell /fo:table-row /fo:table-body !-- [...]-- This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table cell, vertical alignment with text and Instream
Thanks for your answer, but text-align works for horizontal alignment not vertical one Jean Message du 18/02/10 15:22 De : philippe voncken A : fop-users@xmlgraphics.apache.org Copie à : Objet : Re: Table cell, vertical alignment with text and Instream Hi, you can also uses a text-align attribute on the block element. Philippe 2010/2/18 Venkat Reddy Hi, If you keep the third cell elements in another table, then it should work. Third cell should be Some text with instream centered If you replace the above xsl:fo script with your third cell, it should work as you expected. Venkat. Jeandur wrote: Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : border-style=solid Some text vertical centered border-style=solid border-style=solid Some text with instream centered ? This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ? Je crée ma boîte mail www.laposte.net attachment: smiley-wink.gif - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table cell, vertical alignment with text and Instream
Thanks Venkat for your answer, It seems a little bit difficult for us to get this solution working because the xsl-fo is produced automaticaly and the content of the cell could be very difficult to be split in a new table. Jean. Message du 18/02/10 14:57 De : Venkat Reddy A : fop-users@xmlgraphics.apache.org Copie à : Objet : Re: Table cell, vertical alignment with text and Instream Hi, If you keep the third cell elements in another table, then it should work. Third cell should be border-style=solid Some text with instream centered If you replace the above xsl:fo script with your third cell, it should work as you expected. Venkat. Jeandur wrote: Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : border-style=solid Some text vertical centered border-style=solid border-style=solid Some text with instream centered ? This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ? Je crée ma boîte mail www.laposte.net
Re: Table cell, vertical alignment with text and Instream
Thanks Pascal for your answer. You are right I'm speaking about the vertical alignment of the image within its line. Putting a vertical-align on the instream does the work. To get this behavior we will have to analyze the cell content, before its xslt transformation to xsl-fo, to have the possibility to put the vertical-align in place ... Any chance to get this behavior from attributes put on the cell only ? Jean Message du 18/02/10 14:52 De : Pascal Sancho A : fop-users@xmlgraphics.apache.org Copie à : Objet : Re: Table cell, vertical alignment with text and Instream Jeandur, I don't see anything wrong. In the 3rd cell, since the height of the cell equals to its content, display-align cannot affect it. If you are speaking about the vertical alignment of the image within its line, this is another topic. You can change the vertical alignment of a graphic object (the fo:instream-object in your case) with appropriate properties: either alignment-adjust or the shorthand vertical-align. HTH, Pascal Jeandur a écrit : Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : border-style=solid Some text vertical centered border-style=solid border-style=solid Some text with instream centered ? This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ? Je crée ma boîte mail www.laposte.net
Re: Table cell, vertical alignment with text and Instream
Jean, If you want to center each graphic on its own line, you have to adjust its vertical position regarding its vertical size. So this is a graphic-by-graphic treatment, witch cannot be done at cells level. Pascal jean.duracel a écrit : Thanks Pascal for your answer. You are right I'm speaking about the vertical alignment of the image within its line. Putting a vertical-align on the instream does the work. To get this behavior we will have to analyze the cell content, before its xslt transformation to xsl-fo, to have the possibility to put the vertical-align in place ... Any chance to get this behavior from attributes put on the cell only ? Jean Message du 18/02/10 14:52 De : Pascal Sancho Jeandur, I don't see anything wrong. In the 3rd cell, since the height of the cell equals to its content, display-align cannot affect it. If you are speaking about the vertical alignment of the image within its line, this is another topic. You can change the vertical alignment of a graphic object (the fo:instream-object in your case) with appropriate properties: either alignment-adjust or the shorthand vertical-align. HTH, Pascal Jeandur a écrit : Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : border-style=solid Some text vertical centered border-style=solid border-style=solid Some text with instream centered ? This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table cell, vertical alignment with text and Instream
Readind back your request, you probably want to align the 1st line of each cell of the same row on the same baseline. This is exactly the purpose of the relative-align property, witch unfortunately is not yet supported by FOP. Pascal Pascal Sancho a écrit : Jean, If you want to center each graphic on its own line, you have to adjust its vertical position regarding its vertical size. So this is a graphic-by-graphic treatment, witch cannot be done at cells level. Pascal jean.duracel a écrit : Thanks Pascal for your answer. You are right I'm speaking about the vertical alignment of the image within its line. Putting a vertical-align on the instream does the work. To get this behavior we will have to analyze the cell content, before its xslt transformation to xsl-fo, to have the possibility to put the vertical-align in place ... Any chance to get this behavior from attributes put on the cell only ? Jean Message du 18/02/10 14:52 De : Pascal Sancho Jeandur, I don't see anything wrong. In the 3rd cell, since the height of the cell equals to its content, display-align cannot affect it. If you are speaking about the vertical alignment of the image within its line, this is another topic. You can change the vertical alignment of a graphic object (the fo:instream-object in your case) with appropriate properties: either alignment-adjust or the shorthand vertical-align. HTH, Pascal Jeandur a écrit : Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : border-style=solid Some text vertical centered border-style=solid border-style=solid Some text with instream centered ? This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org