On 7 Jun 2001 [EMAIL PROTECTED] 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,'"',' ')"/>");
> 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,'"',' ')"/>");
> 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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]