<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">

    <map:pipelines>
        <map:pipeline>
            <map:match type="uri" pattern="fck/fckconfig.js*">
                <map:generate type="xmlfile" src="constant(BX_LIBS_DIR)editors/fck/fckconfig.xml"/>
                <map:transform type="xslt" src="constant(BX_LIBS_DIR)editors/fck/fckconfig.xsl">
                    <map:parameter name="webroot" value="constant(BX_WEBROOT)"/>
                    <map:parameter name="dataUri" value="phpglobals://_GET[uri]"/>
                    <map:parameter type="options" name="registerPhpFunctions" value="true"/>
                    <map:parameter type="options" name="textOutput" value="true"/>
                </map:transform>
                <map:serialize type="text" httpExpires="1800"/>
                
            </map:match>
        </map:pipeline>

        <map:pipeline>
            <map:match type="uri" pattern="fck/fckstyles.xml*">
             <map:read type="resource" src="constant(BX_PROJECT_DIR)conf/fck/fckstyles.xml" 
                 fallback="constant(BX_PROJECT_DIR)webinc/fck/fckstyles.xml"
                 mime-type="auto"/>
            </map:match>
        </map:pipeline>

        <map:pipeline>
            <map:match type="uri" pattern="*">
                <map:include label="standardPipeline"/>
            </map:match>
        </map:pipeline>

        <map:pipeline>
            <map:include label="standardPipeline"/>
        </map:pipeline>
    </map:pipelines>


    <map:include-definitions>
        <map:include-definition label="standardPipeline">
            <map:generate type="xmlfile" src="BX_PROJECT_DIR://webinc/fck.html"/>
            
            <map:transform type="xslt" src="BX_PROJECT_DIR://inc/bx/editors/fck/fck.xsl">
                <map:parameter name="url" value="{1}"/>
                <map:parameter name="dataUri" value="{../dataUri}"/>
                <map:parameter name="requestUri" value="{../id}"/>
                <map:parameter name="webroot" value="constant(BX_WEBROOT)"/>
                <map:parameter name="template" value="phpglobals://_GET[template]" default="default.xhtml"/>

                <map:parameter type="options" name="registerPhpFunctions" value="true"/>
            </map:transform>
            
            <map:serialize type="html"/>
        </map:include-definition>
    </map:include-definitions>
</map:sitemap>
