diff options
author | Rene Ladan <rene@FreeBSD.org> | 2013-07-09 21:15:47 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2013-07-09 21:15:47 +0000 |
commit | 1d9bea10ede79dea54fd27f678d7a79ebeedfcff (patch) | |
tree | 390124939ece931519dcf28f7c370be5402041ea /share/xsl/freebsd-xhtml-common.xsl | |
parent | ef5f908611cf3ca89fc760123b71050250de917b (diff) | |
download | doc-1d9bea10ede79dea54fd27f678d7a79ebeedfcff.tar.gz doc-1d9bea10ede79dea54fd27f678d7a79ebeedfcff.zip |
Merge the projects/entities branch into head/
The primary purposes are to clean up duplicated author definitions in
both share/xml/authors.ent and share/xml/developers.ent, and as a added
bonus simplify writing up author names/email addresses in web pages.
Apart from merging developers.ent into authors.ent, removing the former,
and updating the Committers Guide there should be little user-visible changes:
- a.portmgr renamed to a.portmgr.members
- a.doceng renamed to a.doceng.members
- team.re renamed to a.re.members.email and moved from
share/xml/freebsd.ent to share/xml/authors.ent
- a.core updated and moved from share/xml/mailing-lists.ent to
share/xml/teams.ent
- share/pgpkeys/{addkey.sh|README} updated
Translations are untouched except for build fixes.
Approved by: doceng (gjb)
Approved by: gjb (mentor)
Notes
Notes:
svn path=/head/; revision=42226
Diffstat (limited to 'share/xsl/freebsd-xhtml-common.xsl')
-rw-r--r-- | share/xsl/freebsd-xhtml-common.xsl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/share/xsl/freebsd-xhtml-common.xsl b/share/xsl/freebsd-xhtml-common.xsl index b8fbe90777..0a3db4ec30 100644 --- a/share/xsl/freebsd-xhtml-common.xsl +++ b/share/xsl/freebsd-xhtml-common.xsl @@ -74,6 +74,36 @@ <xsl:value-of select="."/> </xsl:template> + <!-- Customization to allow role="nolink" --> + <xsl:template match="email"> + <xsl:call-template name="inline.monoseq"> + <xsl:with-param name="content"> + <xsl:if test="not($email.delimiters.enabled = 0)"> + <xsl:text><</xsl:text> + </xsl:if> + <xsl:choose> + <xsl:when test="@role='nolink'"> + <xsl:apply-templates/> + </xsl:when> + + <xsl:otherwise> + <a> + <xsl:apply-templates select="." mode="common.html.attributes"/> + <xsl:attribute name="href"> + <xsl:text>mailto:</xsl:text> + <xsl:value-of select="."/> + </xsl:attribute> + <xsl:apply-templates/> + </a> + </xsl:otherwise> + </xsl:choose> + <xsl:if test="not($email.delimiters.enabled = 0)"> + <xsl:text>></xsl:text> + </xsl:if> + </xsl:with-param> + </xsl:call-template> + </xsl:template> + <!-- Add title class to emitted hX --> <xsl:template match="bridgehead"> <xsl:variable name="container" select="(ancestor::appendix|ancestor::article|ancestor::bibliography| |