Hi Fabien,
The propagation of role and/or class attributes would not work in xslfo output,
because a class attribute is not a recognized formatting property in XSL-FO. It only
applies to HTML output. If you want to customize for XSL-FO output, you would need to
customize templates to output XSL-FO properties for your role attributes.
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "Fabien Tillier" <[email protected]>
To: <[email protected]>
Sent: Wednesday, June 22, 2011 8:43 AM
Subject: RE: [docbook-apps] role in HTML/XSLFO for HTML Tables
Thank you for your answer, Bob, but still, I have questions...
If I add a class attribute, I will also have to keep the role attribute because, as I
am generating HTML and xslfo, I need to keep the role attribute if I want it to be
propagated to the xslfo stylesheet, right ?
Regards,
Fabien
-----Message d'origine-----
De : Bob Stayton [mailto:[email protected]]
Envoyé : mercredi 22 juin 2011 17:39
À : Fabien Tillier; [email protected]
Objet : Re: [docbook-apps] role in HTML/XSLFO for HTML Tables
Hi Fabien,
In DocBook XSL, there is a param named 'entry.propagates.style', which is set
to 1 by
default, and causes any role attribute on an entry element to be converted to a
class
attribute on the table cell in the HTML output. That feature applies only to
the
entry element, I thought, so I'm surprised in worked on <row> as suggested by
your
example.
For HTML table markup, a class attribute is permitted for any of the HTML table
element names, and it will be copied through to the output HTML table. The
same is
true of other HTML attributes you might add to your HTML table markup.
<tr class="keep-row">
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "Fabien Tillier" <[email protected]>
To: <[email protected]>
Sent: Wednesday, June 22, 2011 8:05 AM
Subject: [docbook-apps] role in HTML/XSLFO for HTML Tables
Hi List.
I am banging my head on a problem that is probably not very
complicated...
I have changed my docbook tables from CALS to the HTML table model (with
better results, as speed matters).
Previously, I was defining a role attribute to get a formatting hint in
either PDF or HTML output.
Now, since I changed, the role attribute is no longer pushed to the end
of the process, thus, no formatting.
For example:
<tr role="keep-row">
Will end up as
<tr>
Using a customization of xsl/html/docbook.xsl stylesheet
Will someone be kind enough to point me where did I missed something ?
Thanks and best regards,
Fabien
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]