cvs commit: www/en/news news.xml newsflash.xsl

Rudolf Cejka cejkar at fit.vutbr.cz
Fri Mar 25 07:11:44 PST 2005


Jesus R. Camou wrote (2005/03/24):
>   Modified files:
>     en/news              news.xml newsflash.xsl 
>   Log:
>   Add support for $enbase in news.xml.

Thanks. Now I see that I forgot to send additional patch to oldnewsflash.xsl
- could you please the patch for newsflash.xsl apply to oldnewsflash.xsl too?

Regards.

--- oldnewsflash.xsl.orig	Fri Mar 25 15:58:18 2005
+++ oldnewsflash.xsl	Fri Mar 25 16:03:08 2005
@@ -99,15 +99,18 @@
 
   <xsl:template match="date"/>    <!-- Deliberately left blank -->
 
-  <!-- When the href attribute contains a '$base', expand it to the current
-       value of the $base variable. -->
+  <!-- When the href attribute contains a '$base' or '$enbase', expand it
+       to the current value of the $base or $enbase variable. -->
 
-  <!-- All your $base are belong to us.  Ho ho ho -->
+  <!-- All your $base or $enbase are belong to us.  Ho ho ho -->
   <xsl:template match="a">
     <a><xsl:attribute name="href">
 	<xsl:choose>
 	  <xsl:when test="contains(@href, '$base')">
 	    <xsl:value-of select="concat(substring-before(@href, '$base'), $base, substring-after(@href, '$base'))"/>
+	  </xsl:when>
+	  <xsl:when test="contains(@href, '$enbase')">
+	    <xsl:value-of select="concat(substring-before(@href, '$enbase'), $enbase, substring-after(@href, '$enbase'))"/>
 	  </xsl:when>
 	  <xsl:otherwise>
 	    <xsl:value-of select="@href"/>

-- 
Rudolf Cejka <cejkar at fit.vutbr.cz> http://www.fit.vutbr.cz/~cejkar
Brno University of Technology, Faculty of Information Technology
Bozetechova 2, 612 66  Brno, Czech Republic


More information about the cvs-doc mailing list