]> git.saurik.com Git - wxWidgets.git/blame - build/buildbot/tools/email.xsl
Remove the unused code instead of commenting it out.
[wxWidgets.git] / build / buildbot / tools / email.xsl
CommitLineData
42d93b83
MW
1<?xml version="1.0"?>
2
3<!--
4 Name: email.xsl
5 Purpose: Create email address lookup.
6 Author: Mike Wetherell
7 RCS-ID: $Id$
8 Copyright: (c) 2007 Mike Wetherell
526954c5 9 Licence: wxWindows licence
42d93b83
MW
10
11 Usage: xsltproc -html tools/email.xsl http://svn.wxwidgets.org/users.cgi \
12 > config/include/wx-devs.xml
13-->
14
15<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
16
17<xsl:param name="at"> -at- </xsl:param>
18
19<xsl:output indent="yes"/>
20
21<xsl:template match="/">
22 <emaillookup>
0c2d0fcf
MW
23 <xsl:apply-templates select="//table/tr">
24 <xsl:sort select="normalize-space(td[1])"/>
25 </xsl:apply-templates>
42d93b83
MW
26 </emaillookup>
27</xsl:template>
28
29<xsl:template match="tr">
30 <xsl:variable name="id" select="normalize-space(td[1])"/>
31 <xsl:variable name="email" select="normalize-space(td[3])"/>
32
33 <xsl:if test="$id and not(contains($id, ' ')) and contains($email, $at)">
34 <email id="{$id}">
35 <xsl:value-of select="$email"/>
36 </email>
37 </xsl:if>
38</xsl:template>
39
40</xsl:transform>