This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
[ANN] Barcode generator in XSL
- To: "XSL List" <xsl-list at mulberrytech dot com>
- Subject: [ANN] Barcode generator in XSL
- From: "Nikolai Grigoriev" <grig at renderx dot com>
- Date: Mon, 2 Oct 2000 02:53:01 +0400
- Reply-To: xsl-list at mulberrytech dot com
Dear all,
as a byproduct of our main activity, we have got an XSL stylesheet that draws
barcodes from digit sequences. We hope a thing like this may be useful for
people wishing to add barcode labelling to their XSL-based publishing solutions;
it is also a funny example of XSLT programming per se.
Barcodes implemented are the most popular ones that you can see on items in
stores and groceries - UPC/EAN, to be precise; other systems can be easily
added. The output is an XSL FO table that can be rendered to PDF. As most of the
barcode-drawing logic is independent of the output graphical format, modifying
the stylesheet to produce SVG or something similar should be a relatively simple
task.
The stylesheet and examples are freely available from
http://www.renderx.com/Demos/barcode/; please come and see. You can also insert
your own barcodes into the test and see if it produces a correct pattern. Don't
forget to send me a bug report if it doesn't ;-).
Best regards,
Nikolai Grigoriev
RenderX
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list