473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

XSL-FO and columns of text, is it possible?

Hello everyone! Is it possible to create 2 columns of text
using XSL-FO and FOP (or any other XSL-FO to PDF generator)?
I want the function similar to 'fo:block' but in 2 columns,
so if the text is long it continous on the 2nd column or on
the next page.

Let me show the function with an example:

Page 1
-----------------------
| |
| aaaaaabb jjjjkkkk |
| bbbccccd kkklllll |
| ddddddee llllmmmm |
| eeeeffff mmmmmmnn |
| ggggghhh nnnnnnnn |
| iiiiiijj nnoooppp |
| |
-----------------------

Page 2
-----------------------
| |
| ppppqqqq |
| qqqqrrrr |
| rrsssstt |
| ttt... |
| |
| |
| |
-----------------------

....is this possible with XSL-FO?

/Richard
Jul 20 '05 #1
4 7176
Richard (16 May 2004 03:31:10 -0700):
Hello everyone! Is it possible to create 2 columns of text
using XSL-FO and FOP (or any other XSL-FO to PDF generator)?


fo:region-body has an attribute called colum-count. Set it to 2 and you
get 2 columns of text.
Chris
--
Chris Huebsch www.hübsch-gemacht.de | TU Chemmnitz, Informatik, RNVS
GPG-Encrypted mail welcome! ID:7F2B4DBA | Str. d. Nationen 62, B204
Chemnitzer Linux-Tage 2005, 5.-6.März | D-09107 Chemnitz
http://www.tu-chemnitz.de/linux/tag/ | +49 371 531-1377, Fax -1803
Jul 20 '05 #2
THANKS A LOT Chris!
<fo:region-body column-count="2"/> works great.

I have been looking all over the net for information
on that without success. Maybe I nead a book.
thanks again!
/Richard
Jul 20 '05 #3
Richard (16 May 2004 07:56:48 -0700):
THANKS A LOT Chris!
<fo:region-body column-count="2"/> works great.

I have been looking all over the net for information
on that without success. Maybe I nead a book.


the FOP-Documentation includes a complete element and attribute-list
(including a list, what is implemented and what is not)

It links to the (rather technical) xsl:fo-Spec at the w3c.

Furthermore there is an excelent documentation at zvon.org

And Renderx has a good tutorial, although it contains some
renderx-speciffic stuff
http://www.renderx.com/Tests/doc/html/tutorial.html
Chris
--
Chris Huebsch www.hübsch-gemacht.de | TU Chemmnitz, Informatik, RNVS
GPG-Encrypted mail welcome! ID:7F2B4DBA | Str. d. Nationen 62, B204
Chemnitzer Linux-Tage 2005, 5.-6.März | D-09107 Chemnitz
http://www.tu-chemnitz.de/linux/tag/ | +49 371 531-1377, Fax -1803
Jul 20 '05 #4
You are much better off with a book, this one is good:

http://www.amazon.com/exec/obidos/tg...glance&s=books

John

Visual Programming Ltd mail PO Box 22-222, Khandallah, Wellington, New
Zealand site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand
phone +64 4 479 1738 fax +64 4 479 1294 web http://www.xmlpdf.com
"Chris Huebsch" <ch***********@informatik.tu-chemnitz.de> wrote in message
news:sl**************************@chu.informatik.t u-chemnitz.de...
Richard (16 May 2004 07:56:48 -0700):
THANKS A LOT Chris!
<fo:region-body column-count="2"/> works great.

I have been looking all over the net for information
on that without success. Maybe I nead a book.


the FOP-Documentation includes a complete element and attribute-list
(including a list, what is implemented and what is not)

It links to the (rather technical) xsl:fo-Spec at the w3c.

Furthermore there is an excelent documentation at zvon.org

And Renderx has a good tutorial, although it contains some
renderx-speciffic stuff
http://www.renderx.com/Tests/doc/html/tutorial.html
Chris
--
Chris Huebsch www.hübsch-gemacht.de | TU Chemmnitz, Informatik, RNVS
GPG-Encrypted mail welcome! ID:7F2B4DBA | Str. d. Nationen 62, B204
Chemnitzer Linux-Tage 2005, 5.-6.März | D-09107 Chemnitz
http://www.tu-chemnitz.de/linux/tag/ | +49 371 531-1377, Fax -1803

Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: chris | last post by:
Hi, After going back through the XSL tutorials and the help here I have largely solved the problem of merging two XHTML files, but one small detail remains... The parser outputs <html...
0
by: johkar | last post by:
My XML and XSL is below. Also below is a textual representation of what I want to get out of the XML with XSL. For each Extension node in XML, I am only concerned with those nodes with...
29
by: Thomas | last post by:
Hi I have an XSL stylesheet: <xsl:for-each select="TRACKS/TRACK"> <tr class="TDL"> <td width="90%"><xsl:number value="position()" format="1" /> - <xsl:value-of select="TRACKTITLE"/></td>...
4
by: Kasp | last post by:
Below is a XSL that I can barely understand being a newbie to XSL world. Can someone let me know what do these 3 lines do exactly? - <xsl:attribute name="MemberKey"> <xsl:number level="multiple"...
4
by: sylvain.loiseau | last post by:
Hello Given a node set, I try to compute the total of the string-length value of each node. For instance, with : <xsl:for-each select="//q"> <!-- the length of each node is compute with:...
2
by: Sebek | last post by:
Hello, I'm transforming a XML document in XHTML but I have problems using sub-strings, it will be clearer with an exemple: What I have: <form...
4
by: Pat Turner | last post by:
Hi, I have some XML like this: <family> <person name="bob"> <father ref="../../person" /> </person> <person name="charlie"> <child ref="../../person" />
2
by: shapper | last post by:
Hello, I am for days trying to apply a XSL transformation to a XML file and display the result in a the browser. I am using Asp.Net 2.0. Please, could someone post just a simple code example,...
14
by: ajfish | last post by:
Hi, I am trying to allocate a unique ID to every instance of tag 'foo' in a large XML document. currently I'm doing this: <xsl:variable name="UniqueId"> <xsl:number count="foo" level="any"/>...
2
by: tschwartz | last post by:
I have an xml document in which elements are hierarchically related to eachother conceptually. Unfortunately, the hierarchical relationship is not modelled in the schema (i.e., the elements are...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.