IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: mgo_s4t
About
User Name: mgo_s4t
Forum Rank: Newbie
Real Name:
Location
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Friday, November 24, 2017
Last Visit: Thursday, January 14, 2021 8:38:41 AM
Number of Posts: 6
[0.03% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: Dynamic page headers
Posted: Wednesday, December 16, 2020 12:26:58 PM
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
Topic: Dynamic page headers
Posted: Monday, December 14, 2020 10:49:07 AM
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.
Topic: Headers/footers/page numbering...
Posted: Wednesday, December 9, 2020 2:48:47 PM
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
Topic: Dynamic page headers
Posted: Wednesday, December 9, 2020 1:55:03 PM
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.
Topic: Text overflow in table cell
Posted: Wednesday, November 29, 2017 11:51:33 AM
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?
Topic: Text overflow in table cell
Posted: Friday, November 24, 2017 3:16:12 PM
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.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.