forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/stylesheets filterlinks.xsl
Date Sun, 27 Apr 2003 08:39:38 GMT
jefft       2003/04/27 01:39:38

  Modified:    .        status.xml
               src/resources/conf sitemap.xmap
               src/resources/stylesheets filterlinks.xsl
  Log:
  Fix bug where *.pdf?cocoon-view=links was exposing the {realpath:.} absolute
  path.
  
  Revision  Changes    Path
  1.149     +4 -0      xml-forrest/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/status.xml,v
  retrieving revision 1.148
  retrieving revision 1.149
  diff -u -r1.148 -r1.149
  --- status.xml	26 Apr 2003 12:23:14 -0000	1.148
  +++ status.xml	27 Apr 2003 08:39:37 -0000	1.149
  @@ -25,6 +25,10 @@
     <changes>
       <release version="0.5-dev" date="unreleased">
         <action dev="JT" type="fix" context="core">
  +        Fixed bug where absolute paths to images were created in the
  +        <code>build/site</code> directory.
  +      </action>
  +      <action dev="JT" type="fix" context="core">
           Get the Wiki syntax support working again.
         </action>
         <action dev="JT" type="update" context="schemas">
  
  
  
  1.92      +3 -1      xml-forrest/src/resources/conf/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/conf/sitemap.xmap,v
  retrieving revision 1.91
  retrieving revision 1.92
  diff -u -r1.91 -r1.92
  --- sitemap.xmap	26 Apr 2003 12:23:14 -0000	1.91
  +++ sitemap.xmap	27 Apr 2003 08:39:38 -0000	1.92
  @@ -91,7 +91,9 @@
     <map:views>
   
       <map:view name="links" from-position="last">
  -      <map:transform src="resources/stylesheets/filterlinks.xsl"/>
  +      <map:transform src="resources/stylesheets/filterlinks.xsl">
  +        <map:parameter name="ctxbasedir" value="{realpath:.}/"/>
  +      </map:transform>
         <map:serialize type="links"/>
       </map:view>
     </map:views>
  
  
  
  1.6       +7 -1      xml-forrest/src/resources/stylesheets/filterlinks.xsl
  
  Index: filterlinks.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/stylesheets/filterlinks.xsl,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- filterlinks.xsl	9 Apr 2003 10:14:40 -0000	1.5
  +++ filterlinks.xsl	27 Apr 2003 08:39:38 -0000	1.6
  @@ -15,8 +15,14 @@
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
       version="1.0">
   
  +  <xsl:param name="ctxbasedir"/>
  +
     <xsl:template match="@src|@href|@background">
  -    <xsl:if test="not(contains(.,'apidocs')) and not(starts-with(., 'api/'))">
  +    <!-- The ctxbasedir condition prevents the absolute image paths used in PDFs
  +    from being rendered. It will go away when FOP improves -->
  +    <xsl:if test="not(starts-with(., $ctxbasedir)) and
  +                  not(contains(.,'apidocs')) and
  +                  not(starts-with(., 'api/'))">
         <xsl:copy>
           <xsl:apply-templates select="."/>
         </xsl:copy>
  
  
  

Mime
View raw message