|
Free Personal Edition!


 Free software for non-commercial use:
More information on the Free Personal Edition is here.
|
 |
|
Chess Viewer: Demonstration of XSL FO and XEP
|
|
The power of XSL lies in its ability to perform radical
transformations of the XML data source. This page contains
yet another proof for this fact: you can build a chessgame
viewer with a stylesheet!
|
|
The source document is a transcription of a chess game played by
Garry Kasparov against a chess supercomputer -- IBM Deep Blue. The game
is encoded in a form resembling the well-known Portable Game Notation
(PGN) format. The source is very compact: a sample game on this page
[DeepBlue.xml] is less than 4 kBytes
in size.
|
|
The stylesheet converts this arid text into a sequence of board
diagrams, drawing every intermediate position as a graphical
image (a special chess font is used). Applying a 23 kB stylesheet
[chess.xsl], we get a 415 kBytes (!) FO
stream [DeepBlue.fo]. These numbers
give an idea of how deep the transformation is.
|
|
The final step of the whole procedure consists in converting
the result into PDF using XEP. The resulting PDF file
[DeepBlue.pdf] is much smaller than
the source FO stream -- less than 90 kBytes. (XEP implements
PDF compression).
|
|
We hope XSL fans will enjoy this example; and XSL foes will
acknowledge its power!
|
|
More chess games created by the same stylesheet:
|
|
We have used an unabridged chess notation; the original
PGN data are even more concise. We know it is possible
to process even the short chess notation by XSL, and
gladly leave this exercise to volunteers .
|
 |
 |
|
|
 |
News
 April 30, 2008 New Product Trial Release: DiType 1.9 Trial
 DiType turns manuscripts into type in PDF and PostScript. It accepts manuscripts in a number of popular XML markup vocabularies.More news...
April 29, 2008 RenderX PDF Forms White Paper
 View your free copy of "Integrating RenderX XSL FO Technology with iText for High Performance Dynamic Forms Generation".More news...
April 28, 2008 RenderX TransPromo White Paper
 View your free copy of "Using RederX for TransPromo".
More news...
April 25, 2008 XEP 4.12 released

Multicolumn and unique footnotes extensions, PDF/A support, custom meta-fields.
More news...
 |
 |