giacomo 00/08/22 16:05:12
Modified: src/org/apache/cocoon/components/language/markup/sitemap/java
Tag: xml-cocoon2 sitemap.xsl
Log:
redirect-uri is now fixed and works with relative and absolute URLs
Revision Changes Path
No revision
No revision
1.1.2.22 +3 -3
xml-cocoon/src/org/apache/cocoon/components/language/markup/sitemap/java/Attic/sitemap.xsl
Index: sitemap.xsl
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/components/language/markup/sitemap/java/Attic/sitemap.xsl,v
retrieving revision 1.1.2.21
retrieving revision 1.1.2.22
diff -u -r1.1.2.21 -r1.1.2.22
--- sitemap.xsl 2000/08/21 17:39:36 1.1.2.21
+++ sitemap.xsl 2000/08/22 23:05:11 1.1.2.22
@@ -2,7 +2,7 @@
<!-- Sitemap Core logicsheet for the Java language -->
<!--
* @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a>
- * @version CVS $Revision: 1.1.2.21 $ $Date: 2000/08/21 17:39:36 $
+ * @version CVS $Revision: 1.1.2.22 $ $Date: 2000/08/22 23:05:11 $
-->
<xsl:stylesheet
@@ -500,8 +500,8 @@
return resource_<xsl:value-of select="translate(@resource, '- ',
'__')"/>(pipeline, listOfLists, environment);
</xsl:when>
<xsl:when test="@uri">
- // request.setUri ("<xsl:value-of select="@uri"/>");
- // this.process(environment);
+ environment.redirect (substitute(listOfLists, "<xsl:value-of
select="@uri"/>"));
+ return true;
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="error">