Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add ant targets to generate and push member list for website
See ukf/ukf-meta#258 for details
- Loading branch information
Alex Stuart
committed
Mar 29, 2021
1 parent
926dd55
commit 68956dc
Showing
3 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsl:stylesheet version="1.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:members="http://ukfederation.org.uk/2007/01/members" | ||
exclude-result-prefixes="xsl xsi members" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
|
||
<xsl:output method="html" encoding="UTF-8" omit-xml-declaration="yes"/> | ||
|
||
<xsl:variable name="memberCount" select="count(//members:Member)" /> | ||
|
||
<xsl:template match="members:Members"> | ||
<h1>UK federation member organisations (<xsl:value-of select="$memberCount" />)</h1> | ||
<xsl:text> </xsl:text> | ||
<table width="80%" cellpadding="4" cellspacing="0" border="1" class="tiger"> | ||
<tr valign="top"><th align="left">Member Organisation</th></tr> | ||
<xsl:text> </xsl:text> | ||
<xsl:apply-templates /> | ||
</table> | ||
</xsl:template> | ||
|
||
<xsl:template match="members:Member"> | ||
<tr class="ind1" valign="top"> | ||
<xsl:text> </xsl:text> | ||
<td align="left"> | ||
<xsl:text> </xsl:text> | ||
<xsl:value-of select="members:Name"/> | ||
<xsl:text> </xsl:text> | ||
<xsl:choose> | ||
<xsl:when test="members:NameComment"> | ||
<br /> | ||
<xsl:text>(</xsl:text> | ||
<xsl:value-of select="members:NameComment"/> | ||
<xsl:text>) </xsl:text> | ||
</xsl:when> | ||
</xsl:choose> | ||
</td> | ||
</tr> | ||
</xsl:template> | ||
|
||
<xsl:template match="text()"> | ||
<!-- do nothing --> | ||
</xsl:template> | ||
</xsl:stylesheet> |