Author: michiel
Date: 2010-05-15 19:18:12 +0200 (Sat, 15 May 2010)
New Revision: 42163

Modified:
   speeltuin/mihxil/simple/wget/welcomefiles.xslt
Log:


Modified: speeltuin/mihxil/simple/wget/welcomefiles.xslt
===================================================================
--- speeltuin/mihxil/simple/wget/welcomefiles.xslt      2010-05-15 17:12:20 UTC 
(rev 42162)
+++ speeltuin/mihxil/simple/wget/welcomefiles.xslt      2010-05-15 17:18:12 UTC 
(rev 42163)
@@ -1,10 +1,11 @@
 <xsl:stylesheet
     xmlns:h="http://www.w3.org/1999/xhtml";
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version = "1.0"
+    xmlns:str="http://exslt.org/strings";
+    extension-element-prefixes="str"
     exclude-result-prefixes="xml"
     >
 
-
   <xsl:output method="xml"
               version="1.0"
               encoding="utf-8"
@@ -21,9 +22,7 @@
   <xsl:template match="h:a">
     <xsl:copy>
       <xsl:copy-of select="@*" />
-      <xsl:if test="@href = 'index.html'">
-        <xsl:attribute name="href">.</xsl:attribute>
-      </xsl:if>
+      <xsl:attribute name="href"><xsl:value-of select="str:replace(@href, 
'index.html', '.')" /></xsl:attribute>
       <xsl:apply-templates />
     </xsl:copy>
   </xsl:template>

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to