You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ni...@apache.org on 2003/12/01 09:15:54 UTC
cvs commit: cocoon-2.1/src/blocks/chaperon/samples/stylesheets wiki2xdoc.xsl
nicolaken 2003/12/01 00:15:54
Modified: src/blocks/chaperon/samples/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.
Revision Changes Path
1.8 +2 -2 cocoon-2.1/src/blocks/chaperon/samples/stylesheets/wiki2xdoc.xsl
Index: wiki2xdoc.xsl
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/chaperon/samples/stylesheets/wiki2xdoc.xsl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- wiki2xdoc.xsl 29 Nov 2003 15:26:45 -0000 1.7
+++ wiki2xdoc.xsl 1 Dec 2003 08:15:54 -0000 1.8
@@ -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>