RELAX NG Schema for Paloose Sitemaps
Author: Hugh Field-Richards
Date: 2022-10-04T15:35

This is the RELAX NG schema for the Paloose sitemaps. They are very similar to Cocoon sitemaps, but with enough differences to make it worth formalising separately. Any bug reports, help, suggestions, new task schemas etc to me, Hugh Field-Richards (hsfr@hsfr.org.uk).

The documentation is designed to be processed by the rng2xhtml.xsl pretty-printing processor available from the author together with the SCSS style files.

Schematron
Declare schematron namespace : map = http://apache.org/cocoon/sitemap/1.0

Sitemap Root

Schema Root
start
refmap.sitemap
<start>
   <ref name="map.sitemap"/>
</start>

Sitemap Structure

The Paloose site has a similar structure to the Cocoon one, just less of it.

define : map.sitemap
element : map:sitemap
optional
refmap.annotation
refnamespace.xhtml
refmap.components
interleave
optional
refmap.resources
optional
refmap.views
optional
refmap.flows
optional
refmap.pipelines
<define name="map.sitemap">
   <element name="map:sitemap">
      <optional>
         <ref name="map.annotation"/>
      </optional>
      <ref name="namespace.xhtml"/>
      <ref name="map.components"/>
      <interleave>
         <optional>
            <ref name="map.resources"/>
         </optional>
         <optional>
            <ref name="map.views"/>
         </optional>
         <optional>
            <ref name="map.flows"/>
         </optional>
      </interleave>
      <optional>
         <ref name="map.pipelines"/>
      </optional>
   </element>
</define>

Included file: paloose-sitemap-common.rng

Included file: paloose-sitemap-components.rng

Included file: paloose-sitemap-pipelines.rng

Included file: paloose-sitemap-generators.rng

Included file: paloose-sitemap-transformers.rng

Included file: paloose-sitemap-serializers.rng

Included file: paloose-sitemap-actions.rng

Included file: paloose-sitemap-matchers.rng

Included file: paloose-sitemap-resources.rng

Included file: paloose-sitemap-selectors.rng

Copyright

Copyright (c) 2006 – 2022 Hugh Field-Richards

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

For a copy of the GNU General Public License write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.