<?xml version='1.0'?>
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="html"/>
<xsl:template match="/">

<html>
<body  bgcolor="teal">

<div align="center"> 
<table width="80%" height="100%" border="2" cellpadding="0" cellspacing="1" bordercolor="red">

 <tr>
  <td border="0" cellpadding="0" cellspacing="0" bordercolor="black" align="center">
   <xsl:apply-templates select="TEI.2/figure"/><br/><br/>
   <xsl:apply-templates select="TEI.2/epu"/>
  </td>
 </tr>

 <tr>
  <td align="center">
    <font size="3">
     <xsl:apply-templates select="TEI.2/intro"/>
    </font>
  </td>
 </tr>
 
 <tr>
  <td align="center">
   <font size="5">  
    <xsl:apply-templates select="TEI.2/core"/>   
   </font>
  </td>
 </tr>
 
</table>
</div>
 
</body>
</html>

</xsl:template>

<xsl:template match="aap">
	<a>
		<xsl:attribute name="href">
			<xsl:value-of select="@href"/>
		</xsl:attribute>
			<xsl:attribute name="target"></xsl:attribute>
			<!-- als je de link naar je iframe wilt, moet je de waarde van de name van je iframe gebruiken, dus 'iframe', 
			en je moet dan ook geen enters gebruiken, dus dan wordt het zoiets:
			<xsl:attribute name="target">iframe</xsl:attribute>
			-->
		<font face="verdana" size="2">
		<xsl:value-of select="."/>
		</font>
	</a>
</xsl:template>

<xsl:template match="aap2">
	<a>
		<xsl:attribute name="href">
			<xsl:value-of select="@href"/>
		</xsl:attribute>
			<xsl:attribute name="target">blank</xsl:attribute>
			<!-- als je de link naar je iframe wilt, moet je de waarde van de name van je iframe gebruiken, dus 'iframe', 
			en je moet dan ook geen enters gebruiken, dus dan wordt het zoiets:
			<xsl:attribute name="target">iframe</xsl:attribute>
			-->
		<font face="verdana" size="2">
		<xsl:value-of select="."/>
		</font>
	</a>
</xsl:template>

<!-- The picture in XSL. -->
<xsl:template match="TEI.2/figure">
<img>
<xsl:attribute name="src">
<xsl:value-of select="unparsed-entity-uri(@entity)"/>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="pg"/>
</xsl:attribute>
</img>
</xsl:template>

</xsl:stylesheet>