Re: [docbook-apps] transform td role to td class in HTML-output

From
Peter Desjardins <>
Date
2020-09-15T12:21:20+00:00
ID
Thread
Re: [docbook-apps] transform td role to td class in HTML-output
Hi, Michel! I have some templates that use class.mode in my
customization. I can confirm that this XSL controls the class
attribute in output HTML:

  <xsl:template match="d:preface[@role = 'apiPortalHome']" mode="class.value">
    <xsl:value-of select="'apiPortalHome'"/>
  </xsl:template>

That template allows us to add some special CSS to a specific page in
a doc set. I added the template based on the excellent coverage in
http://www.sagehill.net/docbookxsl/HtmlCustomEx.html#CustomClassValues.

Can you share more about how you tried class.value? What was the result?

Peter

On Tue, Sep 15, 2020 at 6:26 AM Michel van den Burg <> wrote:
>
> Hi everyone, I'm using the DocBook XSL to transform DocBook XML to EPUB and HTML. I would like to transform
>
> td role="breedte-50"
>
> to
>
> td class="breedte-50"
>
> in my HTML output, but unfortunately the output is
>
> td
>
> I have tried to use match:
> docbook:td[@role = 'bron']
>
> and I've tried the class.value mode. They both don't work.
>
> I've read two posts (from 2010 and 2011) that address this topic. Is there a way to add classes to td's?
>
> Thanks in advance,
> Kind regards,
> Michel
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>