cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject cvs commit: xml-cocoon2/src/webapp/stylesheets/page simple-page2html.xsl
Date Sun, 11 Aug 2002 20:14:30 GMT
haul        2002/08/11 13:14:30

  Modified:    src/webapp/stylesheets/page Tag: cocoon_2_0_3_branch
                        simple-page2html.xsl
  Log:
  Add parameter for path to view-source
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +6 -1      xml-cocoon2/src/webapp/stylesheets/page/Attic/simple-page2html.xsl
  
  Index: simple-page2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/stylesheets/page/Attic/simple-page2html.xsl,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- simple-page2html.xsl	3 Jan 2002 12:31:46 -0000	1.1
  +++ simple-page2html.xsl	11 Aug 2002 20:14:30 -0000	1.1.2.1
  @@ -3,6 +3,7 @@
   <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   
     <xsl:param name="view-source"/>
  +  <xsl:param name="path">../</xsl:param>
   
     <xsl:template match="page">
      <html>
  @@ -24,12 +25,16 @@
         </xsl:if>     
         <xsl:if test="$view-source">
         <A>
  -         <xsl:attribute name="HREF">../view-source?filename=/<xsl:value-of select="$view-source"/></xsl:attribute>
  +        <xsl:attribute name="HREF"><xsl:value-of select="$path"/>view-source?filename=/<xsl:value-of
select="$view-source"/></xsl:attribute>
    		 <xsl:attribute name="TARGET">_blank</xsl:attribute>
            <xsl:apply-templates/>
         </A>
         </xsl:if>     
      </h2>
  +  </xsl:template>
  +  
  +  <xsl:template match="content">
  +    <xsl:apply-templates/>
     </xsl:template>
   
     <xsl:template match="para">
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message