cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <>
Subject RE: sitemap DTD
Date Fri, 18 Oct 2002 08:29:07 GMT
There is a draft W3C Schema for the sitemap (version 2.1) in: 

If think that it would be better if you could work on it rather than create
a DTD from scratch. Last time that I've updated the schema it were
validating correctly all the sitemaps (or almost all) in Cocoon sources.
Things could have changed since that and the schema needs to be updated.

  Konstantin Piroumian

> -----Original Message-----
> From: Colin Paul Adams [] 
> Sent: Thursday, October 17, 2002 6:25 PM
> To:
> Subject: sitemap DTD
> 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: 
> -- 
> Colin Paul Adams
> Preston Lancashire
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, email:

To unsubscribe, e-mail:
For additional commands, email:

View raw message