cocoon-dev mailing list archives

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

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"/>
   </map:act>
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"/>
   </map:act>

I think it would be clearer.


Thanks,
  Lassi


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);
           <xsl:apply-templates/>
-          listOfLists.remove(list);
+          listOfList.remove(list);
         }
       </xsl:when>
       <xsl:otherwise>
Mime
View raw message