W3C

Intermission: the ChessGML stylesheets


1. ChessGML

<?xml version="1.0" encoding="iso-8859-1"?>
<game type="chess" variant="classic">
  <gameinfo>
    <eventinfo>
      <event>The Immortal Game</event>
      <site>London</site>
    </eventinfo>
    <date year="1851"/>
    <opponents>
      <white>
	<player>
	  <person>
	    <surname>Anderssen</surname>
	    <firstname>Adolf</firstname>
	  </person>
	</player>
      </white>
      <black>
	<player>
	  <person>
	    <surname>Kieseritzky</surname>
	    <firstname>Lionel</firstname>
	  </person>
	</player>
      </black>
    </opponents>
    <result res="1-0" why="mate"/>
  </gameinfo>
  
  <moves ply-count="23">
    <mp> 
      <m c="w"><p c="w" n="p"/><e2/><e4/></m>
      <m c="b"><p c="b" n="p"/><e7/><e5/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="p"/><f2/><f4/></m>
      <m c="b" capt="1"><p c="b" n="p"/><e5/><f4/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="b"/><f1/><c4/></m>
      <m c="b" chk="1"><p c="b" n="q"/><d8/><h4/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="k"/><e1/><f1/></m>
      <m c="b"><p c="b" n="p"/><b7/><b5/></m>
    </mp>

    <mp> 
      <m c="w" capt="1"><p c="w" n="b"/><c4/><b5/></m>
      <m c="b"><p c="b" n="n"/><g8/><f6/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="n"/><g1/><f3/></m>
      <m c="b"><p c="b" n="q"/><h4/><h6/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="p"/><d2/><d3/></m>
      <m c="b"><p c="b" n="n"/><f6/><h5/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="n"/><f3/><h4/></m>
      <m c="b"><p c="b" n="q"/><h6/><g5/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="n"/><h4/><f5/></m>
      <m c="b"><p c="b" n="p"/><c7/><c6/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="p"/><g2/><g4/></m>
      <m c="b"><p c="b" n="n"/><h5/><f6/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="r"/><h1/><g1/></m>
      <m c="b" capt="1"><p c="b" n="p"/><c6/><b5/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="p"/><h2/><h4/></m>
      <m c="b"><p c="b" n="q"/><g5/><g6/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="p"/><h4/><h5/></m>
      <m c="b"><p c="b" n="q"/><g6/><g5/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="q"/><d1/><f3/></m>
      <m c="b"><p c="b" n="n"/><f6/><g8/></m>
    </mp>

    <mp> 
      <m c="w" capt="1"><p c="w" n="b"/><c1/><f4/></m>
      <m c="b"><p c="b" n="q"/><g5/><f6/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="n"/><b1/><c3/></m>
      <m c="b"><p c="b" n="b"/><f8/><c5/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="n"/><c3/><d5/></m>
      <m c="b" capt="1"><p c="b" n="q"/><f6/><b2/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="b"/><f4/><d6/></m>
      <m c="b" capt="1"><p c="b" n="b"/><c5/><g1/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="p"/><e4/><e5/></m>
      <m c="b" capt="1" chk="1"><p c="b" n="q"/><b2/><a1/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="k"/><f1/><e2/></m>
      <m c="b"><p c="b" n="n"/><b8/><a6/></m>
    </mp>

    <mp> 
      <m c="w" capt="1" chk="1"><p c="w" n="n"/><f5/><g7/></m>
      <m c="b"><p c="b" n="k"/><e8/><d8/></m>
    </mp>

    <mp> 
      <m c="w" chk="1"><p c="w" n="q"/><f3/><f6/></m>
      <m c="b" capt="1"><p c="b" n="n"/><g8/><f6/></m>
    </mp>

    <mp> 
      <m c="w"><p c="w" n="b"/><d6/><e7/></m>
    </mp>
  </moves>
</game>