yes, sorry. i meen thought, not think:). i think that it is possible in automatic mode when i write the first message:) thanks for help!
Mario Madunic wrote: > > I'm guessing since no one else has replied maybe there is no automatic way > of doing it at the moment. Maybe someone has written an extension for it. > I do see that balancing columns is part of next FO spec (I think 2.0). > > Sorry couldn't be much more help. > > Marijan (Mario) Madunic > Publishing Specialist > New Flyer Industries > > -----Original Message----- > From: lexa2009 [mailto:myworkac...@gmail.com] > Sent: Thursday, February 11, 2010 8:26 AM > To: fop-users@xmlgraphics.apache.org > Subject: RE: How to balance table columns? > > > thx. yes, but i also need to know the length of each string, the length in > mm > of each character, the length of column to know when they break in two or > more lines :) i think is is possible in automatic mode :) > > > > Mario Madunic wrote: >> >> Sorry for it to make more sense here is the xpath I would test >> >> $var/child::*[position() lt count($var//child::*)/2 + 1] >> $var/child::*[position() gt count($var//child::*)/2] >> >> Marijan (Mario) Madunic >> Publishing Specialist >> New Flyer Industries >> >> -----Original Message----- >> From: Mario Madunic [mailto:mario_madu...@newflyer.com] >> Sent: Wednesday, February 10, 2010 6:50 AM >> To: fop-users@xmlgraphics.apache.org >> Subject: RE: How to balance table columns? >> >> You might want to post this up on the XSLT list. >> >> So here is how I would do it >> >> First is create a temp node variable containing all the left and right >> strings as child of the var. Get a count of the child nodes (left and >> right) divide by two (round up or down your choice) then create the table >> and copy-of/apply-templates to child::*[position() lt half + 1] and for >> the right side child::*[position() gt half] in the left and right table >> cells accordingly. Now that is not exact without testing and is only an >> outline but I hope it give you a general idea of how it might be done. >> >> Marijan (Mario) Madunic >> Publishing Specialist >> New Flyer Industries >> >> -----Original Message----- >> From: lexa2009 [mailto:myworkac...@gmail.com] >> Sent: Wednesday, February 10, 2010 5:59 AM >> To: fop-users@xmlgraphics.apache.org >> Subject: How to balance table columns? >> >> >> Hello! >> for example i have a simple table with 2 columns. like this: >> >> leftstring1 rightstring1 >> leftstring2 rightstring2 >> leftstring3 rightstring3 >> leftstring4 rightstring4 >> leftstring5 >> leftstring6 >> >> i do not know how many of each string will be, but i want this table >> >> leftstring1 leftstring6 >> leftstring2 rightstring1 >> leftstring3 rightstring2 >> leftstring4 rightstring3 >> leftstring5 rightstring4 >> >> how to balance columns? how to make table of smallest height? >> -- >> View this message in context: >> http://old.nabble.com/How-to-balance-table-columns--tp27530072p27530072.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 >> >> >> -------------------------------------------------------------------- >> Please consider the environment before printing this e-mail. >> >> CONFIDENTIALITY STATEMENT: This communication (and any and all >> information or material transmitted with this communication) is >> confidential, may be privileged and is intended only for the use of the >> intended recipient. If you are not the intended recipient, any review, >> retransmission, circulation, distribution, reproduction, conversion to >> hard copy, copying or other use of this communication, information or >> material is strictly prohibited and may be illegal. If you received this >> communication in error or if it is forwarded to you without the express >> authorization of New Flyer, please notify us immediately by telephone or >> by return email and permanently delete the communication, information and >> material from any computer, disk drive, diskette or other storage device >> or media. Thank you. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org >> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org >> >> >> -------------------------------------------------------------------- >> Please consider the environment before printing this e-mail. >> >> CONFIDENTIALITY STATEMENT: This communication (and any and all >> information or material transmitted with this communication) is >> confidential, may be privileged and is intended only for the use of the >> intended recipient. If you are not the intended recipient, any review, >> retransmission, circulation, distribution, reproduction, conversion to >> hard copy, copying or other use of this communication, information or >> material is strictly prohibited and may be illegal. If you received this >> communication in error or if it is forwarded to you without the express >> authorization of New Flyer, please notify us immediately by telephone or >> by return email and permanently delete the communication, information and >> material from any computer, disk drive, diskette or other storage device >> or media. Thank you. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org >> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/How-to-balance-table-columns--tp27530072p27544964.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 > > > -------------------------------------------------------------------- > Please consider the environment before printing this e-mail. > > CONFIDENTIALITY STATEMENT: This communication (and any and all > information or material transmitted with this communication) is > confidential, may be privileged and is intended only for the use of the > intended recipient. If you are not the intended recipient, any review, > retransmission, circulation, distribution, reproduction, conversion to > hard copy, copying or other use of this communication, information or > material is strictly prohibited and may be illegal. If you received this > communication in error or if it is forwarded to you without the express > authorization of New Flyer, please notify us immediately by telephone or > by return email and permanently delete the communication, information and > material from any computer, disk drive, diskette or other storage device > or media. Thank you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > > -- View this message in context: http://old.nabble.com/How-to-balance-table-columns--tp27530072p27637393.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