]> git.saurik.com Git - wxWidgets.git/blob - build/buildbot/tools/email.xsl
fix default values after types were changed
[wxWidgets.git] / build / buildbot / tools / email.xsl
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
9 Licence: wxWidgets licence
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>
23 <xsl:apply-templates select="//table/tr"/>
24 </emaillookup>
25 </xsl:template>
26
27 <xsl:template match="tr">
28 <xsl:variable name="id" select="normalize-space(td[1])"/>
29 <xsl:variable name="email" select="normalize-space(td[3])"/>
30
31 <xsl:if test="$id and not(contains($id, ' ')) and contains($email, $at)">
32 <email id="{$id}">
33 <xsl:value-of select="$email"/>
34 </email>
35 </xsl:if>
36 </xsl:template>
37
38 </xsl:transform>