Author: Andrew Wagner
Date: 11:54:51 04/13/04
Go up one level in this thread
On April 13, 2004 at 13:53:56, Peter Schäfer wrote: >Sounds interesting, but I can't tell if there is a popular demand for it !? > >* there is already an XML schema, called Caxton: > http://www.chesscity.com/Caxton/caxton_xml.htm >however, I've no idea if it is used in practice. I've seen this. There is at least one other out there, but I'm not real thrilled with them. I think you can try to put too much in a file like this, and as you mentioned below, the size gets too bulky to be practical. What I think I'd like to do is specifically design the markup language just to encapsulate and extend PGN. So where in a PGN file you see [Event="World Open"], in PGML, you would see <Event>World Open</Event>. Not much difference in size. > >* if you like, I can send you some of the XML data and XSL sheets used by jose >(jose-chess.sourceforge.net) Sure, I wouldn't mind taking a look. >The schema isn't public (yet), and subject to change. >Incidentally, I'm planning to use XML for cross-tables and tournament reports, >too. What do you include in a tournament report, besides the cross-tables? > > >just some more thoughts: > >* XML files containing game data could become HUGE, much larger than PGN files. >They might not be the best choice for exchanging data, or for sending them to a >browser. Rather think about processing them on the server, and send the resultig >HTML to the browser. The idea is to store/exchange/archive games in PGML format, just like you would with PGN files. Then, if you want to switch it to PGN for something, you tweak one line and open it in your browser. If you want, say, a cross-table, you tweak the line again and open in your browser and you get a completely different result. The PGML itself doesn't get sent to the browser...XSLT transforms the PGML to pure HTML and sends that to the browser. > >* calculating a cross-table from a list of games is hardly practicabe with XSLT >(as far as I can tell). You will probably have to calculate the cross-table >beforehand, and store it in the XML file. I don't understand this. I haven't looked at it too closely, but between XSLT, XQL, and JavaScript, it can't be too hard to find the result for each player for each round and stuff it into a table. I think this will be the easy part of the project...it's writing the XSLT to write the JavaScript for the replay that's going to be fun :). > > >Regards, >Peter
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.