<?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 scrolling="no">
<body  bgcolor="black">

 <table width="100%" border="1" cellpadding="1" cellspacing="0" align="center">

<!-- These two td's are title and translation in English. -->
  <tr>
   <td height="5%" with="100%" colspan="2" align="center">
    <font size="5" color="purple">
     <xsl:apply-templates select="TEI.2/emblem/teiHeader/author"/>
    </font>
   </td>
  </tr>
  <tr>
   <td height="5%" width="50%" align="center">
    <font size="4" color="red">
     <xsl:apply-templates select="TEI.2/emblem/text/body/motto/translationLaDu"/>
    </font>
   </td>
   <td height="5%" width="50%" align="center">
    <font size="4" color="red">
     <xsl:apply-templates select="TEI.2/emblem/text/body/motto/Mcaption"/>
    </font>
   </td>
  </tr>
  
<!-- This is the picture (pictura). -->
  <tr>
   <td align="center">
		<xsl:apply-templates select="TEI.2/emblem/text/body/pictura/pic/pg/figure"/>
    	
    	<!-- DE IMAGEMAP IS GESCHRAPT, KREEG HET NIET MEER VOORELKAAR HELAAS-->
    	
    	<!--<map>
    		<image src="P:\Documents\jaar2\XML\picture.JPG" alt="CUPIDO: ga naar uitleg" title="CUPIDO: ga naar uitleg" target="_blank"/> 
    		<area id="cupid" shape="rect" coords="234,182,201,182,99,39,169,17,209,33,240,22,249,34,308,13" xml:link="extended" inline="true">
    		<extlocator href="uitleg.html" xml:link="locator" show="replace" actuate="user"/>
    		</area>
    	</map>-->

   </td>
   
   <td>
    <iframe name="iframe" height="100%" width="100%" align="center" vspace="0" hspace="0" scrolling="auto" rowspan="2" src="blurbs/0ref.txt"></iframe>
   </td>
  </tr>

<!-- The poem (subscriptio). -->
  <tr>
   <td height="70%" align="center">
        <!--<xsl:apply-templates select="TEI.2/emblem/text/body/subscriptio"/>-->
     <font size="3" color="orange">
     <xsl:apply-templates select="TEI.2/emblem/text/back/subscriptioENG"/>
   </font>
   </td>
   <td height="70%" align="center">
    	<font size="3" color="yellow">
     <xsl:apply-templates select="TEI.2/emblem/text/body/subscriptio"/>
    </font>
   </td>
  </tr>

<!--dit zijn de externe links, met franje-->

  <tr>
   <td height="10%" colspan="2">
<div align="center">
	<table border="1" cellpadding="1" width="75%">
<!--de categorien-->
	 <tr>
	  <td width="15%" align="center">
	   <font size="3" color="blue">
	    <xsl:apply-templates select="TEI.2/emblem/text/back/exlinks/excaths/cath1"/>
	   </font>
	  </td>
	  <td width="15%" align="center">
	   <font size="3" color="blue">
	    <xsl:apply-templates select="TEI.2/emblem/text/back/exlinks/excaths/cath2"/>
	   </font>
	  </td>
	  <td width="15%" align="center">
	   <font size="3" color="blue">
	    <xsl:apply-templates select="TEI.2/emblem/text/back/exlinks/excaths/cath3"/>
	   </font>
	  </td>
	  <td width="15%" align="center">
	   <font size="3" color="blue">
 	    <xsl:apply-templates select="TEI.2/emblem/text/back/exlinks/excaths/cath4"/>
	   </font>
	  </td>
	 </tr>
	 
<!--en de externe links-->
	 
	 <tr>
	  <td width="15%" align="center">
	    <xsl:apply-templates select="TEI.2/emblem/text/back/exlinks/exback"/>
	  </td>
	  <td width="15%" align="center">
	   <xsl:apply-templates select="TEI.2/emblem/text/back/exlinks/exauth"/>
	  </td>
	  <td width="15%" align="center">
	   <xsl:apply-templates select="TEI.2/emblem/text/back/exlinks/exling"/>
	  </td>
	  <td width="15%" align="center">
	   <xsl:apply-templates select="TEI.2/emblem/text/back/exlinks/exproj"/>
	  </td>
	 </tr>
	</table>
</div>
   </td>
  </tr>
 
<!--END OF TABLE-->
 </table>

</body>
</html>

</xsl:template>

<!-- The picture in XSL. -->
<xsl:template match="TEI.2/emblem/text/body/pictura/pic/pg/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>

<!--link naar Iframe... -->
<xsl:template match="aap">
	<a>
		<xsl:attribute name="href">
			<xsl:value-of select="@href"/>
		</xsl:attribute>
			<xsl:attribute name="target">iframe</xsl:attribute>
			 <font face="verdana" size="2" color="green">
			  <xsl:value-of select="."/>
			</font>
	</a>
</xsl:template>

<!--externe link-->
<xsl:template match="aap2">
	<a>
		<xsl:attribute name="href">
			<xsl:value-of select="@href"/>
		</xsl:attribute>
			<xsl:attribute name="target">blank</xsl:attribute>
		<font face="verdana" size="2">
		<xsl:value-of select="."/>
		</font>
	</a>
</xsl:template>

<!-- The emblem's source. -->
<xsl:template match="source">
<xsl:apply-templates/>
</xsl:template>

<!-- The parts of the text. -->
<xsl:template match="l">
<xsl:apply-templates/><br/>
</xsl:template>

<!-- The parts of the text. -->
<xsl:template match="/w">
<xsl:apply-templates/>
 
</xsl:template>

<!-- The parts of the text. -->
<xsl:template match="/nw">
<xsl:apply-templates/>
 
</xsl:template>

</xsl:stylesheet>
