XSite Sitemap
Sitemap configuration
XSite can be configured using an XML-based sitemap:
<sitemap> <parameter name="theme">red</parameter> <section> <name>About XSite</name> <page>index.html</page> <page>license.html</page> <page>download.html</page> </section> <section> <name>Using XSite</name> <page>faq.html</page> <link title="JavaDoc">javadoc/index.html</link> <link title="Reporting Issues">http://jira.codehaus.org/browse/XSITE</link> </section> <section> <name>Developing XSite</name> <page>mailing-lists.html</page> <page>team.html</page> <page>repository.html</page> </section> </sitemap>
Each page
element corresponds to an HTML file in the content directory. The HTML content files are read from the same directory in which
sitemap
is found.
The defined parameters can be used later in the skin template.
The sitemap filename is configurable but must be found in the content directory.
The DTD for the sitemap (xsite-sitemap.dtd
) is bundled in the xsite jar, so can be
specified via a <!DOCTYPE xsite:sitemap SYSTEM "xsite-sitemap.dtd">
XML declaration.
A copy is also provided in the binary distribution conf/
directory.