[Home] [By Thread] [By Date] [Recent Entries]


Rick Jelliffe wrote:

> Is there any need for explicit namespace declarations in the DTD at all?
> 
> Why not just assign whole element sets to a namespace, in the
> external DSDL framework, and leave the syntax of DTDs exactly as it is?

So how do I declare content models that use elements from more than one
set, such as:

   <!ELEMENT a:A (b:B, c:C)>

Do I just use prefixes in the syntax and leave the prefix declarations
to some external mechanism, as your "typicalPrefix" attribute seems to
imply? Or do I simply not declare such elements with a DTD?

> There is
> probably some sweet spot with DTDs where if you have too many
> kinds of declarations it puts more people off than it attracts:

Which I think John's suggestion is close to hitting. I'd guess it's:

   DTDs + namespaces + simple element types

-- Ron

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member