|
Rank: Newbie
Joined: 11/24/2017 Posts: 6
|
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.
|
|
Rank: Advanced Member
Joined: 2/27/2009 Posts: 558
|
It seems to work just fine for me using StyleVision Version 2021. In XSLT 1.0 mode, the attached PDF is produced from the also-attached design file. Which version of StyleVision are you using? Perhaps it's best to contact Altova Support directly for this one. File Attachment(s): example.pdf (7kb) downloaded 195 time(s). example.sps (4kb) downloaded 191 time(s).
|
|
Rank: Newbie
Joined: 11/24/2017 Posts: 6
|
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.
|
|
Rank: Newbie
Joined: 11/24/2017 Posts: 6
|
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
|
|
guest |