<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
	<html>
		<head>
		<title><xsl:value-of select="@titulo"/>CURRICULUM VITAE
		</title>
		</head>
		<body bgcolor="#DDE7F1">
		<h1 align="center" style="color:#00008B">
		<b>CURRICULUM VITAE DE LEAL CAMACHO
		<xsl:value-of select="Mi_cv/Datos_personales/Apellidos"/>, AURORA
		<xsl:value-of select="Mi_cv/Datos_personales/Nombre"/></b></h1> 
		<xsl:apply-templates /><br></br>
		</body>
	</html>
	</xsl:template>
	
<xsl:template match="Mi_cv">
<xsl:apply-templates select="Datos_personales"/>



<xsl:template match="Datos_personales">
<xsl:for-each select=".">
<h1 style="color:#00008B">Datos Personales:<p/></h1>
Nombre: <b><xsl:value-of select="Nombre"/>Aurora</b><br/>
Apellidos: <b><xsl:value-of select="Apellidos"/>Leal Camacho</b><br/>
Dirección: <b><xsl:value-of select="Direccion"/>calle Manuel de Falla, nº5</b><br/>
Teléfono fijo: <b><xsl:value-of select="Telefono fijo"/>916068800</b><br/>
Teléfono móvil: <b><xsl:value-of select="Telefono movil"/>652020111</b><br/>
E-Mail: <b><xsl:value-of select="E-Mail"/>guia_xml@yahoo.es</b><br/><br></br>
<hr color="#00008B"></hr>
</xsl:for-each>
</xsl:template>


<h1 style="color:#00008B">Formación:<p/></h1>
<xsl:apply-templates select="Formacion">
<xsl:sort select="Año_inicio" order="descending"/>
</xsl:apply-templates>


<xsl:template match="Formacion">
<xsl:choose>
	<xsl:when test="@tipo='edicion'">
	<xsl:for-each select=".">
		Título: <b><xsl:value-of select="Titulo"/>Licenciatura en Documentación</b><br></br>
		Lugar:  <b><xsl:value-of select="Lugar"/>Universidad Carlos III de Madrid</b><br></br>
		Periodo: <b><xsl:value-of select="Año_inicio"/>2006<xsl:value-of select="Año_fin"/></b><br></br>
		<hr color="#000080"></hr>
	</xsl:for-each>
	</xsl:when>

<xsl:when test="@tipo='general'">
	<xsl:for-each select=".">
		Título: <b><xsl:value-of select="Titulo"/>Diplomatura en Biblioteconomía y Documentación</b><br></br>
		Lugar:  <b><xsl:value-of select="Lugar"/>Universidad Carlos III de Madrid</b><br></br>
		Periodo: <b><xsl:value-of select="Año_inicio"/>2003-<xsl:value-of select="Año_fin"/>2006</b><br></br>
		<hr color="#000080"></hr>
	</xsl:for-each>
	</xsl:when>

		<xsl:when test="@tipo='general'">
	<xsl:for-each select=".">
		Título: <b><xsl:value-of select="Titulo"/>Bachillerato Ciencias Sociales</b><br></br>
		Lugar:  <b><xsl:value-of select="Lugar"/>Instituto Gloria Fuertes</b><br></br>
		Periodo: <b><xsl:value-of select="Año_inicio"/>2001-<xsl:value-of select="Año_fin"/>2003</b><br></br>
		<hr color="#000080"></hr>
	</xsl:for-each>
	</xsl:when>

		<xsl:when test="@tipo='general'">
	<xsl:for-each select=".">
		Título: <b><xsl:value-of select="Titulo"/>E.S.O</b><br></br>
		Lugar: <b><xsl:value-of select="Lugar"/>Instituto Mariana Pineda</b><br></br>
		Periodo: <b><xsl:value-of select="Año_inicio"/>2001-<xsl:value-of select="Año_fin"/>1997</b><br></br>
		<hr color="#000080"></hr>
	</xsl:for-each>
	</xsl:when>
	<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:template>

<h1 style="color:#00008B">Experiencia:<p/></h1>
<xsl:apply-templates select="Experiencia"/>
</xsl:template>

<xsl:template match="Experiencia">
<xsl:choose>
	<xsl:when test="@tipo='edicion'">
	<xsl:for-each select=".">
		Puesto: <b><xsl:value-of select="Puesto"/>Bibliotecaria</b><br></br>
		Empresa: <b><xsl:value-of select="Empresa"/>Biblioteca pública Miguel de Unamuno</b><br></br>
		Periodo: <b><xsl:value-of select="Año_inicio"/>2007<xsl:value-of select="Año_fin"/></b><br></br>
		<hr color="#000080"></hr>
	</xsl:for-each>
	</xsl:when>

	<xsl:when test="@tipo='general'">
	<xsl:for-each select=".">
		Puesto: <b><xsl:value-of select="Puesto"/>Bibliotecaria</b><br></br>
		Empresa: <b><xsl:value-of select="Empresa"/>Biblioteca Nacional</b><br></br>
		Periodo: <b><xsl:value-of select="Año_inicio"/>2007<xsl:value-of select="Año_fin"/></b><br></br>
		<hr color="#000080"></hr>
	</xsl:for-each>
	</xsl:when>

	<xsl:when test="@tipo='general'">
	<xsl:for-each select=".">
		Puesto: <b><xsl:value-of select="Puesto"/>Archivera</b><br></br>
		Empresa: <b><xsl:value-of select="Empresa"/>Archivo municipal del ayuntamiento de Fuenlabrada</b><br></br>
		Periodo: <b><xsl:value-of select="Año_inicio"/>2006<xsl:value-of select="Año_fin"/></b><br></br>
		<hr color="#000080"></hr>
	</xsl:for-each>
	</xsl:when>

	<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:template>

</xsl:stylesheet>
