cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lassi Immonen <>
Subject [C2]Bug in sitemap.xsl and Action thoughts
Date Mon, 06 Nov 2000 09:07:36 GMT

There's small typo in sitemap.xsl, which prevents using Action's
returned list.

If I remembered right, there was proposition that Action.act could
return Map instead of List. I think it would be good idea. 

In included file (LangSelect.jar) is LangSelect action, which chooses
language and puts it in List and also in ObjectModel.

So now you can use LangSelect like:
   <map:act type="lang_select">
      <map:generate src="file_{1}.xml"/>
to return different language version according request or setting. 

Could the same be with actions returntype as Map like?:
   <map:act type="lang_select">
      <map:generate src="file_{1ang}.xml"/>

I think it would be clearer.


Heres diff to fix sitemap typo:
@@ -562,7 +562,7 @@
         if ((list = <xsl:value-of select="$action-name"/> (environment,
objectModel, substitute(listOfLists,<xsl:value-of
select="$action-source"/>), <xsl:value-of select="$component-param"/>))
!= null) {
           listOfLists.add (list);
-          listOfLists.remove(list);
+          listOfList.remove(list);
View raw message