On 18 Oct 2002, David Crossley wrote: > Piroumian Konstantin wrote: > > There is a draft W3C Schema for the sitemap (version 2.1) in: > > \src\documentation\xdocs\drafts\sitemap-2.1-draft.xsd > > > > 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. > > The DTD is not starting from scratch but building upon > earlier drafts. It is great that you have started to work > on a draft WXS too. I think that it is good to approach it > from different angles.
Adding yet another angle: Bruno has implemented its own XML grammar specification language for guided authoring and lay-out specification in Pollo (http://pollo.sf.net/). One of the neat tricks is that it offers XPath-lookups for specifying the list of possible value for an attribute - i.e. when specifying the component 'type' attribute (<map:generate type='xxx'/>), that value can be made dependent on the names of the components defined in the sitemap. These grammars are only editing-time guidance, however - Pollo also has an explicit validation function, that uses the Sun MSV libraries, i.e. DTD/XSD/RELAXNG validation - so it would support both the aforementioned DTD, and the XSD from Konstantin. </Steven> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]