Generating revision barsIf you use Antenna House Formatter or RenderX XEP, you can generate revision bars in your PDF output by
using the changebar attribute of the DITAVAL revprop element. FOP 1.1 does not support the XSL fo:change-bar formatting object.
The DITA specification for changebar simply says:
changebar
When flag has been set, specify a changebar color, style, or character, according to the changebar
support of the target output format. If flag has not been set, this attribute is ignored.
The syntax for changebar is a sequence of name and value pairs that are delimited by semicolons,
for example:
To produce a revision bar, you must specify a value for style and should specify a value for
width so you get a visible rule.
Each name and value pair corresponds to an attribute of the . The
following attributes and values are available:
styleThe style to use for the line, as for other XSL-FO rules (). The
value produces a solid rule; the default value is .colorAny color value recognized by XSL-FO, including the usual color names or a hex color value. The default
value is .offsetThe space to offset the revision bar from the edge of the text column. You can use points (pt) or
millimeters (mm).placementThe side of the text column on which to place the revision bar. The allowed values are
(left side for left-to-right languages) and (right side for
left-to-right languages). The default value is .widthThe width of the rule as a measurement value. Typical values are and
, which renders a hairline rule.The current handling of changebar is a little Simon Says. It really
needs to interpret any value that is not this specific syntax as "put a change bar out with reasonable defaults".
Likewise, needs more appropriate defaults and a little value checking. I plan to add that but not reflecting those
changes here until I actually make them.
XSL-FO 1.1 does not provide for revision bars that are not rules, so there is no way to get text revision
indicators instead of rules, for example, using a number in place of a rule. Antenna House Formatter provides a
proprietary extension to enable this, but the DITA-OT PDF transformation does not take advantage of it.