]> matita.cs.unibo.it Git - helm.git/commitdiff
Qualification now always used before name and surname.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 13 Feb 2002 17:49:10 +0000 (17:49 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 13 Feb 2002 17:49:10 +0000 (17:49 +0000)
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>