Re: [xsl] Re: 3 elements on the same line

Subject: Re: [xsl] Re: 3 elements on the same line
From: omprakash.v@xxxxxxxxxxxxx
Date: Mon, 12 Sep 2005 11:50:13 +0530
Hi,
In that case, specify 3 fo:table-columns and set the number-columns-spanned
attribute for all your other table-cells.

cheers,
prakash





                                                                                                                                
                      bharathi kongara                                                                                          
                      <bharathikongara         To:      xsl-list@xxxxxxxxxxxxxxxxxxxxxx                                         
                      @yahoo.com>              cc:      (bcc: omprakash.v/Polaris)                                              
                                               Subject: [xsl] Re: 3 elements on the same line                                   
                      09/12/2005 11:29                                                                                          
                      AM                                                                                                        
                      Please respond                                                                                            
                      to xsl-list                                                                                               
                                                                                                                                
                                                                                                                                




Yeah, now I'm using columns like in the following
template. But my problem is, only my first row needs 3
columns, all other rows need jus one column, is there
a way to specify that so that it can select
dynamically, becuase if I specify 1 column - first row
cannot be processed as there are 3 cells, and if I
specify 3 columns, other rows are compressed to the
size of the first column

 <xsl:template match="Question">

  <fo:table table-layout="fixed" width="100%">

<fo:table-column
column-width="proportional-column-width(1)"/>

      <fo:table-body space-after.optimum="15pt">

                     <fo:table-row>

                               <fo:table-cell>
                                 <xsl:apply-templates select="QuestionNo"/>
                               </fo:table-cell>

                               <fo:table-cell>
                                 <xsl:apply-templates
select="QuestionType"/>
                               </fo:table-cell>

                               <fo:table-cell>
                                 <xsl:apply-templates
select="QuestionScore"/>
                               </fo:table-cell>

                            </fo:table-row>

                    <fo:table-row keep-with-previous="always">
                         <fo:table-cell>

                                             <xsl:apply-templates
select="QuestionText"/>

                                                 </fo:table-cell>
                    </fo:table-row>
                    <fo:table-row keep-with-previous="always">
                         <fo:table-cell>

                                             <xsl:apply-templates
select="InstructionText"/>

                                                 </fo:table-cell>
                    </fo:table-row>

</fo:table-body>

  </fo:table>
 </xsl:template>

Thanks,
Bharathi

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com





This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

Current Thread