forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: rev 43357 - forrest/trunk/src/core/context/skins/common/xslt/html
Date Sun, 05 Sep 2004 01:54:24 GMT
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>

Mime
View raw message