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="html"/>
10 <xsl:template match="people">
13 <title>People Directory</title>
14 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
15 <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
18 <xsl:call-template name="head">
19 <xsl:with-param name="path_to_top" select="'.'"/>
23 <table border="0" width="100%">
27 <h3><a name="#site">By Site</a></h3>
28 <xsl:apply-templates select="from">
29 <xsl:sort select="@site"/>
30 </xsl:apply-templates>
35 <h3><a name="#alpha">Alphabetical</a></h3>
36 <xsl:apply-templates select="from/person" mode="alphabetical">
37 <xsl:sort select="@file"/>
38 </xsl:apply-templates>
44 <xsl:call-template name="foot">
45 <xsl:with-param name="path_to_top" select="'.'"/>
51 <xsl:template match="person">
52 <xsl:variable name="person" select="document(concat('../xml/people/',../@site,'/',@file,'.xml'))/person"/>
53 <a href="people/{../@site}/{@file}.html">
54 <xsl:call-template name="person-name">
55 <xsl:with-param name="file" select="concat(../@site,'/',@file)"/>
61 <xsl:template match="person" mode="alphabetical">
62 <xsl:variable name="person" select="document(concat('../xml/people/',../@site,'/',@file,'.xml'))/person"/>
63 <a href="people/{../@site}/{@file}.html">
64 <xsl:value-of select="$person/surname"/>
65 <xsl:text>, </xsl:text>
66 <xsl:value-of select="$person/name"/>
71 <xsl:template match="name">
72 <xsl:param name="file" select="''"/>
73 <h4><a href="sites/{$file}.html"><xsl:value-of select="."/></a></h4>
76 <xsl:template match="from">
77 <xsl:variable name="site" select="document(concat('../xml/sites/',@site,'.xml'))/site"/>
78 <xsl:apply-templates select="$site/name | $site/subsite[1]/name">
79 <xsl:with-param name="file" select="@site"/>
80 </xsl:apply-templates>
81 <xsl:apply-templates select="person"/>