<?xml version="1.0" encoding="UTF-8"?>

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

    <map:components>
        <map:generators default="file">
            <map:generator name="xquery" logger="sitemap.generator.xquery"
                src="org.exist.cocoon.XQueryGenerator"> </map:generator>
        </map:generators>
        <map:readers default="resource"/>
        <map:serializers default="html"/>
        <map:selectors default="browser"/>
        <map:matchers default="wildcard"/>
        <map:transformers default="xslt"> </map:transformers>
    </map:components>

    <map:pipelines>
        <map:pipeline>
            
            <map:match pattern="*.xq">
                <map:generate src="{1}.xq" type="xquery">
                    <map:parameter name="file" value="{1}.xq"/>
                </map:generate>
                <map:serialize encoding="UTF-8" type="html"/>
            </map:match>

            <map:match pattern="**.xqm">
                <map:read src="{1}.xqm" mime-type="text/text"/>
            </map:match>

        </map:pipeline>
    </map:pipelines>

</map:sitemap>
