Hi Deepthi,

I'm not sure I understand what you want to say. OK, I am sure, I don't 
understand. Probably because english is not my native language. 

> With in the XSL file we have both the templates. 

What do you mean when you say templates? The fo code for left and right column?

> In the xml for the text, we have to traverse with for-each 
> looking for some elements[the text is also formatted text and is an FO. 
> It is displayed in pdf using disable-output-escaping="yes"].

That's OK. It doesn't matter what exactly the contents of the cell are.

> And for the images we have to traverse again for another set of elements with 
> for-each. 

Are the images in the same file? You mentioned different files for text and 
images. If so, after traversing you still have two files but need one...

> In this case how to get the full image in middle. When I tried to display 
> the full image it got cut in the pdf and appeared as half.

So, you already got a final fo file and it did not quite work correctly? Then, 
how about posting a part of this file and we have a look at the real problem?

> Thought of an approach that if images on the right side displayed first 
> before the text. 
> But in <fo:table> how to fill the <fo:table-cell>s from right to left is 
> another question.

You don't have to worry about filling first or later. You create a fo file and 
have to insert the cells at the correct places. Whether the cell was inserted 
first or later, doesn't matter. Also you don't fill from right to left. You 
have two possible results for each text/image pair:

<row><cell>text</cell><cell><image/></cell></row> or <row><cell 
colspan=2><image></cell></row><row><cell>text</cell></row>. 

So you create the text cell <row><cell>text</cell></row> and then, depending on 
the image being full or half, you either insert <cell><image/></cell> after or 
<row><cell colspan=2><image></cell></row> before the text cell.

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: k deepthi [mailto:[email protected]] 
Gesendet: Dienstag, 20. Oktober 2009 12:19
An: FOP Users
Betreff: Fw: AW: Regarding XSL-Fo table columns display


Hi Georg,
With in the XSL file we have both the templates. In the xml for the text, we 
have to traverse with for-each looking for some elements[the text is also 
formatted text and is an FO. It is displayed in pdf using 
disable-output-escaping="yes"]. And for the images we have to traverse again 
for another set of elements with for-each. In this case how to get the full 
image in middle. When I tried to display the full image it got cut in the pdf 
and appeared as half. Thought of an approach that if images on the right side 
displayed first before the text. But in <fo:table> how to fill the 
<fo:table-cell>s from right to left is another question.
 
Thanks,
Deepthi.K.

--- On Tue, 20/10/09, Georg Datterl <[email protected]> wrote:



        From: Georg Datterl <[email protected]>
        Subject: AW: Regarding XSL-Fo table columns display
        To: [email protected]
        Date: Tuesday, 20 October, 2009, 2:47 PM
        
        
        Hi Deepthi, 
        
        There are quite some interesting fuctionalities in your mail.
        
        > I have a requirement for displaying a table which contains two 
columns. 
        
        No problem.
        
        > First left column should contain text and second column should 
contain images. 
        
        No problem either.
        
        > The images sizes vary as half or full. In case of full images the 
image should be displayed occupying the full page. 
        
        Possible.
        
        > At this point the text should overflow to the next page. 
        
        If your transformation knows about the size of the image, it can either 
create a row with two cells (half image) or two rows (full image). You can even 
decided whether the text should span two columns in that case, too.
        
        > One thing I need to mention is the text and images come from separate 
templates executing one after other. 
        > Is there any way to make this done. Please help me in this regard.
        
        That's tricky, I'd guess. You have to write two transformations with 
the first transformation taking your text file (or image file, doesn't matter 
which one is first, although I'd think the text file first would be easier) and 
a transformation file and transform it into the second transformation file, 
which in turn is applied on the image file. Basically instead of XML+XSLT=FO 
you need XML1+XSLT1=XSLT2 and XSLT2+XML2=FO. Technically surely possible, but 
I'd lock myself in a quiet room for some hours to think it all through.
        
        Does that help?
        
        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: k deepthi [mailto:[email protected] 
<http://in.mc87.mail.yahoo.com/mc/[email protected]> ] 
        Gesendet: Dienstag, 20. Oktober 2009 07:43
        An: FOP Users
        Betreff: Fw: Regarding XSL-Fo table columns display
        
        Hi Team,
        Is there any possibility for the below functionality which I have 
posted in the below mail. Please help me as it is very urgent requirement.
        
        Thanks,
        Deepthi.K.
        
        --- On Fri, 16/10/09, k deepthi <[email protected] 
<http://in.mc87.mail.yahoo.com/mc/[email protected]> > wrote:
        
        
        
            From: k deepthi <[email protected] 
<http://in.mc87.mail.yahoo.com/mc/[email protected]> >
            Subject: Regarding XSL-Fo table columns display
            To: "FOP Users" <[email protected] 
<http://in.mc87.mail.yahoo.com/mc/[email protected]> >
            Date: Friday, 16 October, 2009, 11:24 AM
            
            
        Hi Team,
        I have a requirement for displaying a table which contains two columns. 
First left column should contain text and second column should contain images. 
The images sizes vary as half or full. In case of full images the image should 
be displayed occupying the full page. At this point the text should overflow to 
the next page. One thing I need to mention is the text and images come from 
separate templates executing one after other. Is there any way to make this 
done. Please help me in this regard.
        
        Thanks,
        Deepthi.
        
        ________________________________
        
            Add whatever you love to the Yahoo! India homepage. Try now! 
<http://in.rd.yahoo.com/tagline_metro_3/*http://in.yahoo.com/trynew> 
        
        
        ________________________________
        
        Connect more, do more and share more with Yahoo! India Mail. Learn more 
<http://in.rd.yahoo.com/tagline_galaxy_3/*http://in.overview.mail.yahoo.com/> .
        
        ---------------------------------------------------------------------
        To unsubscribe, e-mail: [email protected] 
<http://in.mc87.mail.yahoo.com/mc/[email protected]>
 
        For additional commands, e-mail: [email protected] 
<http://in.mc87.mail.yahoo.com/mc/[email protected]>
 
        
        


________________________________

Now, send attachments up to 25MB with Yahoo! India Mail. Learn how 
<http://in.rd.yahoo.com/tagline_galaxy_2/*http://in.overview.mail.yahoo.com/photos>
 .

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to