5 Purpose: Create email address lookup.
7 Copyright: (c) 2007 Mike Wetherell
8 Licence: wxWindows licence
10 Usage: xsltproc -html tools/email.xsl http://svn.wxwidgets.org/users.cgi \
11 > config/include/wx-devs.xml
14 <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
16 <xsl:param name="at"> -at- </xsl:param>
18 <xsl:output indent="yes"/>
20 <xsl:template match="/">
22 <xsl:apply-templates select="//table/tr">
23 <xsl:sort select="normalize-space(td[1])"/>
24 </xsl:apply-templates>
28 <xsl:template match="tr">
29 <xsl:variable name="id" select="normalize-space(td[1])"/>
30 <xsl:variable name="email" select="normalize-space(td[3])"/>
32 <xsl:if test="$id and not(contains($id, ' ')) and contains($email, $at)">
34 <xsl:value-of select="$email"/>