Page 1 of 1

applying changebars to nested elements

Posted: Thu Nov 21, 2024 6:40 am
by kate_lopresti
I'm looking for information on how changebars are applied during a PDF transformation.
We use the rev attribute to flag new content (<ul rev="v3.2">). When transforming lists using the out-of-the-box XSL-FO PDF scenario, a changebar is applied to the list and the corresponding text changes color. When transforming the same list using our PDF plugin, only the changebar appears. Is this configurable somewhere?
changebars.png
Using dita-ot-4.2.3

Re: applying changebars to nested elements

Posted: Thu Nov 21, 2024 12:00 pm
by julien_lacour
Hello Kate,

If the changebar and the color are applied using the default DITA Map PDF - based on XSL-FO scenario you should check in your custom stylesheet if something overrides flagging for lists.
Usually this is made through the following templates:

Code: Select all

<xsl:apply-templates select="*[contains(@class,' ditaot-d/ditaval-startprop ')]"/>
...
<xsl:apply-templates select="*[contains(@class, ' ditaot-d/ditaval-endprop ')]"/>
Maybe they are not called by your custom plugin.

Regards,
Julien

Re: applying changebars to nested elements

Posted: Wed Dec 04, 2024 2:15 am
by kate_lopresti
Thanks for advice, Julien. Looks like our stylesheet was indeed the issue.

The color assigned to common.block was overriding other formatting.

Code: Select all

<xsl:attribute-set name="common.block">
  <xsl:attribute name="color">
      <xsl:value-of select="$default-font-color"/>
    </xsl:attribute>
    </xsl:attribute-set>
Thanks for your help.