XML technologies / XSL-FO / Reference / Compart XSL extensions / Attributes / check-digits
(Excerpt from "XSL-FO ― Die Referenz" by Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Category: Barcode-spezifisches Formatting object - cpfo:barcode
Description
This attribute specifies the check digits.
Value: | number |
Initial value: | 1 |
Inherited: | no |
XSL-FO example:
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="DinA4" margin="10mm" page-width="100mm" page-height="70mm">
<fo:region-body region-name="xsl-region-body"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="DinA4">
<fo:flow flow-name="xsl-region-body" font-family="Arial" font-size="12pt">
<fo:block font-weight="bold" font-size="20pt" space-after="1cm" border-bottom="0.5pt solid black">
Code 128
</fo:block>
<fo:block>
<cpfo:barcode barcode-type="code128" check-digits="1" display-hri="yes" width="5cm" height="32pt">
0123456789
</cpfo:barcode>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>In the output: