<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="." type="application/x-xsp"?>
<?xml-stylesheet href="/personalpagev1_1a.xsl.en" type="text/xsl"?>

<xsp:page
  language="Perl"
  xmlns:xsp="http://apache.org/xsp/core/v1" 
  xmlns:esql="http://apache.org/xsp/SQL/v2" 
  xmlns:conv="http://xmlns.knowscape.com/xsp/CharsetConv"
> 
<page>

<!--<personal version="0.0">-->

<!--Conexión a la base de datos personal2001-->
<esql:connection>
  <esql:driver>Pg</esql:driver>
  <esql:dburl>dbname=personal2001</esql:dburl>
  <esql:username>postgres</esql:username>
  <esql:execute-query>
     <esql:query>
      select *  from datos_per where rfc='ZAHH600211'
    </esql:query>
    <esql:results> 
       <esql:row-results>
          
          <author e-mail="">eogm</author>
	  <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
	  <e-mail><conv:charset-convert><esql:get-string column="login"/>@cie.unam.mx</conv:charset-convert></e-mail>
          <homepage><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></homepage>
	  <foto><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></foto>                    
          <telefono tipo="ext"><conv:charset-convert><esql:get-string column=""/></conv:charset-convert>29747</telefono>
          <grado><conv:charset-convert><esql:get-string column="niv_est"/></conv:charset-convert></grado>
          <especialidad><conv:charset-convert><esql:get-string column=""/>Fisica de Polimeros (E): materiales compuestos de ceramicos-polimeros.</conv:charset-convert></especialidad>
          <sni><conv:charset-convert><esql:get-string column="otros_est"/></conv:charset-convert></sni>
	  <pride><conv:charset-convert><esql:get-string column="estimulos"/></conv:charset-convert></pride>
	  <categoria><conv:charset-convert><esql:get-string column="cat"/></conv:charset-convert></categoria>
      
       </esql:row-results> 
    </esql:results>        
  </esql:execute-query>
</esql:connection>

<!-- Distinciones de más de tres años -->
<distincion>
  <nombre>Medalla "Gabino Barreda, 1997"</nombre>
  <descripcion>Otorgada por los estudios de Doctorado en Ciencias (Ciencia de Materiales) de la UNAM.
</descripcion>
</distincion>

<!--Conexión a la base de datos informe1999-->
<esql:connection>
  <esql:driver>Pg</esql:driver>
  <esql:dburl>dbname=informe1999</esql:dburl>

   <esql:username>postgres</esql:username>
  <esql:execute-query>

<!--Actividades docentes-->
    <esql:query>
      select materia, nivel, facultad, semestre  from cursos  where rfc='ZAHH600211' and tipo_curso='Impartidos Dentro de los Diferentes Planes de Estudio'
    </esql:query>
    <esql:results>
       <esql:row-results> 
            <profesor>
              <materia><conv:charset-convert><esql:get-string column="materia" /></conv:charset-convert></materia> 
              <nivel><conv:charset-convert><esql:get-string column="nivel" /></conv:charset-convert> </nivel>
              <facultad><conv:charset-convert><esql:get-string column="facultad" /></conv:charset-convert></facultad>
              <semestre><conv:charset-convert><esql:get-string column="semestre" /></conv:charset-convert></semestre>
            </profesor>          
       </esql:row-results>
    </esql:results>


<!--Lineas de investigacion--> 
<!-- Comentado porque se repite con la inf. de Proyectos.
    <esql:query>
      select nombre from proyectos where rfc='ZAHH600211'  
    </esql:query>
    <esql:results>
       <esql:row-results> 
          <linea>
            <nombre><conv:charset-convert><esql:get-string column="nombre" /></conv:charset-convert></nombre>
          </linea>
       </esql:row-results>
    </esql:results>
-->


<!-- Distinciones -->
    <esql:query>
      select nombre, inst  from distinciones where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <distincion>
            <nombre><conv:charset-convert><esql:get-string column="nombre" /></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></descripcion> 
          </distincion>
       </esql:row-results>		  
     </esql:results>


<!--Publicaciones-->
    <esql:query>
      select * from articulos where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>   
          <publicacion> 
            <tipo><conv:charset-convert><esql:get-string column="tipo_art" /></conv:charset-convert></tipo>       
            <titulo><conv:charset-convert><esql:get-string column="titulo" /></conv:charset-convert></titulo>       
            <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor> 
            <revista><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></revista>
            <paginas><esql:get-string column="pags"/></paginas>
	    <vol><esql:get-string column="vol"/></vol>
	    <año><esql:get-string column="fecha"/></año>   
          </publicacion>
       </esql:row-results>
    </esql:results>

<!--Libro-->
    <esql:query>
      select autores, titulo, edit, isbn from libros where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <libro>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
	    <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor>
	    <isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	    <editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
          </libro>
       </esql:row-results>
    </esql:results>


<!--Capitulo-->
    <esql:query>
      select titulo, autores2,nombre, edit, pags, periodo, isbn from capitulos_lib where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <capitulo>
            <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
	    <autor><conv:charset-convert><esql:get-string column="autores2"/></conv:charset-convert></autor>
	    <paginas><conv:charset-convert><esql:get-string column="pags"/></conv:charset-convert></paginas> 
            <libro>
              <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
	      <autor><conv:charset-convert><esql:get-string column="editores"/></conv:charset-convert></autor>
	      <isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	      <editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
            </libro>
            <año><esql:get-string column="periodo"/></año>   
          </capitulo>
       </esql:row-results>
    </esql:results>

<!--Recursos Humanos,falta -->
<!--Comentado porque no muestra todos los datos que deben ir.
    <esql:query>
      select nivel, titulo, nombre_est, inst  from frh where rfc='ZAHH600211' and tipo_part='Director'
    </esql:query>
    <esql:results>
       <esql:row-results>
	  <rec_hum>                         
            <grado><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></grado>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo> 
            <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <lugar><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </rec_hum>
       </esql:row-results>
    </esql:results>
-->  

<!--Trabajos presentados en congresos (sin memorias)-->  
<!-- Comentado  
    <esql:query>
  select nombre,titulo,autores,lugar,fecha  from difusion where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <congreso>
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </congreso>
       </esql:row-results> 
    </esql:results>
-->

<!--Proyectos-->
<!-- 1999
    <esql:query>
      select nombre, ini_p, fin_p, don_pat, logros from proyectos where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <proyecto>
            <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="logros"/></conv:charset-convert></descripcion>
            <patrocinador><conv:charset-convert><esql:get-string column="don_pat"/></conv:charset-convert></patrocinador>
            <fecha>
               <fecha_inicial><esql:get-string column="ini_p"/></fecha_inicial>
	       <fecha_final><esql:get-string column="fin_p"/></fecha_final> 
            </fecha>
          </proyecto>
       </esql:row-results> 
    </esql:results>     
 -->

<!--Cursos, seminarios y conferencias Impartidas-->
<!-- Comentado
    <esql:query>
      select tipo_dif, nombre, titulo, inst, lugar, fecha from difusion where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>         
          <div_imp>
            <tipo><conv:charset-convert><esql:get-string column="tipo_dif"/></conv:charset-convert></tipo>  
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <no_per></no_per> 
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </div_imp>
       </esql:row-results> 
    </esql:results>     
-->

<!-- Cursos, seminarios y conferencias Recibidas--> 
<!--  
    <esql:query>
      select * from difusion where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <div_rec>
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <no_per></no_per>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </div_rec>
       </esql:row-results> 
    </esql:results>     
-->

<!--Tesis dirigidas-->
    <esql:query>
      select * from frh where rfc='ZAHH600211'  and tipo_part='Director'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <tesis>              
            <nivel><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></nivel>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
            <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <lugar><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </tesis>
       </esql:row-results> 
    </esql:results>     

    <esql:no-results>
      <p>No hay datos</p>
    </esql:no-results>
  </esql:execute-query>
</esql:connection>

<!-- Prueba para pegar el 2000 -->

<!--Conexión a la base de datos informe2000-->
<esql:connection>
  <esql:driver>Pg</esql:driver>
  <esql:dburl>dbname=informe</esql:dburl>

   <esql:username>postgres</esql:username>
  <esql:execute-query>

<!--Actividades docentes-->
    <esql:query>
      select materia, nivel, facultad, semestre  from cursos  where rfc='ZAHH600211' and tipo_curso='Impartidos Dentro de los Diferentes Planes de Estudio'
    </esql:query>
    <esql:results>
       <esql:row-results> 
            <profesor>
              <materia><conv:charset-convert><esql:get-string column="materia" /></conv:charset-convert></materia>
              <nivel><conv:charset-convert><esql:get-string column="nivel" /></conv:charset-convert></nivel>
              <facultad><conv:charset-convert><esql:get-string column="facultad" /></conv:charset-convert></facultad>
              <semestre><conv:charset-convert><esql:get-string column="semestre" /></conv:charset-convert></semestre>
            </profesor>          
       </esql:row-results>
    </esql:results>

<!--Lineas de investigacion 
    <esql:query>
      select nombre from proyectos where rfc='ZAHH600211'  
    </esql:query>
    <esql:results>
       <esql:row-results> 
          <linea>
            <nombre><conv:charset-convert><esql:get-string column="nombre" /></conv:charset-convert></nombre>
          </linea>
       </esql:row-results>
    </esql:results>
-->

<!-- Distinciones -->
    <esql:query>
      select nombre, inst  from distinciones where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <distincion>
            <nombre><conv:charset-convert><esql:get-string column="nombre" /></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></descripcion> 
          </distincion>
       </esql:row-results>		  
     </esql:results>


<!--Publicaciones-->
    <esql:query>
      select * from articulos where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>   
          <publicacion> 
            <tipo><conv:charset-convert><esql:get-string column="tipo_art" /></conv:charset-convert></tipo>       
            <titulo><conv:charset-convert><esql:get-string column="titulo" /></conv:charset-convert></titulo>       
            <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor> 
            <revista><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></revista>
            <paginas><esql:get-string column="pags"/></paginas>
	    <vol><esql:get-string column="vol"/></vol>
	    <año><esql:get-string column="fecha"/></año>   
          </publicacion>
       </esql:row-results>
    </esql:results>

<!--Libro-->
    <esql:query>
      select autores, titulo, edit, isbn from libros where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <libro>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
	    <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor>
	    <isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	    <editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
          </libro>
       </esql:row-results>
    </esql:results>


<!--Capitulo-->
    <esql:query>
      select titulo, autores2,nombre, edit, pags, periodo, isbn from libros2 where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <capitulo>
            <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
	    <autor><conv:charset-convert><esql:get-string column="autores2"/></conv:charset-convert></autor>
	    <paginas><conv:charset-convert><esql:get-string column="pags"/></conv:charset-convert></paginas> 
            <libro>
              <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
	      <autor><conv:charset-convert><esql:get-string column="editores"/></conv:charset-convert></autor>
	      <isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	      <editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
            </libro>
            <año><esql:get-string column="periodo"/></año>   
          </capitulo>
       </esql:row-results>
    </esql:results>

<!--Recursos Humanos,falta -->
    <esql:query>
      select nivel, titulo, nombre_est, inst  from frh where rfc='ZAHH600211'  and tipo_part='Director'
    </esql:query>
    <esql:results>
       <esql:row-results>
	  <rec_hum>                         
            <grado><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></grado>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo> 
            <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <lugar><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </rec_hum>
       </esql:row-results>
    </esql:results>
  
<!--Trabajos presentados en congresos (sin memorias)  
    <esql:query>
  select nombre,titulo,autores,lugar,fecha  from difusion where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <congreso>
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </congreso>
       </esql:row-results> 
    </esql:results>
-->

<!--Proyectos-->
<!-- 2000
    <esql:query>
      select nombre, ini_p, fin_p, don_pat, logros from proyectos where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <proyecto>
            <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="logros"/></conv:charset-convert></descripcion>
            <patrocinador><conv:charset-convert><esql:get-string column="don_pat"/></conv:charset-convert></patrocinador>
            <fecha>
               <fecha_inicial><esql:get-string column="ini_p"/></fecha_inicial>
	       <fecha_final><esql:get-string column="fin_p"/></fecha_final> 
            </fecha>
          </proyecto>
       </esql:row-results> 
    </esql:results>     
 -->

<!--Cursos, seminarios y conferencias Impartidas
    <esql:query>
      select tipo_dif, nombre, titulo, inst, lugar, fecha from difusion where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>         
          <div_imp>
            <tipo><conv:charset-convert><esql:get-string column="tipo_dif"/></conv:charset-convert></tipo>  
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <no_per></no_per> 
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </div_imp>
       </esql:row-results> 
    </esql:results>     
-->
<!-- Cursos, seminarios y conferencias Recibidas 
    <esql:query>
      select * from difusion where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <div_rec>
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <no_per></no_per>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </div_rec>
       </esql:row-results> 
    </esql:results>     
-->

<!--Tesis dirigidas-->
    <esql:query>
      select * from frh where rfc='ZAHH600211'  and tipo_part='Director'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <tesis>              
            <nivel><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></nivel>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
            <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <lugar><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </tesis>
       </esql:row-results> 
    </esql:results>     

    <esql:no-results>
      <p>No hay datos</p>
    </esql:no-results>
  </esql:execute-query>
</esql:connection>

<!-- Prueba para pegar 2001 -->

<!--Conexión a la base de datos informe2001-->
<esql:connection>
  <esql:driver>Pg</esql:driver>
  <esql:dburl>dbname=informe2001</esql:dburl>

   <esql:username>postgres</esql:username>
  <esql:execute-query>

<!--Actividades docentes-->
    <esql:query>
      select materia, nivel, facultad, semestre  from cursos  where rfc='ZAHH600211' and tipo_curso='Impartidos Dentro de los Diferentes Planes de Estudio'
    </esql:query>
    <esql:results>
       <esql:row-results> 
            <profesor>
              <materia><conv:charset-convert><esql:get-string column="materia" /></conv:charset-convert></materia>
              <nivel><conv:charset-convert><esql:get-string column="nivel" /></conv:charset-convert></nivel>
              <facultad><conv:charset-convert><esql:get-string column="facultad" /></conv:charset-convert></facultad>
              <semestre><conv:charset-convert><esql:get-string column="semestre" /></conv:charset-convert></semestre>
            </profesor>          
       </esql:row-results>
    </esql:results>

<!--Lineas de investigacion 
    <esql:query>
      select nombre from proyectos where rfc='ZAHH600211'  
    </esql:query>
    <esql:results>
       <esql:row-results> 
          <linea>
            <nombre><conv:charset-convert><esql:get-string column="nombre" /></conv:charset-convert></nombre>
          </linea>
       </esql:row-results>
    </esql:results>
-->

<!-- Distinciones -->
    <esql:query>
      select nombre, inst  from distinciones where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <distincion>
            <nombre><conv:charset-convert><esql:get-string column="nombre" /></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></descripcion> 
          </distincion>
       </esql:row-results>		  
     </esql:results>


<!--Publicaciones-->
    <esql:query>
      select * from articulos where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>   
          <publicacion> 
            <tipo><conv:charset-convert><esql:get-string column="tipo_art" /></conv:charset-convert></tipo>       
            <titulo><conv:charset-convert><esql:get-string column="titulo" /></conv:charset-convert></titulo>       
            <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor> 
            <revista><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></revista>
            <paginas><esql:get-string column="pags"/></paginas>
	    <vol><esql:get-string column="vol"/></vol>
	    <año><esql:get-string column="fecha"/></año>   
          </publicacion>
       </esql:row-results>
    </esql:results>

<!--Libro-->
    <esql:query>
      select autores, titulo, edit, isbn from libros where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <libro>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
	    <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor>
	    <isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	    <editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
          </libro>
       </esql:row-results>
    </esql:results>


<!--Capitulo-->
    <esql:query>
      select titulo, autores2,nombre, edit, pags, periodo, isbn from capitulos_lib where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <capitulo>
            <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
	    <autor><conv:charset-convert><esql:get-string column="autores2"/></conv:charset-convert></autor>
	    <paginas><conv:charset-convert><esql:get-string column="pags"/></conv:charset-convert></paginas> 
            <libro>
              <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
	      <autor><conv:charset-convert><esql:get-string column="editores"/></conv:charset-convert></autor>
	      <isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	      <editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
            </libro>
            <año><esql:get-string column="periodo"/></año>   
          </capitulo>
       </esql:row-results>
    </esql:results>

<!--Recursos Humanos,falta -->
    <esql:query>
      select nivel, titulo, nombre_est, inst  from frh where rfc='ZAHH600211'  and tipo_part='Director'
    </esql:query>
    <esql:results>
       <esql:row-results>
	  <rec_hum>                         
            <grado><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></grado>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo> 
            <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <lugar><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </rec_hum>
       </esql:row-results>
    </esql:results>
  
<!--Trabajos presentados en congresos (sin memorias)  
    <esql:query>
  select nombre,titulo,autores,lugar,fecha  from difusion where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <congreso>
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </congreso>
       </esql:row-results> 
    </esql:results>
-->

<!--Proyectos-->
    <esql:query>
      select nombre, ini_p, fin_p, don_pat, logros from proyectos where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <proyecto>
            <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="logros"/></conv:charset-convert></descripcion>
            <patrocinador><conv:charset-convert><esql:get-string column="don_pat"/></conv:charset-convert></patrocinador>
            <fecha>
               <fecha_inicial><esql:get-string column="ini_p"/></fecha_inicial>
	       <fecha_final><esql:get-string column="fin_p"/></fecha_final> 
            </fecha>
          </proyecto>
       </esql:row-results> 
    </esql:results>     
 
<!--Cursos, seminarios y conferencias Impartidas
    <esql:query>
      select tipo_dif, nombre, titulo, inst, lugar, fecha from difusion where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>         
          <div_imp>
            <tipo><conv:charset-convert><esql:get-string column="tipo_dif"/></conv:charset-convert></tipo>  
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <no_per></no_per> 
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </div_imp>
       </esql:row-results> 
    </esql:results>     
-->

<!-- Cursos, seminarios y conferencias Recibidas 
    <esql:query>
      select * from difusion where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <div_rec>
            <nombre><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></nombre>
            <no_per></no_per>
            <evento><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></evento>
            <lugar><conv:charset-convert><esql:get-string column="lugar"/></conv:charset-convert></lugar>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </div_rec>
       </esql:row-results> 
    </esql:results>     
-->

<!--Tesis dirigidas-->
    <esql:query>
      select * from frh where rfc='ZAHH600211'  and tipo_part='Director'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <tesis>              
            <nivel><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></nivel>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
            <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
            <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
            <lugar><conv:charset-convert><esql:get-string column=""/></conv:charset-convert></lugar>
            <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
          </tesis>
       </esql:row-results> 
    </esql:results>     

    <esql:no-results>
      <p>No hay datos</p>
    </esql:no-results>
  </esql:execute-query>
</esql:connection>



<!--Conexión a la base de datos informe2002-->
<esql:connection>
  <esql:driver>Pg</esql:driver>
  <esql:dburl>dbname=informe2002</esql:dburl>
  <esql:username>postgres</esql:username>
  <esql:execute-query>

<!--Actividades docentes-->
  <esql:query>
  select materia, nivel, facultad, semestre  from cursos_sem  where rfc='ZAHH600211'
  </esql:query>
  <esql:results>
    <esql:row-results> 
      <profesor>
        <materia><conv:charset-convert><esql:get-string column="materia" /></conv:charset-convert></materia> 
        <nivel><conv:charset-convert><esql:get-string column="nivel" /></conv:charset-convert> </nivel>
        <facultad><conv:charset-convert><esql:get-string column="facultad" /></conv:charset-convert></facultad>
        <semestre><conv:charset-convert><esql:get-string column="semestre" /></conv:charset-convert></semestre>
      </profesor>          
    </esql:row-results>
  </esql:results>

<!-- Distinciones -->
  <esql:query>
  select nombre, inst  from distinciones where rfc='ZAHH600211'
  </esql:query>
  <esql:results>
    <esql:row-results>
      <distincion>
        <nombre><conv:charset-convert><esql:get-string column="nombre" /></conv:charset-convert></nombre>
        <descripcion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></descripcion> 
      </distincion>
    </esql:row-results>		  
  </esql:results>

<!--Publicaciones-->
  <esql:query>
  select * from articulos where rfc='ZAHH600211'
  </esql:query>
  <esql:results>
    <esql:row-results>   
      <publicacion> 
        <tipo><conv:charset-convert><esql:get-string column="tipo_art" /></conv:charset-convert></tipo>       
        <titulo><conv:charset-convert><esql:get-string column="titulo" /></conv:charset-convert></titulo>       
        <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor> 
        <revista><conv:charset-convert><esql:get-string column="nom_rev"/></conv:charset-convert></revista>
        <paginas><esql:get-string column="pags"/></paginas>
        <vol><esql:get-string column="vol"/></vol>
        <año><esql:get-string column="fecha"/></año>   
      </publicacion>
    </esql:row-results>
  </esql:results>

<!--Libro-->
  <esql:query>
  select autores, titulo, edit, isbn from libros where rfc='ZAHH600211'
  </esql:query>
  <esql:results>
    <esql:row-results>
      <libro>
        <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
        <autor><conv:charset-convert><esql:get-string column="autores"/></conv:charset-convert></autor>
	<isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	<editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
      </libro>
    </esql:row-results>
  </esql:results>

<!--Capitulo-->
  <esql:query>
    select editores, titulo, autores2, edit, pags, periodo, isbn from capitulos_lib where rfc='ZAHH600211'
  </esql:query>
  <esql:results>
    <esql:row-results>
      <capitulo>
        <titulo><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></titulo>
	<autor><conv:charset-convert><esql:get-string column="autores2"/></conv:charset-convert></autor>
	<paginas><conv:charset-convert><esql:get-string column="pags"/></conv:charset-convert></paginas> 
      <libro>
        <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
	<autor><conv:charset-convert><esql:get-string column="editores"/></conv:charset-convert></autor>
	<isbn><conv:charset-convert><esql:get-string column="isbn"/></conv:charset-convert></isbn>
	<editorial><conv:charset-convert><esql:get-string column="edit"/></conv:charset-convert></editorial>
      </libro>
        <año><esql:get-string column="periodo"/></año>   
      </capitulo>
    </esql:row-results>
  </esql:results>

<!--Proyectos-->
  <esql:query>
  select nombre, ini_p, fin_p, don_pat, logros from proyectos where rfc='ZAHH600211'
  </esql:query>
  <esql:results>
    <esql:row-results>
      <proyecto>
        <nombre><conv:charset-convert><esql:get-string column="nombre"/></conv:charset-convert></nombre>
            <descripcion><conv:charset-convert><esql:get-string column="logros"/></conv:charset-convert></descripcion>
            <patrocinador><conv:charset-convert><esql:get-string column="don_pat"/></conv:charset-convert></patrocinador>
            <fecha>
               <fecha_inicial><esql:get-string column="ini_p"/></fecha_inicial>
	       <fecha_final><esql:get-string column="fin_p"/></fecha_final> 
            </fecha>
          </proyecto>
       </esql:row-results> 
    </esql:results>     

<!-- Propiedad Industrial/Intelectual-->
    <esql:query>
      select titulo,tipo_pat,registro from patentes where rfc='ZAHH600211'
    </esql:query>
    <esql:results>
       <esql:row-results>
          <patentes>
            <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
            <tipo_pat><conv:charset-convert><esql:get-string column="tipo_pat"/></conv:charset-convert></tipo_pat> 
            <registro><conv:charset-convert><esql:get-string column="registro"/></conv:charset-convert></registro>
          </patentes>
       </esql:row-results>
    </esql:results>

<!--Tesis dirigidas-->
 <esql:query>
<!--
   select * from frh where rfc='ZAHH600211' and (tipo_part=1 or tipo_part=2) 
-->
select frh.nombre_est,frh.inst,nivel_frh.nivel,frh.titulo,frh.fecha from frh,nivel_frh where (rfc='ZAHH600211') and (tipo_part=1 or tipo_part=2) and (frh.nivel=nivel_frh.cla_niv)

 </esql:query>
 <esql:results>
   <esql:row-results>
     <tesis>              
       <alumno><conv:charset-convert><esql:get-string column="nombre_est"/></conv:charset-convert></alumno>
       <institucion><conv:charset-convert><esql:get-string column="inst"/></conv:charset-convert></institucion>
       <nivel><conv:charset-convert><esql:get-string column="nivel"/></conv:charset-convert></nivel>
       <titulo><conv:charset-convert><esql:get-string column="titulo"/></conv:charset-convert></titulo>
       <fecha><conv:charset-convert><esql:get-string column="fecha"/></conv:charset-convert></fecha>
     </tesis>
   </esql:row-results> 
 </esql:results>     


 <esql:no-results>
   <p>No hay datos</p>
 </esql:no-results>
 </esql:execute-query>
</esql:connection>


</page>

</xsp:page>
