[Home] [By Thread] [By Date] [Recent Entries]
> From: Joe Lapp <jlapp@w...> > >I need to create DTDs that are extensible... The base DTD: <!-- Base DTD in file x.dtd --> <!ENTITY % x.addon " " > <!ELEMENT x ( #PCDATA | table | chair %xaddon; ) > ... In the document: <!DOCTYPE x SYSTEM "x.dtd" [ <!ELEMENT Joes-new-extension-element ( #PCDATA ) > <!ENTITY % x.addon " | Joes-new-extension-element "> ]> <x>some text<Joes-new-extension-element/> some other text</x> Parameter entities in the "internal subset" of the Doctype declaration are parsed before the "eternal subset" (i.e. x.dtd here). The first declaration of an entity has precedence. So you can derive a new DTD by merely declaring the new element types you need in the internal subset, and then defining the appropriate parameter entity. Rick Jelliffe xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|

Cart



