473,327 Members | 1,920 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,327 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 7172
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.