2 <!DOCTYPE xsl:stylesheet [
<!ENTITY % xsldoc.ent SYSTEM
"./xsldoc.ent"> %xsldoc.ent; ]
>
3 <!--#############################################################################
4 | $Id: email.mod.xsl,v 1.6 2003/12/28 10:43:16 j-devenish Exp $
5 |- #############################################################################
6 | $Author: j-devenish $
7 + ############################################################################## -->
10 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
11 xmlns:
doc=
"http://nwalsh.com/xsl/documentation/1.0"
12 exclude-result-prefixes=
"doc" version='
1.0'
>
14 <doc:reference id=
"email" xmlns=
"">
16 <releaseinfo role=
"meta">
17 $Id: email.mod.xsl,v
1.6 2003/
12/
28 10:
43:
16 j-devenish Exp $
24 <year>2000</year><year>2001</year><year>2002</year><year>2003</year>
25 <holder>Ramon Casellas
</holder>
28 <doc:revision rcasver=
"1.6">&rev_2003_05;</doc:revision>
31 <title>E-mail Addreses
<filename>email.mod.xsl
</filename></title>
33 <para>The file
<filename>email.mod.xsl
</filename> contains the
34 XSL template for
<doc:db>email
</doc:db>.
</para>
38 <doc:template basename=
"email" match=
"email" xmlns=
"">
39 <refpurpose>Process
<doc:db>email
</doc:db> elements
</refpurpose>
42 Constructs a URL from the given e-mail address and
43 formats it with the template for
<doc:db>ulink
</doc:db>.
47 <para>As for the
<xref linkend=
"template.ulink"/> template.
</para>
50 <para>When a an
<doc:db>email
</doc:db> is a child of an
<doc:db>address
</doc:db>,
51 it will be formatted along with all
<quote>verbatim
</quote> address text. In this
52 case, it might not be hyperlinked.
</para>
55 <simplelist type='inline'
>
63 <listitem><simpara><xref linkend=
"template.ulink"/></simpara></listitem>
65 <listitem><simpara>&mapping;</simpara></listitem>
70 <xsl:template match=
"email">
71 <xsl:call-template name=
"ulink">
72 <xsl:with-param name=
"url" select=
"concat('mailto:',.)"/>
73 <xsl:with-param name=
"content" select=
"."/>