cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart Roebuck <>
Subject [C2][PATCH] Allow {1} terminology in pipeline parameters
Date Tue, 05 Dec 2000 15:11:08 GMT
Currently you can make use of matches in the request URL in the src parameter of generators
and translators, but not in parameters for translators.

Here is a patch to make this work.  I don't know whether this is something that has already
been rejected for other reasons - apologies if it has.

At the same time it may be worth removing "map:param" from this sheet as it fails to construct
the param variable and results in a compile time error.



Index: src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl
RCS file: /home/cvspublic/xml-cocoon/src/org/apache/cocoon/components/language/markup/sitemap/java/Attic/sitemap.xsl,v
retrieving revision
diff -u -r1.1.2.64 sitemap.xsl
--- src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl	2000/12/02 11:54:17
+++ src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl	2000/12/05 15:05:03
@@ -696,7 +696,7 @@
   <!-- collect parameter definitions -->
   <xsl:template match="map:pipeline//parameter">
-    param.setParameter ("<xsl:value-of select="@name"/>", "<xsl:value-of select="@value"/>");
+    param.setParameter ("<xsl:value-of select="@name"/>", substitute(listOfLists, "<xsl:value-of
   <!-- FIXME:(GP) is this still valid? -->

** We are currently experiencing prolonged difficulties with our email **
** provider DIGIWEB and INTERLIANT.  To guarantee that your response   **
** is received, please replace "" with "".       **

Stuart Roebuck                        
Lead Developer                                  Mac OS X, Java, XML, etc.
View raw message