Date: Fri, 25 Mar 2005 16:11:40 +0100 From: Rudolf Cejka <cejkar@fit.vutbr.cz> To: "Jesus R. Camou" <jcamou@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: www/en/news news.xml newsflash.xsl Message-ID: <20050325151140.GA63894@fit.vutbr.cz> In-Reply-To: <200503242308.j2ON8lBZ087529@repoman.freebsd.org> References: <200503242308.j2ON8lBZ087529@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050325151140.GA63894>