You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Stuart Roebuck <st...@adolos.co.uk> on 2000/12/05 16:11:08 UTC

[C2][PATCH] Allow {1} terminology in pipeline parameters

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.

Regards,

Stuart.


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 1.1.2.64
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	1.1.2.64
+++ 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 select="@value"/>"));
   </xsl:template>
 
   <!-- 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 "adolos.com" with "adolos.co.uk".       **

-------------------------------------------------------------------------
Stuart Roebuck                                  stuart.roebuck@adolos.com
Lead Developer                                  Mac OS X, Java, XML, etc.
ADOLOS                                             http://www.adolos.com/