1 Dec 2003 09:15
cvs commit: cocoon-2.1/src/blocks/chaperon/samples/stylesheets wiki2xdoc.xsl
<nicolaken <at> apache.org>
2003-12-01 08:15:54 GMT
2003-12-01 08:15:54 GMT
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
<at> <at> -110,7 +110,7 <at> <at>
<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>
<at> <at> -135,7 +135,7 <at> <at>
<xsl:when test="contains($href,'.png') or contains($href,'.jpg') or contains($href,'.gif')">
(Continue reading)
RSS Feed