Browse Source

Switched members list to use single people.xml file.

svn path=/trunk/; revision=11255
tags/stw2018
Reinhard Müller 11 years ago
parent
commit
6dcb6fd351
2 changed files with 28 additions and 44 deletions
  1. 1
    1
      about/members.sources
  2. 27
    43
      about/members.xsl

+ 1
- 1
about/members.sources View File

@@ -1 +1 @@
about/*/person:global
about/people/people:global

+ 27
- 43
about/members.xsl View File

@@ -1,63 +1,47 @@
<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="ISO-8859-1" indent="yes" />
<xsl:output method="xml" encoding="ISO-8859-1" indent="yes"/>

<!-- Fill dynamic content -->
<xsl:template match="dynamic-content">
<xsl:element name="ul">
<xsl:for-each select="/html/set/person [@member = 'yes']">
<xsl:sort select="@id" />
<xsl:for-each select="/html/set/person[@member='yes']">
<xsl:sort select="@id"/>
<xsl:element name="li">
<xsl:element name="p">
<!-- Name; if link is given show as link -->
<xsl:element name="b">
<xsl:choose>
<xsl:when test="link != ''">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:value-of select="name"/>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="name"/>
</xsl:otherwise>
</xsl:choose>
</xsl:element>

<!-- Name; if link is given show as link -->
<xsl:element name="b">
<xsl:choose>
<xsl:when test="link != ''">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="link" />
</xsl:attribute>
<xsl:value-of select="name" />
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="name" />
</xsl:otherwise>
</xsl:choose>
<!-- E-mail -->
<xsl:if test="email != ''">
<xsl:text> &lt;</xsl:text>
<xsl:element name="i">
<xsl:value-of select="email"/>
</xsl:element>
<xsl:text>&gt;</xsl:text>
</xsl:if>

<!-- Country -->
<xsl:if test="country != ''">
<xsl:text> - </xsl:text>
<xsl:apply-templates select="country/node()" />
</xsl:if>

<!-- Function -->
<xsl:if test="function != ''">
<xsl:text> - </xsl:text>
<xsl:apply-templates select="function/node()" />
</xsl:if>

<xsl:element name="br" />

<!-- E-mail -->
<xsl:if test="email != ''">
<xsl:element name="i">
<xsl:value-of select="email" />
</xsl:element>
<xsl:element name="br" />
</xsl:if>

</xsl:element>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template>

<!-- Do not copy <set> to output at all -->
<xsl:template match="set" />
<xsl:template match="set"/>

<!-- For all other nodes, copy verbatim -->
<xsl:template match="@*|node()" priority="-1">

Loading…
Cancel
Save