<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xsl" href="mathml.xsl"?><html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://www.w3.org/1999/xhtml">
   <head>
      <title>Example: ChessGML</title><style type="text/css">
      math { font-size: 30pt }
      mi { color: red }
    </style><link href="./w3ctalk-640w.css" rel="stylesheet" type="text/css" title="640w" />
      <link href="./w3ctalk-640.css" rel="alternate stylesheet" type="text/css" title="640" />
      <link href="./w3ctalk-800w.css" rel="alternate stylesheet" type="text/css" title="800w" />
      <link href="./w3ctalk-800.css" rel="alternate stylesheet" type="text/css" title="800" />
      <link href="./w3ctalk-1024w.css" rel="alternate stylesheet" type="text/css" title="1024w" />
      <link href="./w3ctalk-1024.css" rel="alternate stylesheet" type="text/css" title="1024" />
      <link rel="next" href="slide9.xml" title="Next" />
      <link rel="previous" href="slide7.xml" title="Previous" />
      <link rel="contents" href="Overview.xml" title="Contents" />
      <link rel="up" href="Overview.xml" title="Up" />
   </head>
   <body><a href="http://www.w3.org/"><img src="./w3c_home.gif" alt="W3C  " /></a><h1 class="slide">
         <h2>Example: ChessGML</h2>
      </h1>
      <hr class="top" />
      <div>
         <p>XSLT transforms custom XML to text, XHTML or SVG.</p>
         <ul>
            
            <li>ChessGML describes chess games</li>
            
            <li>Is produced by chess software, and is not easily readable</li>
            
            <li>Not unserstood by browsers</li>
            
            <li>XSLT transforms make it possible to display in various formats</li>
            
         </ul><pre>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
&lt;game type="chess" variant="classic"&gt;
  &lt;gameinfo&gt;
    &lt;eventinfo&gt;
      &lt;event&gt;The Immortal Game&lt;/event&gt;
      &lt;site&gt;London&lt;/site&gt;
    &lt;/eventinfo&gt;
    &lt;date year="1851"/&gt;
    &lt;opponents&gt;
      &lt;white&gt;
	&lt;player&gt;
	  &lt;person&gt;
	    &lt;surname&gt;Anderssen&lt;/surname&gt;
	    &lt;firstname&gt;Adolf&lt;/firstname&gt;
	  &lt;/person&gt;
	&lt;/player&gt;
      &lt;/white&gt;
      &lt;black&gt;
	&lt;player&gt;
	  &lt;person&gt;
	    &lt;surname&gt;Kieseritzky&lt;/surname&gt;
	    &lt;firstname&gt;Lionel&lt;/firstname&gt;
	  &lt;/person&gt;
	&lt;/player&gt;
      &lt;/black&gt;
    &lt;/opponents&gt;
    &lt;result res="1-0" why="mate"/&gt;
  &lt;/gameinfo&gt;
  
  &lt;moves ply-count="23"&gt;
    &lt;mp&gt; 
      &lt;m c="w"&gt;&lt;p c="w" n="p"/&gt;&lt;e2/&gt;&lt;e4/&gt;&lt;/m&gt;
      &lt;m c="b"&gt;&lt;p c="b" n="p"/&gt;&lt;e7/&gt;&lt;e5/&gt;&lt;/m&gt;
    &lt;/mp&gt;

    &lt;mp&gt; 
      &lt;m c="w"&gt;&lt;p c="w" n="p"/&gt;&lt;f2/&gt;&lt;f4/&gt;&lt;/m&gt;
      &lt;m c="b" capt="1"&gt;&lt;p c="b" n="p"/&gt;&lt;e5/&gt;&lt;f4/&gt;&lt;/m&gt;
    &lt;/mp&gt;

    &lt;mp&gt; 
      &lt;m c="w"&gt;&lt;p c="w" n="b"/&gt;&lt;f1/&gt;&lt;c4/&gt;&lt;/m&gt;
      &lt;m c="b" chk="1"&gt;&lt;p c="b" n="q"/&gt;&lt;d8/&gt;&lt;h4/&gt;&lt;/m&gt;
    &lt;/mp&gt;
...
    &lt;mp&gt; 
      &lt;m c="w"&gt;&lt;p c="w" n="b"/&gt;&lt;d6/&gt;&lt;e7/&gt;&lt;/m&gt;
    &lt;/mp&gt;
  &lt;/moves&gt;
&lt;/game&gt;
</pre></div>
      <hr class="bottom" />
      <table class="navbar" cellspacing="0" cellpadding="0" width="97%" summary="footer">
         <tr valign="bottom">
            <td>
               <p class="author">Max Froumentin, W3C</p>
            </td>
            <td>
               <p class="index">8 of 23</p>
            </td>
            <td valign="top">
               <div><a rel="previous" href="slide7.xml" accesskey="P"><img src="./left.gif" width="32" height="32" alt=" previous" title="Back to &#34;Example: record database&#34;" /></a><a rel="contents" href="Overview.xml" accesskey="C"><img src="./toc.png" width="32" height="32" alt=" contents" title="Table of Contents" /></a><a rel="next" href="slide9.xml" accesskey="N"><img src="./right.gif" width="32" height="32" alt=" next" title="On to &#34;ChessGML to text&#34;" /></a></div>
            </td>
         </tr>
      </table>
   </body>
</html>
