How to configure rowheader in PDF output?

Here should go questions about transforming XML with XSLT and FOP.
yiyi_vivi
Posts: 13
Joined: Tue Nov 13, 2012 9:30 pm

How to configure rowheader in PDF output?

Post by yiyi_vivi »

Hi all,

In a table, I want to make the first column as the header, so I use

Code: Select all

<table frame="all" scale="80" rowheader="firstcol" >
But in PDF output, the first column is not bold as in the WebHelp output. And also I want to add a background-color to the first column to make it stand out. Where is the rowheader defined in xsl stylesheet and how can I edit it?

Thank you very much in advance.

Best,
Ivy
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to configure rowheader in PDF output?

Post by Radu »

Hi Ivy,

Oxygen uses the DITA Open Toolkit to publish DITA content to various output formats and from what I investigated the DITA OT PDF stylesheets do not handle the rowheader attribute in any way.
I added an issue for this one:

https://github.com/dita-ot/dita-ot/issues/1462

It's probably an attribute which is seldom used and nobody noticed that it was not implemented in the PDF output.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
dbutch
Posts: 41
Joined: Wed Aug 14, 2019 9:16 am

Re: How to configure rowheader in PDF output?

Post by dbutch »

Hi Radu,

Do you know if this was ever resolved, so that the @rowheader attribute can be formatted in a similar manner to the <thead> element in a PDF?
In my CSS I use the following for the <thead>:

Code: Select all

*[class~="topic/thead"] {
	background-color: #E7E6E6;
	font-family: IBMPlexSans-SemiBold;
}
Thanks.
julien_lacour
Posts: 495
Joined: Wed Oct 16, 2019 3:47 pm

Re: How to configure rowheader in PDF output?

Post by julien_lacour »

Hello,

You can match both <thead> and entries marked as @rowheader using the following rule:

Code: Select all

th {
	background-color: #E7E6E6;
	font-family: IBMPlexSans-SemiBold;
}
The entries marked as @rowheader are converted in <th> instead of <td> during the transformation.

Regards,
Julien
Post Reply