Table of Content
Good Day! We are interested in using the FOP Apache application. But we require the function of making Table of Contents and Index in the document. Could you please tell us, is there a way to create a table of contents and index in your program? As the only way to implement it, that we see, is to create a simple table. Thank you for your answer! -- Best regards, Anastasya. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table of Content
This is a task for XSLT or a pre-processor used in conjunction with FOP. You need to process your incoming data to generate a ToC using FOP primitives, and then FOP will do the formatting. XSLT gives you one way to do that processing, but there are others. Best to think of FOP as simply a converter from XSL-FO to PDF (or PS, AFP, etc), and nothing more. For the sake of convenience, FOP allows you to provide input via an input XML file and an XSLT file, where the XSLT file specifies a transformation from your input XML file into XSL-FO primitives. But that's all it does. It is up to you to determine that transformation. Good Luck, Glenn On Mon, Mar 17, 2014 at 12:52 AM, Anastasia anasta...@pdf3d.com wrote: Good Day! We are interested in using the FOP Apache application. But we require the function of making Table of Contents and Index in the document. Could you please tell us, is there a way to create a table of contents and index in your program? As the only way to implement it, that we see, is to create a simple table. Thank you for your answer! -- Best regards, Anastasya. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table of Content
I think this is rather an XSL-FO question http://en.wikipedia.org/wiki/XSL_Formatting_Objects HTH Michael Am 17.03.14 07:52, schrieb Anastasia: Good Day! We are interested in using the FOP Apache application. But we require the function of making Table of Contents and Index in the document. Could you please tell us, is there a way to create a table of contents and index in your program? As the only way to implement it, that we see, is to create a simple table. Thank you for your answer! - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table of Content
On Wed, Mar 19, 2014 at 2:28 AM, Michael Wechner michael.wech...@wyona.comwrote: I think this is rather an XSL-FO question http://en.wikipedia.org/wiki/XSL_Formatting_Objects Not really. See my prior. HTH Michael Am 17.03.14 07:52, schrieb Anastasia: Good Day! We are interested in using the FOP Apache application. But we require the function of making Table of Contents and Index in the document. Could you please tell us, is there a way to create a table of contents and index in your program? As the only way to implement it, that we see, is to create a simple table. Thank you for your answer!
Re: Table of Content
Am 19.03.14 09:40, schrieb Glenn Adams: On Wed, Mar 19, 2014 at 2:28 AM, Michael Wechner michael.wech...@wyona.comwrote: I think this is rather an XSL-FO question http://en.wikipedia.org/wiki/XSL_Formatting_Objects Not really. See my prior. I guess you are refering to http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201403.mbox/browser Sorry I missed that, but I basically meant what you were describing. Thanks Michael HTH Michael Am 17.03.14 07:52, schrieb Anastasia: Good Day! We are interested in using the FOP Apache application. But we require the function of making Table of Contents and Index in the document. Could you please tell us, is there a way to create a table of contents and index in your program? As the only way to implement it, that we see, is to create a simple table. Thank you for your answer! - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Table of Content
Hi Anastasya, After a bit of Googling I found these... http://stackoverflow.com/questions/7159747/xsl-fo-creating-dynamic-table-of-contents http://stackoverflow.com/questions/7284236/xsl-fo-how-to-generate-table-of-contents http://www.data2type.de/en/xml-xslt-xslfo/xsl-fo/examples-of-application/tables-of-contents-example-20/ http://www.xmlpdf.com/tableofcontents.html Cheers,Bernard. Date: Mon, 17 Mar 2014 10:52:08 +0400 From: anasta...@pdf3d.com To: fop-u...@xml.apache.org CC: supp...@pdf3d.com Subject: Table of Content Good Day! We are interested in using the FOP Apache application. But we require the function of making Table of Contents and Index in the document. Could you please tell us, is there a way to create a table of contents and index in your program? As the only way to implement it, that we see, is to create a simple table. Thank you for your answer! -- Best regards, Anastasya.
Re: Table of Content
Anastasia wrote: Good Day! We are interested in using the FOP Apache application. But we require the function of making Table of Contents and Index in the document. Could you please tell us, is there a way to create a table of contents and index in your program? As the only way to implement it, that we see, is to create a simple table. Thank you for your answer! There's a chapter called Indexing and Table of Contents in the O'Reilly Book XSL-FO by Dave Pearson, from 2002! It's also covered in XSLT by Toug Tidwell. BugBear - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table of Content
It's also covered in XSLT by Toug Tidwell. Small correction - that's Doug Tidwell ;) - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP Bug or my mistable: Table Cell content string overflow?
Hi Andreas, Thanks for your reply!! I added the language=en in the fo:block-container. Still didn't work. So it seems there is no simple solution for this problem. I have to use the complex one: adding a zero-width space (#8203;), as follow: ?xml version=1.0 encoding=utf-8 ? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=normal page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=1cm margin-left=1.5cm margin-right=1.5cm fo:region-body margin-top=1cm margin-bottom=1cm / fo:region-after extent=0.7cm / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=normal fo:flow flow-name=xsl-region-body fo:table table-layout=fixed width=100% border-collapse=collapse border-width=0.2mm border-style=solid font-size=7pt fo:table-column column-width=30% / fo:table-column column-width=70% / fo:table-body fo:table-row fo:table-cell border-collapse=collapse border-width=0.2mm border-style=solid padding=2pt fo:block-container hyphenate=true wrap-option=wrap overflow=scroll language=en fo:block aaa#8203;aaa#8203;#8203;#8203; /fo:block /fo:block-container /fo:table-cell fo:table-cell border-collapse=collapse border-width=0.2mm border-style=solid padding=2pt fo:block-container hyphenate=true wrap-option=wrap overflow=scroll language=en fo:block ===#8203;#8203;#8203; /fo:block /fo:block-container /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:flow /fo:page-sequence /fo:root
Re: FOP Bug or my mistable: Table Cell content string overflow?
On 31 Dec 2008, at 02:13, Yuan Yuan wrote: Hi When I was using the FOP, I found the content string of the Table Cell overflow all the time. I have tried to find the solution in the Internet for few days. There are a lot of explanations, but no directly solution. I want to know if this is really a bug of FOP or just my mistake (or my misunderstanding of the overflow, wrap-option and hyphenate attribute)? Well, there is the small matter of wrap-option=wrap. This does not / force/ line-wrapping, especially not in FOP. FOP uses Unicode TR14 line-breaking rules, and Unicode does not allow breaking that long string of a's anywhere. Normally, hyphenate=true should be enough to achieve what you need, but I notice you do not specify a language anywhere, yielding a default of language=none. I'm guessing FOP doesn't hyphenate because it does not get an indication of which hyphenation pattern to use here? To properly activate hyphenation in FOP, check the following links: http://xmlgraphics.apache.org/fop/0.95/hyphenation.html http://offo.sourceforge.net/ Note that hyphenation will only take care of the string of a's (could be conceived as a 'word'). The string of ='s will still not be hyphenated, since it is not a word. The only way to force splitting those over multiple lines, at the moment, is to insert Zero-Width Spaces to allow FOP to insert breaks in there... HTH! Andreas - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
FOP Bug or my mistable: Table Cell content string overflow?
Hi, When I was using the FOP, I found the content string of the Table Cell overflow all the time. I have tried to find the solution in the Internet for few days. There are a lot of explanations, but no directly solution. I want to know if this is really a bug of FOP or just my mistake (or my misunderstanding of the overflow, wrap-option and hyphenate attribute)? Thanks! Below is my FO xml code. Please pay attention to this block: fo:block-container hyphenate=true wrap-option=wrap overflow=scroll fo:block hyphenate=true wrap-option=wrap overflow=scroll /fo:block /fo:block-container I really did what I can did for this problem... ?xml version=1.0 encoding=utf-8 ? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=normal page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=1cm margin-left=1.5cm margin-right=1.5cm fo:region-body margin-top=1cm margin-bottom=1cm / fo:region-after extent=0.7cm / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=normal fo:flow flow-name=xsl-region-body fo:table table-layout=fixed width=100% border-collapse=collapse border-width=0.2mm border-style=solid font-size=7pt fo:table-column column-width=30% / fo:table-column column-width=70% / fo:table-body fo:table-row fo:table-cell border-collapse=collapse border-width=0.2mm border-style=solid padding=2pt fo:block-container hyphenate=true wrap-option=wrap overflow=scroll fo:block hyphenate=true wrap-option=wrap overflow=scroll /fo:block /fo:block-container /fo:table-cell fo:table-cell border-collapse=collapse border-width=0.2mm border-style=solid padding=2pt fo:block-container hyphenate=true wrap-option=wrap overflow=scroll fo:block hyphenate=true wrap-option=wrap overflow=scroll === /fo:block /fo:block-container /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:flow /fo:page-sequence /fo:root
table-of-content
Hi, I am am looking for a way to create a table of content using FOP. I found some informations on the web but I do not understand them very well. May someone provide me with a little, simple example. Thanks Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can't vertically align table cell content to middle
Hi there, I'm using FOP 0.92 beta and would like to use the vertical-align="middle" attribute (or equivalent) to centre all my table content to the middle of each cell. I can do it horizontally (fo:table-row text-align="center"),but not vertically. I've looked on the FOP compliance page and it says that "percentages are not supported, yet"but I don't need anything like that, I just want to vertically align to the "middle". Does anyone know how to do this? Also which of the fo:block, fo:table-cell, fo:table-row fo:table-column elements should it be placed in? I've tried them all and have had no luck. I've trawled through the mailing lists and I can't seem to find any answers, I have found something about using a baseline-shift but I don't understand how to use that. If vertical-align isn't supported in 0.92beta, can someone suggest a workaround? Thanks for any advice or suggestions Rory Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail.
RE: can't vertically align table cell content to middle
-Original Message- From: Rory Wales [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 17, 2006 2:29 PM Hi there, I'm using FOP 0.92 beta and would like to use the vertical-align=middle attribute (or equivalent) to centre all my table content to the middle of each cell. I can do it horizontally (fo:table-row text-align=center), but not vertically. I've looked on the FOP compliance page and it says that percentages are not supported, yet but I don't need anything like that, I just want to vertically align to the middle. Does anyone know how to do this? Also which of the fo:block, fo:table-cell, fo:table-row fo:table-column elements should it be placed in? I've tried them all and have had no luck. I've trawled through the mailing lists and I can't seem to find any answers, I have found something about using a baseline-shift but I don't understand how to use that. If vertical-align isn't supported in 0.92beta, can someone suggest a workaround? Thanks for any advice or suggestions Rory Rory, You should use display-align for that. Pascal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't vertically align table cell content to middle
that works perfectly, Pascal, thank you very much! Rory - Original Message From: Pascal Sancho [EMAIL PROTECTED]To: fop-users@xmlgraphics.apache.orgSent: Tuesday, 17 October, 2006 1:55:38 PMSubject: RE: can't vertically align table cell content to "middle" -Original Message- From: Rory Wales [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 17, 2006 2:29 PM Hi there, I'm using FOP 0.92 beta and would like to use the vertical-align="middle" attribute (or equivalent) to centre all my table content to the middle of each cell. I can do it horizontally (fo:table-row text-align="center"), but not vertically. I've looked on the FOP compliance page and it says that "percentages are not supported, yet" but I don't need anything like that, I just want to vertically align to the "middle". Does anyone know how to do this? Also which of the fo:block, fo:table-cell, fo:table-row fo:table-column elements should it be placed in? I've tried them all and have had no luck. I've trawled through the mailing lists and I can't seem to find any answers, I have found something about using a baseline-shift but I don't understand how to use that. If vertical-align isn't supported in 0.92beta, can someone suggest a workaround? Thanks for any advice or suggestions RoryRory,You should use display-align for that.Pascal-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Send instant messages to your online friends http://uk.messenger.yahoo.com
Re: Table cell content overflow Help Needed
The overflow property does not apply to fo:table-cell. Therefore, you can try to use a block-container as a direct child of a table-cell, specify a fixed height and set the overflow property accordingly. On 11.05.2006 13:03:47 Raghavendra U wrote: Hi All, i'm facing one problem. In a table row ,Is there a way to cut-off content-overflow, when the height is fixed for the particular row. as i shown the example above. in the first row i have not mentioned any row height attribute. but in the next row i fixed row height. so when content overflows it overlaps with the existing content. Please get me any solution for this. even after emntioning the overflow=hidden then also its showing as it is. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Table cell content overflow Help Needed
Hi All, i'm facing one problem. In a table row ,Is there a way to cut-off content-overflow, when the height is fixed for the particular row. as i shown the example above. in the first row i have not mentioned any row height attribute. but in the next row i fixed row height. so when content overflows it overlaps with the existing content. Please get me any solution for this. even after emntioning the overflow="hidden" then also its showing as it is. Regards Raghavendra U| Associate Software Engineer | M P H A S I S Architecting Value |139/1,Hosur Road, Koramangala, Bangalore-560 095 | Mobile: +91-9845830975| www.mphasis.com