<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="biodata">
<div>
  <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
      <td width="74%" valign="top" colspan="3">
        <table width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center" bgcolor="#000000">
              <font face="Verdana" style="font-size:9pt" color="white">
				<b>Personal
              History</b></font></td>
          </tr>
          <tr>
            <td width="100%" height="200" valign="top" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><xsl:value-of select="/character/notes/background"/><br/></td>
          </tr>
        </table>
      </td>
      <td width="2%"><br/></td>
      <td width="28%" rowspan="3" valign="top">
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center" bgcolor="#000000"><font face="Verdana" color="white"><b><font style="font-size: 9pt">Homeland</font></b></font></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" bgcolor="#000000" align="center"><font face="Verdana" color="white"><b><font style="font-size: 9pt">Friends</font></b></font></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
          <tr>
            <td width="100%" bgcolor="#000000" align="center"><font face="Verdana" color="white"><b><font style="font-size: 9pt">Enemies</font></b></font></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
        </table>
        <br/>
        </td>
    </tr>
    <tr>
      <td width="34%" valign="top">
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center" bgcolor="#000000"><font face="Verdana" color="white"><b><font style="font-size: 9pt">Guilds
              / Organizations</font></b></font></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
        </table>
      </td>
      <td width="2%"><br/></td>
      <td width="34%" valign="top">
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center" bgcolor="#000000"><font face="Verdana" color="white"><b><font style="font-size: 9pt">Strengths
              / Phobias</font></b></font></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#DDDDDD"><br/></td>
          </tr>
          <tr>
            <td width="100%" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><br/></td>
          </tr>
        </table>
        </td>
      <td width="2%"><br/></td>
    </tr>
    <tr>
      <td width="70%" valign="top" colspan="3">
              <table width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center" bgcolor="#000000">
              <font face="Verdana" color="white"><b><font style="font-size: 9pt">Misc 
              Notes</font></b></font></td>
          </tr>
          <tr>
            <td width="100%" height="100" valign="top" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><xsl:value-of select="/character/notes/misc"/><br/></td>
          </tr>
        </table>
      </td>
      <td width="2%"></td>
    </tr>
    <tr>
      <td width="70%" valign="top" colspan="3">
        <table width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center" bgcolor="#000000">
              <font face="Verdana" color="white"><b><font style="font-size: 9pt">Campaign
              Notes</font></b></font></td>
          </tr>
          <tr>
            <td width="100%" height="200" valign="top" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><xsl:value-of select="/character/notes/campaign"/><br/></td>
          </tr>
        </table>
      </td>
      <td width="2%"></td>
      <td width="28%" valign="top">
      <xsl:apply-templates select="dungeonmaster"/>
        </td>
    </tr>
    <tr>
      <td width="100%" valign="top" colspan="5">
      <br/>
        <table width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center" bgcolor="#000000">
              <font face="Verdana" color="white"><b><font style="font-size: 9pt">Adventure
              Log</font></b></font></td>
          </tr>
          <tr>
            <td width="100%" height="250" valign="top" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><xsl:value-of select="/character/notes/journal"/><br/></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</div>
</xsl:template>
<xsl:template match="dungeonmaster">
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center" bgcolor="#000000"><font face="Verdana" color="white"><b><font style="font-size: 9pt">Dungeon Master</font></b></font></td>
          </tr>
        </table>
      	<font face="Verdana" style="font-size:10pt" color="black">
		<b>Number of Rolls</b><br/>
	</font>
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
		<td bgcolor="#dddddd" width="70%">
			<font face="Verdana" style="font-size:8pt" color="black">
				Ability Scores:<br/>
			</font>
		</td>
		<td bgcolor="#dddddd" width="30%">
			<font face="Verdana" style="font-size:8pt" color="black">
				<xsl:value-of select="rolls/ability"/><br/>
			</font>
		</td>
	</tr>
	<tr>
		<td>
			<font face="Verdana" style="font-size:8pt" color="black">
				Hit Points:<br/>
			</font>
		</td>
		<td>
			<font face="Verdana" style="font-size:8pt" color="black">
				<xsl:value-of select="rolls/hit-points"/><br/>
			</font>
		</td>
	</tr>
	</table>

	<br/>

	<font face="Verdana" style="font-size:10pt" color="black">
		<b>Remaining Points</b><br/>
	</font>
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
		<td width="70%">
			<font face="Verdana" style="font-size:8pt" color="black">
				Skill Points:<br/>
			</font>
		</td>
		<td width="30%">
			<font face="Verdana" style="font-size:8pt" color="black">
				<xsl:value-of select="remaining-points/skill"/><br/>
			</font>
		</td>
	</tr>
	<tr>
		<td bgcolor="#dddddd">
			<font face="Verdana" style="font-size:8pt" color="black">
				Feat Points:<br/>
			</font>
		</td>
		<td bgcolor="#dddddd">
			<font face="Verdana" style="font-size:8pt" color="black">
				<xsl:value-of select="remaining-points/feat"/><br/>
			</font>
		</td>
	</tr>
	<tr>
		<td>
			<font face="Verdana" style="font-size:8pt" color="black">
				Language Points:<br/>
			</font>
		</td>
		<td>
			<font face="Verdana" style="font-size:8pt" color="black">
				<xsl:value-of select="remaining-points/language"/><br/>
			</font>
		</td>
	</tr>
	</table>
	<br/>

	<font face="Verdana" style="font-size:10pt" color="black">
		<b>Miscellaneous</b><br/>
	</font>
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
		<td bgcolor="#dddddd" width="70%">
			<font face="Verdana" style="font-size:8pt" color="black">
				Sum total of Abilities:<br/>
			</font>
		</td>
		<td bgcolor="#dddddd" width="30%">
			<font face="Verdana" style="font-size:8pt" color="black">
				<xsl:value-of select="totals/ability-points"/><br/>
			</font>
		</td>
	</tr>
	<tr>
		<td>
			<font face="Verdana" style="font-size:8pt" color="black">
				Inventory Value:<br/>
			</font>
		</td>
		<td>
			<font face="Verdana" style="font-size:8pt" color="black">
				<xsl:value-of select="totals/inventory-value"/><br/>
			</font>
		</td>
	</tr>
	</table>
</xsl:template>
</xsl:stylesheet>