summaryrefslogtreecommitdiff
path: root/contrib_xsl
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2016-02-16 01:01:32 +0100
committerReid <reidyaro@gmail.com>2016-02-16 01:01:32 +0100
commite9fc92e06e883cc189ebd4309ca95553e696cbab (patch)
tree2fea311003a0143a28cecaf7b66c58d99881a88a /contrib_xsl
parentcc33920268d039d198e3abe8ba2b5c4c8978a33d (diff)
downloadevol-tools-e9fc92e06e883cc189ebd4309ca95553e696cbab.tar.gz
evol-tools-e9fc92e06e883cc189ebd4309ca95553e696cbab.tar.bz2
evol-tools-e9fc92e06e883cc189ebd4309ca95553e696cbab.tar.xz
evol-tools-e9fc92e06e883cc189ebd4309ca95553e696cbab.zip
Add wiki contributor list XSLT.
Diffstat (limited to 'contrib_xsl')
-rw-r--r--contrib_xsl/wiki.xsl86
1 files changed, 86 insertions, 0 deletions
diff --git a/contrib_xsl/wiki.xsl b/contrib_xsl/wiki.xsl
new file mode 100644
index 0000000..3fd1566
--- /dev/null
+++ b/contrib_xsl/wiki.xsl
@@ -0,0 +1,86 @@
+<?xml version="1.0"?>
+<!-- Author: Reid
+Copyright (C) 2016 Evol Online -->
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ >
+
+ <xsl:output method="text" indent="no"/>
+ <xsl:strip-space elements="*"/>
+
+ <xsl:template match="contributors">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="evol">
+ <xsl:text>^ Evol Online Contributors ^^&#xa;</xsl:text>
+ <xsl:text>^ Nickname ^ Real Name / Email ^&#xa;</xsl:text>
+
+ <xsl:apply-templates select="contributor"/>
+ </xsl:template>
+
+ <xsl:template match="tmw-ufb">
+ <xsl:text>^ Unknown Flying Bullet Contributors ^^&#xa;</xsl:text>
+ <xsl:text>^ Nickname ^ Real Name / Email ^&#xa;</xsl:text>
+
+ <xsl:apply-templates select="contributor"/>
+ </xsl:template>
+
+ <xsl:template match="other">
+ <xsl:text>^ Related Community Contributors ^^&#xa;</xsl:text>
+ <xsl:text>^ Name ^ Link ^&#xa;</xsl:text>
+
+ <xsl:apply-templates select="community"/>
+ </xsl:template>
+
+ <xsl:template match="contributor">
+
+ <xsl:text>|</xsl:text>
+ <xsl:value-of select="@nick"/>
+
+ <xsl:choose>
+ <xsl:when test="@mailid">
+ <xsl:text> |[[mailto:</xsl:text>
+ <xsl:value-of select="@mailid"/>
+ <xsl:text>@</xsl:text>
+ <xsl:value-of select="@mailserver"/>
+ <xsl:text>| </xsl:text>
+ <xsl:choose>
+ <xsl:when test="@name">
+ <xsl:value-of select="@name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@nick"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>]] |</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text> |</xsl:text>
+ <xsl:choose>
+ <xsl:when test="@name">
+ <xsl:value-of select="@name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>No Data</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text> |</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <xsl:text>&#xa;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="community">
+ <xsl:text>|</xsl:text>
+ <xsl:value-of select="@name"/>
+ <xsl:text> |[[</xsl:text>
+ <xsl:value-of select="@site"/>
+ <xsl:text>|</xsl:text>
+ <xsl:value-of select="@name"/>
+ <xsl:text>]] |&#xa;</xsl:text>
+ </xsl:template>
+
+</xsl:stylesheet>
+