| <?xml version="1.0"?> |
| <!-- minimal sitemap for Cocoon 2 --> |
| <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> |
| |
| |
| <!-- ======= Components ======= --> |
| |
| |
| <map:components> |
| <map:generators default="file"/> |
| <map:transformers default="xslt"/> |
| <map:readers default="resource"/> |
| <map:serializers default="html"> |
| <map:serializer logger="sitemap.serializer.svg2png" mime-type="image/jpeg" name="svg2jpeg" src="org.apache.cocoon.serialization.SVGSerializer"> |
| <parameter name="quality" type="float" value="0.9"/> |
| </map:serializer> |
| </map:serializers> |
| <map:matchers default="wildcard"/> |
| <map:selectors default="browser"> |
| <map:selector name="resource-exists" |
| logger="sitemap.selector.resource-exists" |
| src="org.apache.cocoon.selection.ResourceExistsSelector" /> |
| </map:selectors> |
| <map:actions> |
| <map:action logger="sitemap.action.request" name="request" src="org.apache.cocoon.acting.RequestParamAction"/> |
| </map:actions> |
| |
| <map:pipes default="caching"/> |
| </map:components> |
| |
| |
| <!-- =========================== Resources =============================== --> |
| <map:resources> |
| |
| <!-- load a page of a section if page is not available load index page |
| of this section, plain XML |
| --> |
| |
| <map:resource name="xml-view"> |
| <map:generate src="{src}"/> |
| <map:transform src="transforms/xml2html.xslt"/> |
| <map:serialize /> |
| </map:resource> |
| |
| <map:resource name="html-view"> |
| <map:generate src="{src}"/> |
| <map:serialize /> |
| </map:resource> |
| |
| <map:resource name="text-view"> |
| <map:read src="{src}" mime-type="{mime-type}"/> |
| </map:resource> |
| |
| <map:resource name="pix-view"> |
| <map:read src="{src}" mime-type="{mime-type}"/> |
| </map:resource> |
| |
| |
| <map:resource name="svg-view"> |
| <map:generate src="{src}"/> |
| <map:serialize type="svg2jpeg"/> |
| </map:resource> |
| |
| </map:resources> |
| |
| <map:views> |
| <map:view name="aggregate" from-label="aggregate"> |
| <map:serialize type="xml"/> |
| </map:view> |
| </map:views> |
| |
| <!-- ======= Pipelines ======= --> |
| <map:pipelines> |
| |
| |
| <map:pipeline> |
| |
| <map:match pattern="*._xmap"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="xml-view"> |
| <map:parameter name="src" value="../{location}/{../1}.xmap"/> |
| </map:call> |
| </map:act> |
| </map:match> |
| |
| </map:pipeline> |
| |
| <map:pipeline> |
| |
| <map:match pattern="*.xml"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="xml-view"> |
| <map:parameter name="src" value="../{location}/{../1}.xml"/> |
| </map:call> |
| </map:act> |
| </map:match> |
| |
| <map:match pattern="*.xsp"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="xml-view"> |
| <map:parameter name="src" value="../{location}/{../1}.xsp"/> |
| </map:call> |
| </map:act> |
| </map:match> |
| <map:match pattern="*.xsl"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="xml-view"> |
| <map:parameter name="src" value="../{location}/{../1}.xsl"/> |
| </map:call> |
| </map:act> |
| </map:match> |
| <map:match pattern="*.xslt"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="xml-view"> |
| <map:parameter name="src" value="../{location}/{../1}.xslt"/> |
| </map:call> |
| </map:act> |
| </map:match> |
| <map:match pattern="*.xhtml"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="html-view"> |
| <map:parameter name="src" value="../{location}/{../1}.xhtml"/> |
| </map:call> |
| </map:act> |
| </map:match> |
| <map:match pattern="*.html"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="html-view"> |
| <map:parameter name="src" value="../{location}/{../1}.html"/> |
| </map:call> |
| </map:act> |
| </map:match> |
| <map:match pattern="*.htm"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="html-view"> |
| <map:parameter name="src" value="../{location}/{../1}.htm"/> |
| </map:call> |
| </map:act> |
| </map:match> |
| <map:match pattern="*.svg"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="svg-view"> |
| <map:parameter name="src" value="../{location}/{../1}.svg"/> |
| </map:call> |
| </map:act> |
| </map:match> |
| <map:match pattern="*.gif"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="pix-view"> |
| <map:parameter name="src" value="../{location}/{../1}.gif"/> |
| <map:parameter name="mime-type" value="image/gif" /> |
| </map:call> |
| </map:act> |
| </map:match> |
| <map:match pattern="*.jpg"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="pix-view"> |
| <map:parameter name="src" value="../{location}/{../1}.jpg"/> |
| <map:parameter name="mime-type" value="image/jpeg" /> |
| </map:call> |
| </map:act> |
| </map:match> |
| <map:match pattern="*.png"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="pix-view"> |
| <map:parameter name="src" value="../{location}/{../1}.png"/> |
| <map:parameter name="mime-type" value="image/png" /> |
| </map:call> |
| </map:act> |
| </map:match> |
| <map:match pattern="*.ico"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="pix-view"> |
| <map:parameter name="src" value="../{location}/{../1}.ico"/> |
| <map:parameter name="mime-type" value="image/icon" /> |
| </map:call> |
| </map:act> |
| </map:match> |
| <map:match pattern="*.css"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="text-view"> |
| <map:parameter name="src" value="../{location}/{../1}.css"/> |
| <map:parameter name="mime-type" value="text/txt" /> |
| </map:call> |
| </map:act> |
| </map:match> |
| <map:match pattern="*.js"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="text-view"> |
| <map:parameter name="src" value="../{location}/{../1}.js"/> |
| <map:parameter name="mime-type" value="text/txt" /> |
| </map:call> |
| </map:act> |
| </map:match> |
| |
| <map:match pattern="*.txt"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="text-view"> |
| <map:parameter name="src" value="../{location}/{../1}.txt"/> |
| <map:parameter name="mime-type" value="text/txt" /> |
| </map:call> |
| </map:act> |
| </map:match> |
| |
| <map:match pattern="*.xlex"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:call resource="text-view"> |
| <map:parameter name="src" value="../{location}/{../1}.xlex"/> |
| <map:parameter name="mime-type" value="text/txt" /> |
| </map:call> |
| </map:act> |
| </map:match> |
| |
| <!-- |
| <map:match pattern="**/*.xmap"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:redirect-to uri="../{../2}.xmap?location={location}"/> |
| </map:act> |
| </map:match> |
| |
| |
| <map:match pattern="**/*.*"> |
| <map:act type="request"> |
| <map:parameter name="parameters" value="true"/> |
| <map:redirect-to uri="../{../2}.xmap?location={location}"/> |
| </map:act> |
| <map:redirect-to uri="../{2}.{3}?location={1}"/> |
| </map:match> |
| |
| --> |
| |
| </map:pipeline> |
| |
| </map:pipelines> |
| </map:sitemap> |