BOOKMARK & SHARE Bookmark and Share
The Future of Your Document Is Here
RenderX logo
Contact Us

Free Personal Edition!

Free software for
non-commercial use:
Free XEP Personal Edition!

More information...

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 []. 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:


FO Source  

PDF PostScript
Robert Fischer - Max Euwe  Fischer-Euwe.pdf 
Robert Fischer - Mikhail Tal  Fischer-Tal.pdf 
Garry Kasparov - Anatoly Karpov  Kasparov-Karpov.pdf 

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 .



February 18, 2015
XEP 4.24 released

New RenderX extension:
page scaling in PDF backend;
bugfixes related to:
SVG, PDF images, accessibility.
More news...

January 16, 2015
VisualXSL 2.4.6 released

x64 platform reliability.
Paragraph Editor bugfix.
Display Font Size bugfix.
More news...

July 15, 2014
XEP 4.23 released

Improved Sec. 508 accessibility:
new RenderX extensions;
relaxed input requirements; several bugfixes in SVG;
DocBench: oXygen Editor 16
More news...

August 28, 2013
VisualXSL 2.4.5 released

Cell spanning, conditional rows. Reusable/referable blocks. Conditional and Choose blocks. New property fields, improved UI.
More news...

August 8, 2013
XEP 4.22 released

External PDF injection:
entire document, specific page;
improved Sec. 508 accessibility;
bugfixes in SVG gradients;
DocBench: oXygen Editor 15
More news...

RenderX RSS RSS: Subscribe

Add to Google Add to MyYahoo!