RE: table-column width
Hi I find (n is numeric) is well supported and useful (FOP-0.20.4 and FOP-0.20.5rc). This has the effect of allocating percentage widths as required. Is this helpful? John Marshall -Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: 10 April 2003 11:19 To: [EMAIL PROTECTED] Subject: Re: table-column width >From: "Todtenhaupt, Susann" <[EMAIL PROTECTED]> > >Is it possible to allocate a column-width a value like 100%? >inline-progression-dimension fop does not support, does it? > Currently FOP only supports tables with fixed (pre-determined) column woidths, e.g. 5in, 2cm, etc. Therefore percentages are not supported _ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Accurate Software Ltd The Courtyard, Denmark Street, Wokingham, RG40 2AZ, UK. Tel: +44 (0)118 977 3889 Fax +44 (0)118 977 1260 Web: http://www.accuratesoftware.com The information in this email is confidential and privileged and is intended only for the use of the individual or entity listed above. If you are neither the intended individual, or entity listed above, nor the person responsible for the delivery of this email to the intended recipients, you are hereby notified that any unauthorised distribution, copying or use of this email is prohibited. If you have received this email in error, please notify the Accurate system manager at [EMAIL PROTECTED] or on +44 (0)118 977 3889. The views expressed in this communication may not necessarily be the views held by the Accurate Group. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: table-column width
This is not true. FOP only supports Fixed table-widths, but columns widths can be set relative. You can do this by setting: column-width="proportional-column-width(1)" If you have to columns with a 25%, 75% width you can set: Regards, Harm Kok Chris Bowditch wrote: From: "Todtenhaupt, Susann" <[EMAIL PROTECTED]> Is it possible to allocate a column-width a value like 100%? inline-progression-dimension fop does not support, does it? Currently FOP only supports tables with fixed (pre-determined) column woidths, e.g. 5in, 2cm, etc. Therefore percentages are not supported _ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: table-column width
From: "Todtenhaupt, Susann" <[EMAIL PROTECTED]> Is it possible to allocate a column-width a value like 100%? inline-progression-dimension fop does not support, does it? Currently FOP only supports tables with fixed (pre-determined) column woidths, e.g. 5in, 2cm, etc. Therefore percentages are not supported _ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
table-column width
Hello! Is it possible to allocate a column-width a value like 100%? inline-progression-dimension fop does not support, does it? Thanx! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table column-width property
sujata wrote: Exactly.. I need to give the column-width dynamically. Is it possbile to do that? If yes how can i do that? Sure. But this should be done in XSLT stage, there is no notion of variables in XSL-FO. Fromatting is two-step process, first source document is transformed to result tree using XSLT and then result tree is formatted by FOP. Get some XSL tutorial, that's really basics. -- Oleg Tkachenko Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table column-width property
Oleg Tkachenko wrote: Seems to me you are trying to use variables in xsl-fo document instead of xsl stylesheet. Am I right? Sujata wrote: Exactly.. I need to give the column-width dynamically. Is it possbile to do that? If yes how can i do that? -Thanks and Regards Sujata - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table column-width property
sujata wrote: I gave it as, where colwidth is a variable name holding the column width value. But this value is not accepting and it gives the error : Error in column-width property value "{$colwidth}" Seems to me you are trying to use variables in xsl-fo document instead of xsl stylesheet. Am I right? -- Oleg Tkachenko Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Table column-width property
Hi, I have a table with different column width. I get column width in a variable. How do i assign to the column-width property? I gave it as, where colwidth is a variable name holding the column width value. But this value is not accepting and it gives the error : Error in column-width property value "{$colwidth}" Can anybody tell me how can i assign the variable to column-width property Thanks and Regards, Sujata - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table column width
sujata wrote: My Logic is get a string with all the column width s of the table seperated by coma. In xsl split it and use it for the defining the column width. But I did not find any methods in xsl to split a string and put it in an array? You'll find this in the XSL FAQ, reachable from here http://www.mulberrytech.com/xsl/xsl-list/ J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table column width
Thanks for the reply. How do you take the column width in a stylesheet. I don't want to take each column width data as a separate parameter because the no of columns vary from table to table. My Logic is get a string with all the column width s of the table seperated by coma. In xsl split it and use it for the defining the column width. But I did not find any methods in xsl to split a string and put it in an array? Can u please tell me, how can i do this? Thanks and Regards, Sujata Oleg Tkachenko wrote: sujata wrote: I have a problem in displaying the data in the pdf table. Each column width in a table should be different from the other column depending on the data. Since I am using the same fop stylesheet for different tables, I cannot hardcode the column width in the stylesheet. Is there any option we can set so that the PDF table columns get adjusted with the data you pass (like HTML table)? table-layout="auto" is not implemented yet unfortunately. If not, how can I go head to solve this problem? Move table-column width calculation logic to xslt stage. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table column width
sujata wrote: I have a problem in displaying the data in the pdf table. Each column width in a table should be different from the other column depending on the data. Since I am using the same fop stylesheet for different tables, I cannot hardcode the column width in the stylesheet. Is there any option we can set so that the PDF table columns get adjusted with the data you pass (like HTML table)? table-layout="auto" is not implemented yet unfortunately. If not, how can I go head to solve this problem? Move table-column width calculation logic to xslt stage. -- Oleg Tkachenko Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Table column width
Hi, I have a problem in displaying the data in the pdf table. Each column width in a table should be different from the other column depending on the data. Since I am using the same fop stylesheet for different tables, I cannot hardcode the column width in the stylesheet. Is there any option we can set so that the PDF table columns get adjusted with the data you pass (like HTML table)? If not, how can I go head to solve this problem? Thanks and Regards, Sujata - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: computing table-column width
Thanks Chuck ... I juste have to upgrade to 0.20.3 to implement this, but it works nicely. Flo - Original Message - From: "Chuck Paussa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 13, 2002 7:12 PM Subject: Re: computing table-column width > Florence Deforge wrote: > > > Hello > > I need to create a style sheet which displays tables. > > In the xml instance tables are defined as follow : > > > > > > ... > > ... > > ... > > > > > > Tables can have any number of columns and I wonder if it is possible > > to create a single template that would first compute the number of > > column (assuming all lines have the same number of columns) then > > compute the column width according to this number. > > > > Has anyone done something similar ? > > > Here's some totally untested code but, if you debug it, it should work. > > > > > > > > > > > select="."/> > > > > > > > > Chuck > >
Re: computing table-column width
Florence Deforge wrote: Hello I need to create a style sheet which displays tables. In the xml instance tables are defined as follow : ... ... ... Tables can have any number of columns and I wonder if it is possible to create a single template that would first compute the number of column (assuming all lines have the same number of columns) then compute the column width according to this number. Has anyone done something similar ? This crops up regularly on the XSL list. There are a few solutions in the archive http://www.mulberrytech.com/xsl/xsl-list/ and there are also a few post on either of the FOP lists referring to them. J.Pietschmann
Re: computing table-column width
Florence Deforge wrote: Hello I need to create a style sheet which displays tables. In the xml instance tables are defined as follow : ... ... ... Tables can have any number of columns and I wonder if it is possible to create a single template that would first compute the number of column (assuming all lines have the same number of columns) then compute the column width according to this number. Has anyone done something similar ? Here's some totally untested code but, if you debug it, it should work. Chuck
computing table-column width
Hello I need to create a style sheet which displays tables. In the xml instance tables are defined as follow : ... ... ... Tables can have any number of columns and I wonder if it is possible to create a single template that would first compute the number of column (assuming all lines have the same number of columns) then compute the column width according to this number. Has anyone done something similar ?
Re: table: column-width
Thank you very much for your help! Works great. Mathy Rob Smith wrote: > Chuck Paussa wrote: > > > > > > > > > > (presumably only one of the xsl:for-each elements should be included) > > You can also do this in pure XSLT using a recursive named template: > > > > > > ... > > > > > > > > > > > > In FOP 0.20.3, if the table width is fixed (eg. 100%) and no width is > specified for some or all columns, the available width is divided equally > between those columns. > -- > Rob Smith
RE: table: column-width
Chuck Paussa wrote: > > > > (presumably only one of the xsl:for-each elements should be included) You can also do this in pure XSLT using a recursive named template: ... In FOP 0.20.3, if the table width is fixed (eg. 100%) and no width is specified for some or all columns, the available width is divided equally between those columns. -- Rob Smith
Re: table: column-width
Mathy, To do the variable number of columns, you'll have to use a range function like this To do the column and row spanning, use number-columns-spanned and number-rows-spanned Chuck Mathy V Arumugam wrote: I need a table looking like this :))) *** * TEXT*Some text * *** ** Col 2 * Col3* Col4 * Col N * *** * 0* 2*3* 4*5* *** * 6 * 7*8* 9*10 * *** The number of columns is not a fixed number. I am able to create the table but, having trouble with the column-width. The table should expand to fit the page. The total-column-number is defined in TABLE attribute. Thanks Mathy
Re: table: column-width
Apologies for the previous request! A better looking table is attached! > > The number of columns is not a fixed number. I am able to create the > table but, having trouble with the column-width. The table should > expand to fit the page. The total-column-number is defined in TABLE > attribute. > > Thanks > Mathy Title: Column 1 Column 1 Title for the for The first ROW Column 2 Column 3 Column 4 Column N (0,0) (0,1) (0,2) (0,3) (0,N) (1,0) (1,1) (1,2) (1,3) (1,N) (2,0) (2,1) (2,2) (2,3) (2,N) (3,0) (3,1) (3,2) (3,3) (3,N)
table: column-width
I need a table looking like this :))) *** * TEXT*Some text * *** ** Col 2 * Col3* Col4 * Col N * *** * 0* 2*3* 4*5* *** * 6 * 7*8* 9*10 * *** The number of columns is not a fixed number. I am able to create the table but, having trouble with the column-width. The table should expand to fit the page. The total-column-number is defined in TABLE attribute. Thanks Mathy