You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by David Crossley <cr...@indexgeo.com.au> on 2001/11/08 09:25:46 UTC

towards reliable */sitemap.xmap

The sitemap.xmap files are looming as a potential point of
failure for Cocoon. Various apsects are a worry.

The *.xmap files do not declare their ruleset. (This could
be a DTD or Schema, but let us stick with DTDs for now.)
They do not declare their DTD, therefore they are basically
free-form XML and do not need to adhere to any structural
rules (other than to be well-balanced XML).

This sounds dangerous - it is too easy to break a sitemap.

It seems that the structure of the sitemap has been developed
in an ad hoc fashion, adding elements and attributes to the
*.xmap without defining them anywhere.

Fortunately, there is an initial sitemap DTD. Around 2001-07
Jeffrey Ricker developed an initial DTD to simply reflect the
structure of the sitemaps at that time (a complicated task,
to work in reverse). Since then, the sitemaps must have
changed a lot (many elements and attributes are not declared).
So i have built on Jeffrey's work to develop V0.2 - you can
find this in CVS at webapp/resources/entities/sitemap-v02.dtd
(There are still many issues in this DTD that are not addressed.)

Anyway, none of the sitemaps in the current distribution
can pass validation using this new DTD - they are all 
inconsistent in some way. (Note that the contraints imposed
by this DTD have already been vastly relaxed, just in an effort
to document the current structure.)

Another major issue is that the build process seems to have
no way to validate the sitemaps against this DTD. (I have been
doing it via separate direct processing w command-line parser.)
Even though the new "build docs" can now do validation,
it does not try to validate the sitemap. It seems that a
completely separate parser is directly used (i.e. not using
components/parser/JaxpParser.java).

The big worry is that the development process for the
sitemap structure is haphazard. This is partly due to there
being no validation of xmaps during the build or when it
changes.

--David Crossley

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


status of sitemap DTD

Posted by David Crossley <cr...@indexgeo.com.au>.
I just updated the initial sitemap-v02.dtd to reflect the
decisions from the recent view/label discussion.
As discussed below, this is a draft DTD and is not
yet declared by any sitemap.xmap

In various recent discussions, there have been references 
to "sitemap schema" and "designing the sitemap".
However, prior to this recent DTD there was no such
ruleset in CVS. Does anybody know of the existence of any
other info about the structure of a sitemap. I suppose that
"in the code" is one place.
--David Crossley

-----------------------------
> Date: Thu, 8 Nov 2001 19:25:46 +1100
> Subject: towards reliable */sitemap.xmap
> From: David Crossley <cr...@indexgeo.com.au>
> To: cocoon-dev@xml.apache.org
> Cc: rickerng@usonia.net, Bruno.Dumon@the-ecorp.com
>
[snip]
> 
> Fortunately, there is an initial sitemap DTD. Around 2001-07
> Jeffrey Ricker developed an initial DTD to simply reflect the
> structure of the sitemaps at that time (a complicated task,
> to work in reverse). Since then, the sitemaps must have
> changed a lot (many elements and attributes are not declared).
> So i have built on Jeffrey's work to develop V0.2 - you can
> find this in CVS at webapp/resources/entities/sitemap-v02.dtd
> (There are still many issues in this DTD that are not addressed.)
>
[snip]
> 
> --David Crossley


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org