<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>