mgo_s4t |
Newbie |
|
|
|
|
None Specified |
|
Friday, November 24, 2017 |
Thursday, January 14, 2021 8:38:41 AM |
6 [0.03% of all post / 0.00 posts per day] |
|
Hello,
I managed to solve the issue.
My failure was to create document sections within templates and conditions, cause I wanted to show/hide some pages by user selection.
The previous sps looked like:
Section: Content of report Content...
if (showDefinition) Section: Header: Definitions Content: Text end if for each customer Section: Header: Customer data of [customerName] Content: Table of data end for
This didn't work. But if the sps looks like this, it works quite fine
Section: Header: Content of report Content...
Section: Header: Definitions if (showDefinitions) Content: Text end if
Section: Header: Customer Data for each customer Content: Data of [customerName] Table with data
Edit 2021-01-14: This generates empty pages if I want to skip parts in the report. Currently no solution
|
Big thank you K101 for your quick reply.
Unfortunately I've only access to a StyleVision Version 2017. Can you provide me a XSL-FO file? Maybe I can see what I was doing wrong.
|
Hello William,
did you manage to solve the header problem? Because I currently have the same issue and I'm also forced to use FOP 1.0 with XSLT 1.0. Your post is quite old but maybe you remember have you fixed it.
Kind regards, Manuel
|
Hello together,
I'm trying to change the page header text on every document section, but somehow on every page I get the result of the first section instead of the current one.
What I'm trying to achieve is something like this
Section 1: Header: "List of Content" Body: Table with content
Section 2: Header: "Definitions" Body: Some text
Section 3: Header: "Customer Data" Body: Table with data
But when processing the result looks like this:
Section 1: Header "List of Content" Body: Table with content
Section 2: Header: "List of Content" (instead of "Definitions") Body: Some Text
Section 3: Header: "List of Content" (instead of "Customer Data") Body: Table with data
I have to use XPath 1 and XSLT 1. Is it even possible to create the desired result? A simple how to would be very nice.
Thank you in advance.
|
Hi,
here is a short example of my problem: A table with one row, two columns/cells and a long text without any spaces. A line break is not the desired result. The overflow should simply be clipped.
Or maybe I have to add a "<fo:block-container>" to each cell?
|
Hello,
after updating to version 2017, I've noticed, that the XSL-FO output file is different from the 2013 version. No changes were made, I simply created the XSL-FO in the 2017 version.
<fo:table-row> <fo:table-cell border="0" border-color="black" border-style="solid" border-width="thin" line-height="0.8" margin-bottom="0" margin-top="0" white-space-collapse="true" linefeed-treatment="treat-as-space" wrap-option="no-wrap" white-space-treatment="ignore-if-surrounding-linefeed" padding="2pt" display-align="center"> <fo:block-container overflow="hidden"> <fo:block text-align="left"> <xsl:for-each select="position">
The red part is missing in the new XSLT. So currently the text displayed inside this cell is overflowing to the cells beneath it.
Can someone of you please explain me, how I can re-enable the "<fo:block-container overflow="hidden">"?
I tried to set "overflow: hidden" in the styles for the cell, column, the displayed text. But it got ignored.
Thank you in advance.
|
|