]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/person.xsl
ocaml 3.09 transition
[helm.git] / helm / mowgli / home / xsl / person.xsl
index bc2736357f4b0f46dba3b8dcfaab455833b1ff60..385465cca96761a55200acd5841c59954ef12ef8 100644 (file)
@@ -5,7 +5,7 @@
 
 <xsl:import href="common.xsl"/>
 
-<xsl:output method="html"/>
+<xsl:output method="xml"/>
 
 <xsl:template match="/">
  <html>
                      select="person/surname"/>
     </xsl:call-template>
    </title>
-   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-   <link rel="stylesheet" href="../../../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-    <xsl:call-template name="head">
-     <xsl:with-param name="path_to_top" select="'../..'"/>
-    </xsl:call-template>
     <xsl:apply-templates/>
-    <xsl:call-template name="foot">
-     <xsl:with-param name="path_to_top" select="'../..'"/>
-    </xsl:call-template>
   </body>
  </html>
 </xsl:template>
    <xsl:value-of select="telephone"/>
   </p>
  </xsl:if>
+ <xsl:if test="fax">
+  <p>
+   <xsl:text>Fax number: </xsl:text>
+   <xsl:value-of select="fax"/>
+  </p>
+ </xsl:if>
  <xsl:if test="curriculum">
   <h2>Short Curriculum Vitae:</h2>
   <xsl:copy-of select="curriculum/*"/>
    <xsl:for-each select="selected-publication">
     <li>
      <a href="../../publications/{@file}.html">
-      <xsl:value-of select="@file"/>
+      <xsl:value-of select="document(concat('../xml/publications/',@file,'.xml'))/publication/title"/>
      </a>
     </li>
    </xsl:for-each>