> -----Original Message-----
> From: Jason van Zyl [mailto:[EMAIL PROTECTED]
> Sent: 11 April 2004 00:18
> To: Maven Developers List
> Subject: Re: xdoc plugin change proposal
> 
> On Sat, 2004-04-10 at 16:23, Vincent Massol wrote:
> > Hi xdoc plugin maintainers,
> >
> > I'm slowly moving the Cactus project to Maven. There's a feature we
have
> > in Cactus for xdoc that I'd like to implement in the Maven xdoc
plugin.
> > It's the notion of sitemap.
> >
> > It works as follows:
> >
> > - a sitemap.xml file, containing entries. Ex:
> >
> > <sitemap>
> >
> >   <resource id="build_result"
target="participating/build_result.html"
> >       name="Nightly Build Results">
> >     Aggregated links to the results of the nightly builds.
> >   </resource>
> >
> >   <external id="ant" url="http://ant.apache.org/"/>
> > [...]
> >
> > There can be 2 types of resources: internal resources and external
> > resources.
> >
> > - in the xdoc files you can reference a sitemap resource in the
> > following way:
> >
> > For an internal resource: <a href="site:build_result">[...]
> > For an external resource: <a href="ext:ant">[...]
> >
> > I'd like to add this feature. It would be optional of course and
will be
> > completely backward compatible with the existing xdoc format.
> 
> How does the sitemap differ from the navigation? If it's way of
> providing a form of navigation I would like to have one way and not a
> bunch of different ways.
> 

Navigation is currently for menus. Sitemap is there to lists all site
links (and potentially resources). On the Cactus project we also have
documentation reference ids from the sitemap.xml file. For example:

<navigation title="Running Tests" index="howto_runner">

[...]

  <menu label="Integrations">
    <item id="integration_manual" label="Manual"/>
    <item id="integration_ant" label="Ant"/>

Where id and index are referencing resource ids. Label allows to
override the default label found in sitemap.xml.

As an additional benefit, the sitemap.xml file allows to generate a
sitemap.html file giving a sitemap of the site. For example:
http://jakarta.apache.org/cactus/sitemap.html

> Do you basically want to reference a link by id?

Yes.

In Cactus land we also use the sitemap to validate all links. However
this feature is not required in Maven land as we already have the
linkcheck plugin.

Thanks
-Vincent


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to