Thomas Markus wrote:
hi,

look at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#access

or use a matcher/selector in your sitemap

<map:select type="parameter">
    <map:parameter name="parameter-selector-test"
value="{request:remoteAddr}" />
    <map:when test="127.0.0.1">
        <!-- actions for this ip -->
    </map:when>
    <map:otherwise>
        <!--  -->
    </map:otherwise>
</map:select>

That look like the right approach...except I can't find any documentation at http://cocoon.apache.org/2.2/core-modules/core/2.2/840_1_1.html on the syntax of the test attribute.

What I'm looking for is something like
   test="substring($parameter-selector-test,1,7)='xxx.yyy'"

Your example looks as if test is a binary operator implying equality, but the documentation is blank about this.

///Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

Reply via email to