OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xml-dev] Interoperability [long]



Very clever!

At 18:29 15/11/2001 -0800, Ernest G. Allen wrote:

>The method I use, which is supported by all of the SGML and XML
>tools I've ever used, it to use a simple system id in the
>doctype declaration just as in your example:
>
>   <!DOCTYPE foo SYSTEM "foo.dtd">
>
>and then, in the directory containing the XML file with the
>doctype declaration, place a small file named "foo.dtd" that
>ends with
>
>   <!ENTITY foo "/dtds/foo.dtd">
>
>Any INCLUDE/IGNORE blocks, "override" values for entities, and
>so forth go before the "redirection" to the main DTD file.
>
>It's just a small "stub" file to which the system id in the
>doctype declaration refers, without ever needing to edit the
>system id itself.  Yes, it's one more file to fuss with, but it
>is just that one stub file alongside the XML files, and it
>greatly ameliorates the lack of support for socat catalogs.