]> 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 8323ecf0ef8e98c288ed3adb6f3c8792ebfde774..385465cca96761a55200acd5841c59954ef12ef8 100644 (file)
@@ -3,7 +3,9 @@
 <xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-<xsl:output method="html"/>
+<xsl:import href="common.xsl"/>
+
+<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:apply-templates/>
+    <xsl:apply-templates/>
   </body>
  </html>
 </xsl:template>
@@ -72,7 +72,7 @@
  <xsl:if test="url">
   <p>
    <xsl:text>Home Page: </xsl:text>
-   <a href="{url}">
+   <a target="_top" href="{url}">
     <xsl:value-of select="url"/>
    </a>
   </p>
    <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>