[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: 3 elements on the same line

Subject: Re: 3 elements on the same line
From: bharathi kongara <bharathikongara@xxxxxxxxx>
Date: Sun, 11 Sep 2005 22:59:20 -0700 (PDT)
tables same line
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 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.