You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Norman Barker <no...@comsine.co.uk> on 2004/09/14 13:31:39 UTC

passing parameters to sitemap from CInclude

Hi,

I have the following CInclude fragment
<cinclude:includexml>
<cinclude:src>cocoon:/test_data</cinclude:src>
<cinclude:configuration>
<cinclude:parameter>
<cinclude:name>method</cinclude:name>
<cinclude:value>GET</cinclude:value>
</cinclude:parameter>
</cinclude:configuration>
<cinclude:parameters>
<cinclude:parameter>
<cinclude:name>layers</cinclude:name>
<cinclude:value>layer1</cinclude:value>
</cinclude:parameter>
</cinclude:parameters>
</cinclude:includexml>

which corresponds to the following
    <map:match pattern="test_data">
        <map:generate type="gen1">
            <map:parameter name="layers" value="val1"/>
        </map:generate>
        <map:serialize type="xml"/>
    </map:match>

the idea is that the CInclude transformer will override the value in 
layers, but it isn't!  Has anyone got any ideas?

Many thanks,

Norman

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