You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2004/09/05 03:54:24 UTC
svn commit: rev 43357 - forrest/trunk/src/core/context/skins/common/xslt/html
Author: crossley
Date: Sat Sep 4 18:54:23 2004
New Revision: 43357
Modified:
forrest/trunk/src/core/context/skins/common/xslt/html/document2html.xsl
Log:
Enable the "jump|fork" functionality of window control by
using class attribute on links.
Forrest still has document-v13 as the intermediate format,
hence document-v20 docs are first transformed to document-v13
via the docv20todocv13.xsl stylesheet. This transforms <a> into <link>
which are then handled via this special "link" match.
Issue: FOR-245
Submitted by: Rick Tessner
Modified: forrest/trunk/src/core/context/skins/common/xslt/html/document2html.xsl
==============================================================================
--- forrest/trunk/src/core/context/skins/common/xslt/html/document2html.xsl (original)
+++ forrest/trunk/src/core/context/skins/common/xslt/html/document2html.xsl Sat Sep 4 18:54:23 2004
@@ -161,7 +161,14 @@
<xsl:template match="link">
<xsl:apply-templates select="@id"/>
- <a href="{@href}">
+ <a>
+ <xsl:if test="@class='jump'">
+ <xsl:attribute name="target">_top</xsl:attribute>
+ </xsl:if>
+ <xsl:if test="@class='fork'">
+ <xsl:attribute name="target">_blank</xsl:attribute>
+ </xsl:if>
+ <xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</a>
</xsl:template>