diff options
author | Reid <reidyaro@gmail.com> | 2016-02-15 23:15:35 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2016-02-15 23:16:16 +0100 |
commit | 95a6790328734b151399491e97d65494609a53cb (patch) | |
tree | a19c02b89073e0ebe040b562461b71bc8d1247c8 /contrib_xsl | |
parent | af3f61a4eb113088d2007f8979c03110afa1c188 (diff) | |
download | evol-tools-95a6790328734b151399491e97d65494609a53cb.tar.gz evol-tools-95a6790328734b151399491e97d65494609a53cb.tar.bz2 evol-tools-95a6790328734b151399491e97d65494609a53cb.tar.xz evol-tools-95a6790328734b151399491e97d65494609a53cb.zip |
Add xsl file to convert the contributors.xml into about-server.txt.
Diffstat (limited to 'contrib_xsl')
-rw-r--r-- | contrib_xsl/about-server.xsl | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/contrib_xsl/about-server.xsl b/contrib_xsl/about-server.xsl new file mode 100644 index 0000000..29e9a48 --- /dev/null +++ b/contrib_xsl/about-server.xsl @@ -0,0 +1,69 @@ +<?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:text>.<- @@index|<<Back to Index>>@@

</xsl:text> + <xsl:text>@@http://evolonline.org/|<<Official site:>> http://evolonline.org@@
</xsl:text> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="evol"> + <xsl:text>
##3---------------------------
</xsl:text> + <xsl:text>##3-- <<Evol Online Contributors>> --
</xsl:text> + <xsl:text>##3---------------------------

</xsl:text> + + <xsl:apply-templates select="contributor"/> + </xsl:template> + + <xsl:template match="tmw-ufb"> + <xsl:text>
##3---------------------------
</xsl:text> + <xsl:text>##3-- <<Unknown Flying Bullet Contributors>> --
</xsl:text> + <xsl:text>##3---------------------------

</xsl:text> + + <xsl:apply-templates select="contributor"/> + </xsl:template> + + <xsl:template match="other"> + <xsl:text>
##3---------------------------
</xsl:text> + <xsl:text>##3-- <<Related Community>> --
</xsl:text> + <xsl:text>##3---------------------------

</xsl:text> + + <xsl:apply-templates select="community"/> + </xsl:template> + + <xsl:template match="contributor"> + <xml:text>##9<xsl:value-of select="@nick"/> </xml:text> + <xsl:if test="@name"> + <xsl:text> (</xsl:text> + <xsl:value-of select="@name"/> + <xsl:text>)</xsl:text> + </xsl:if> + <xsl:if test="@mailid"> + <xsl:text> <</xsl:text> + <xsl:value-of select="@mailid"/> + <xsl:text> </xsl:text> + <xsl:value-of select="@mailserver"/> + <xsl:text>></xsl:text> + </xsl:if> + <xsl:text>
</xsl:text> + </xsl:template> + + <xsl:template match="community"> + <xsl:text>[@@</xsl:text> + <xsl:value-of select="@site"/> + <xsl:text>|<<</xsl:text> + <xsl:value-of select="@name"/> + <xsl:text>>> </xsl:text> + <xsl:value-of select="@site"/> + <xsl:text>@@]
</xsl:text> + </xsl:template> + +</xsl:stylesheet> + |