I've been busy today looking at the sitemap DTD, as it is an open
issue on the todo list.

I have produced a version 0.3 of the dtd, against which all of the
sitemaps in the src tree now validate, except for the lint
sitemap. Since this purports to be an example of what is and what is
NOT valid, it MUST not validate. However some things in there which
purport to be valid do not validate. I decided not to tackle this, as
the very first item that did not validate was a tag named
unknown-tag. The idea being that a component configuration can have
any tags.
However, since each element must be declared in the DTD, this can
never validate - there must be a finite set of possible tags. 
So the components could be declared to have ANY content, but I chose
to be more specific. I think this needs discussing.

I did change several of the sitemaps - purely by re-ordering the
contents of the map:components element so that all the sub-elements
were in a fixed order. This means I can validate that there is only
one of each component list present. The alternative is to allow any
order, but allow repeats. I don't know which is best.

Clearly DTDs are designed for documents, not programming
declarations. A schema would be more useful than a DTD.

My emphasis was on getting the sitemaps to validate, as I don't know
Cocoon nearly well enough to know what the DTD OUGHT to look like. I
have made a lot of comments pre-fixed with CPA throughout the DTD.

Now, do I post the DTD to this mailing list as an attachment?
Since I'm not sure if that is allowed or not, I've put it on my web
site for comments: 
http://www.colina.demon.co.uk/sitemap-v03.dtd
-- 
Colin Paul Adams
Preston Lancashire

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

Reply via email to