forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: xml-forrest/src/resources/stylesheets wiki2document.xsl
Date Mon, 28 Apr 2003 03:37:46 GMT
jefft       2003/04/27 20:37:45

  Modified:    src/resources/stylesheets wiki2document.xsl
  Fix double extension bug when linking to normal Forrest pages.  This is done by
  detecting a .html or .pdf extension. A horrible hack but I can't see what else
  to do.
  Standard Wiki link flavours are: [WikiName], [title|WikiName],
  [title|http://...], [http://...].  But now in Forrest, you can link to a
  regular *.html page, [title|foo.html].  We need a way to distinguish pagename
  links (where we add a .html) with relative links (where we don't).  Alternatives:
   - We could use [title|site:foo.html], following the 'external wiki'
   - Assume links beginning with a capital letter are WikiNames, and lowercase
     are regular files.
  Revision  Changes    Path
  1.7       +1 -1      xml-forrest/src/resources/stylesheets/wiki2document.xsl
  Index: wiki2document.xsl
  RCS file: /home/cvs/xml-forrest/src/resources/stylesheets/wiki2document.xsl,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- wiki2document.xsl	27 Apr 2003 14:48:49 -0000	1.6
  +++ wiki2document.xsl	28 Apr 2003 03:37:45 -0000	1.7
  @@ -96,7 +96,7 @@
          <xsl:value-of select="$text"/>
  -     <xsl:when test="starts-with($href,'http')">
  +     <xsl:when test="starts-with($href,'http') or contains($href, '.html') or contains($href,
         <link href="{$href}">
          <xsl:value-of select="$text"/>

View raw message