3 <xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
6 <xsl:import href="common.xsl"/>
8 <xsl:output method="xml"/>
10 <xsl:template match="/">
14 <xsl:call-template name="qualified-name">
15 <xsl:with-param name="qualification"
16 select="person/qualification"/>
17 <xsl:with-param name="name"
18 select="person/name"/>
19 <xsl:with-param name="surname"
20 select="person/surname"/>
25 <xsl:apply-templates/>
30 <xsl:template name="qualified-name">
31 <xsl:param name="qualification" select="/.."/>
32 <xsl:param name="name"/>
33 <xsl:param name="surname"/>
34 <xsl:if test="qualification">
35 <xsl:value-of select="$qualification"/>
36 <xsl:text> </xsl:text>
38 <xsl:value-of select="$name"/>
39 <xsl:text> </xsl:text>
40 <xsl:value-of select="$surname"/>
43 <xsl:template match="person">
45 <xsl:call-template name="qualified-name">
46 <xsl:with-param name="qualification"
47 select="qualification"/>
48 <xsl:with-param name="name"
50 <xsl:with-param name="surname"
55 <xsl:when test="count(position) > 1">
57 <xsl:for-each select="position">
58 <li><xsl:value-of select="."/></li>
62 <xsl:when test="count(position) = 1">
63 <p><xsl:value-of select="position"/></p>
67 <xsl:text>e-mail: </xsl:text>
68 <a href="mailto:{e-mail}">
69 <xsl:value-of select="e-mail"/>
74 <xsl:text>Home Page: </xsl:text>
75 <a target="_top" href="{url}">
76 <xsl:value-of select="url"/>
80 <xsl:if test="address">
82 <xsl:text>Address: </xsl:text>
83 <xsl:value-of select="address"/>
86 <xsl:if test="telephone">
88 <xsl:text>Telephone number: </xsl:text>
89 <xsl:value-of select="telephone"/>
94 <xsl:text>Fax number: </xsl:text>
95 <xsl:value-of select="fax"/>
98 <xsl:if test="curriculum">
99 <h2>Short Curriculum Vitae:</h2>
100 <xsl:copy-of select="curriculum/*"/>
102 <xsl:if test="research-interests">
103 <h2>Research Interests:</h2>
104 <xsl:copy-of select="research-interests/*"/>
106 <xsl:if test="selected-publication">
107 <h2>Selected Publications:</h2>
109 <xsl:for-each select="selected-publication">
111 <a href="../../publications/{@file}.html">
112 <xsl:value-of select="document(concat('../xml/publications/',@file,'.xml'))/publication/title"/>