svn commit: r42161 - projects/entities/share/xsl
Rene Ladan
rene at FreeBSD.org
Fri Jul 5 18:45:42 UTC 2013
Author: rene
Date: Fri Jul 5 18:45:42 2013
New Revision: 42161
URL: http://svnweb.freebsd.org/changeset/doc/42161
Log:
Fix rendering of <email> elements in books/articles.
Modified:
projects/entities/share/xsl/freebsd-xhtml-common.xsl
Modified: projects/entities/share/xsl/freebsd-xhtml-common.xsl
==============================================================================
--- projects/entities/share/xsl/freebsd-xhtml-common.xsl Fri Jul 5 18:30:43 2013 (r42160)
+++ projects/entities/share/xsl/freebsd-xhtml-common.xsl Fri Jul 5 18:45:42 2013 (r42161)
@@ -6,6 +6,7 @@
version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/transitional"
xmlns:str="http://exslt.org/strings"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
extension-element-prefixes="str"
exclude-result-prefixes="#default">
@@ -162,6 +163,20 @@
<xsl:call-template name="svnref.genlink"/>
</xsl:template>
+ <xsl:template match="xhtml:email">
+ <code class="email">
+ <xsl:text><</xsl:text>
+ <a class="email">
+ <xsl:attribute name="href">
+ <xsl:text>mailto:</xsl:text>
+ <xsl:value-of select="."/>
+ </xsl:attribute>
+ <xsl:value-of select="."/>
+ </a>
+ <xsl:text>></xsl:text>
+ </code>
+ </xsl:template>
+
<xsl:template name="generate.citerefentry.link">
<xsl:text>http://www.FreeBSD.org/cgi/man.cgi?query=</xsl:text>
<xsl:value-of select="refentrytitle"/>
More information about the svn-doc-projects
mailing list