Author: crossley Date: Wed Oct 8 16:59:57 2008 New Revision: 703026 URL: http://svn.apache.org/viewvc?rev=703026&view=rev Log: Do not show mailto: links in references section. Contributed by: Pablo Barrera Issue: FOR-1125, FOR-1126
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.tei/resources/stylesheets/document-to-teiLite.xsl forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/reference-links.ft Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.tei/resources/stylesheets/document-to-teiLite.xsl URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.tei/resources/stylesheets/document-to-teiLite.xsl?rev=703026&r1=703025&r2=703026&view=diff ============================================================================== --- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.tei/resources/stylesheets/document-to-teiLite.xsl (original) +++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.tei/resources/stylesheets/document-to-teiLite.xsl Wed Oct 8 16:59:57 2008 @@ -155,13 +155,13 @@ </xsl:choose> </xsl:template> - <!-- FIXME: remove mailto field --> <xsl:template name="references"> <div> <head>References</head> <ul> <xsl:for-each select="//link[generate-id(.) = - generate-id(key('references', concat(name(), '::', .))[1])]"> + generate-id(key('references', concat(name(), '::', .))[1]) + and not (contains(@href, 'mailto:'))]"> <xsl:sort select ="."/> <li> <a> Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/reference-links.ft URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/reference-links.ft?rev=703026&r1=703025&r2=703026&view=diff ============================================================================== --- forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/reference-links.ft (original) +++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/reference-links.ft Wed Oct 8 16:59:57 2008 @@ -37,7 +37,8 @@ <ul> <xsl:comment>+ |start reference-links +</xsl:comment> <xsl:for-each select="//link[generate-id(.) = - generate-id(key('references', concat(name(), '::', .))[1])]"> + generate-id(key('references', concat(name(), '::', .))[1]) + and not (contains(@href, 'mailto:'))]"> <xsl:sort select="."/> <li> <a>