]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/common.xsl
Qualification now always used before name and surname.
[helm.git] / helm / mowgli / home / xsl / common.xsl
index 2308630f5956842f32f07db6b3f3ef415caee2a6..da0c1b01a1d33f722a7ade5038ff5a310e355f3c 100644 (file)
 
 <xsl:template name="person-name">
   <xsl:param name="file" select="''"/>
-  <xsl:value-of select="document(concat('../xml/people/',$file,'.xml'))/person/name"/>
+  <xsl:variable name="person" select="document(concat('../xml/people/',$file,'.xml'))/person"/>
+  <xsl:if test="$person/qualification">
+   <xsl:value-of select="$person/qualification"/>
+   <xsl:value-of select="' '"/>
+  </xsl:if>
+  <xsl:value-of select="$person/name"/>
   <xsl:value-of select="' '"/>
-  <xsl:value-of select="document(concat('../xml/people/',$file,'.xml'))/person/surname"/>
+  <xsl:value-of select="$person/surname"/>
 </xsl:template>
 
 </xsl:stylesheet>