cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart Roebuck <stuart.roeb...@adolos.co.uk>
Subject [C2][PATCH] Allow {1} terminology in pipeline parameters
Date Tue, 05 Dec 2000 17:21:52 GMT
I posted this to cocoon users by accident:


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/
Mime
View raw message