You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by cr...@apache.org on 2002/06/03 05:25:02 UTC

cvs commit: xml-forrest/src/resources/skins/bert/xslt/html document2html.xsl

crossley    2002/06/02 20:25:02

  Modified:    src/resources/skins/bert/xslt/html document2html.xsl
  Log:
  Restored the behaviour of jump and fork. This was lost somewhere between
  the original Cocoon stylesheets and Forrest.
  
  Revision  Changes    Path
  1.2       +7 -5      xml-forrest/src/resources/skins/bert/xslt/html/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/bert/xslt/html/document2html.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- document2html.xsl	31 May 2002 13:19:05 -0000	1.1
  +++ document2html.xsl	3 Jun 2002 03:25:02 -0000	1.2
  @@ -97,16 +97,18 @@
         </div>
       </div>
     </xsl:template>
  -  <!--
  -  <xsl:template match="link | jump | fork">
  --->
  -  <xsl:template match="link | fork">
  +  <xsl:template match="link">
       <a href="{@href}">
         <xsl:apply-templates/>
       </a>
     </xsl:template>
     <xsl:template match="jump">
  -    <a href="#{@href}">
  +    <a href="{@href}" target="_top">
  +      <xsl:apply-templates/>
  +    </a>
  +  </xsl:template>
  +  <xsl:template match="fork">
  +    <a href="{@href}" target="_blank">
         <xsl:apply-templates/>
       </a>
     </xsl:template>