You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by ni...@apache.org on 2003/12/01 09:16:36 UTC

cvs commit: xml-forrest/src/core/context/resources/chaperon/stylesheets wiki2xdoc.xsl

nicolaken    2003/12/01 00:16:36

  Modified:    src/core/context/resources/chaperon/stylesheets
                        wiki2xdoc.xsl
  Log:
  Use a more lax rule to define links that are absolute.
  This is because the precedent rule searched for "http:" but
  it was not compatible with Forrest site: scheme or other protocols.
  
  NOTE: already committed also in Cocoon-2.1 CVS to keep in synch.
  
  Revision  Changes    Path
  1.3       +2 -2      xml-forrest/src/core/context/resources/chaperon/stylesheets/wiki2xdoc.xsl
  
  Index: wiki2xdoc.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/core/context/resources/chaperon/stylesheets/wiki2xdoc.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- wiki2xdoc.xsl	29 Nov 2003 15:28:19 -0000	1.2
  +++ wiki2xdoc.xsl	1 Dec 2003 08:16:36 -0000	1.3
  @@ -110,7 +110,7 @@
          <xsl:value-of select="$text"/>
         </link>
        </xsl:when>
  -     <xsl:when test="starts-with($href,'http') or contains($href,'.')">
  +     <xsl:when test="contains($href,':') or contains($href,'.')">
         <link href="{$href}">
          <xsl:value-of select="$text"/>
         </link>
  @@ -135,7 +135,7 @@
        <xsl:when test="contains($href,'.png') or contains($href,'.jpg') or contains($href,'.gif')">
         <img src="{$href}" alt="{$href}"/>
        </xsl:when>
  -     <xsl:when test="starts-with($href,'http') or contains($href,'.')">
  +     <xsl:when test="contains($href,':') or contains($href,'.')">
         <link href="{$href}">
          <xsl:value-of select="$href"/>
         </link>