5 Purpose: Create email address lookup.
8 Copyright: (c) 2007 Mike Wetherell
9 Licence: wxWindows licence
11 Usage: xsltproc -html tools/email.xsl http://svn.wxwidgets.org/users.cgi \
12 > config/include/wx-devs.xml
15 <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
17 <xsl:param name="at"> -at- </xsl:param>
19 <xsl:output indent="yes"/>
21 <xsl:template match="/">
23 <xsl:apply-templates select="//table/tr">
24 <xsl:sort select="normalize-space(td[1])"/>
25 </xsl:apply-templates>
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])"/>
33 <xsl:if test="$id and not(contains($id, ' ')) and contains($email, $at)">
35 <xsl:value-of select="$email"/>