cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: cvs commit: xml-cocoon2/src/org/apache/cocoon/sitemap sitemap.roles
Date Thu, 07 Jun 2001 19:47:31 GMT
On 7 Jun 2001 bloritsch@apache.org wrote:

Just some question. Where is the SitemapRedirector class?


> bloritsch    01/06/07 09:24:06
>
>   Modified:    src/org/apache/cocoon Tag: cocoon_20_branch cocoon.roles
>                src/org/apache/cocoon/components/language/markup/sitemap/java
>                         Tag: cocoon_20_branch sitemap.xsl
>                src/org/apache/cocoon/components/pipeline Tag:
>                         cocoon_20_branch AbstractEventPipeline.java
>                         AbstractStreamPipeline.java
>                         CachingEventPipeline.java
>                         CachingStreamPipeline.java EventPipeline.java
>                         StreamPipeline.java
>                src/org/apache/cocoon/sitemap Tag: cocoon_20_branch
>                         sitemap.roles
>   Log:
>   Add SitemapRedirector--works like a charm


>   + <role name="org.apache.cocoon.components.pipeline.StreamPipeline"
>   +       shorthand="stream-pipeline"
>   +       default-class="org.apache.cocoon.components.pipeline.NonCachingStreamPipeline"/>
>   +
>   + <role name="org.apache.cocoon.components.pipeline.EventPipeline"
>   +       shorthand="event-pipeline"
>   +       default-class="org.apache.cocoon.components.pipeline.NonCachingEventPipeline"/>

NonCaching stuff as default?

>   -        if ((map = <xsl:value-of select="$action-name"/> ((Redirector)environment,
environment, objectModel, substitute(listOfMaps,<xsl:value-of select="$action-source"/>),
<xsl:value-of select="$component-param"/>)) != null) {
>   +        if ((map = <xsl:value-of select="$action-name"/> (redirector, environment,
objectModel, substitute(listOfMaps,<xsl:value-of select="$action-source"/>), <xsl:value-of
select="$component-param"/>)) != null) {
>   +         if (redirector.hasRedirected()) {
>   +             return true;
>   +         }
>             getLogger().debug("Action <xsl:value-of select="translate($action-name,'&quot;','
')"/>");
>              listOfMaps.add (map);
>              <xsl:apply-templates/>
>              listOfMaps.remove(listOfMaps.size()-1);
>            }
>   +         if (redirector.hasRedirected()) {
>   +             return true;
>   +         }

The above seems to be ok but...

>   -        if ((map = <xsl:value-of select="$action-name"/> ((Redirector)environment,
environment, objectModel, substitute(listOfMaps,<xsl:value-of select="$action-source"/>),
<xsl:value-of select="$component-param"/>)) != null) {
>   +        if ((map = <xsl:value-of select="$action-name"/> (redirector, environment,
objectModel, substitute(listOfMaps,<xsl:value-of select="$action-source"/>), <xsl:value-of
select="$component-param"/>)) != null) {
>             getLogger().debug("Action <xsl:value-of select="translate($action-name,'&quot;','
')"/>");
>              listOfMaps.add (map);
>              <xsl:apply-templates/>
>   @@ -821,7 +835,7 @@

..shouldn't there be a redirector test as well in the last snippet?


Giacomo


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message