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

Free Personal Edition!

XEP 4
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 [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:

 
Description

FO Source  

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

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

October 11, 2011
Database to XML

DB2XML - new product released:
Database to XML, CSV to XML;
VDPMill / VisualXSL integration;
high-performance, GUI... free!
More news...


September 7, 2011
RenderX at DOCUMENT
Strategy Forum


Visit us in Booth #108
at Crowne Plaza O'Hare,
Chicago, IL,
November 1-3, 2011.
More news...


June 27, 2011
Altova with VDPMill

Altova MapForce integration:
MapForce installation package; MapForce CLI driver, preset as
XML generator from DB, CSV, etc.
More news...


June 17, 2011
VisualXSL 2.4.4 released

This bugfix version resolves XEPWin compatibility problems.
More news...


June 2, 2011
VDPMill 4.0 released

XML generators support
(e.g. Altova MapForce).
EnMasse 2.3 bug-fixing.
XEP 4.19 compatibility.
More news...


RenderX RSS RSS: Subscribe

Add to Google Add to MyYahoo!