DTDs and XML Editors/Parsers
by "Donna M Smillie" <dms(at)zetnet.co.uk>
|
Date: |
Mon, 6 Mar 2000 01:09:08 -0000 |
To: |
<hwg-gutenberg-dtds(at)hwg.org> |
|
todo: View
Thread,
Original
|
|
Hi everyone
I've been trying out an XML editor called XML Spy (see
http://www.icon-is.com - products - software - XML Spy). It
looks really useful so far, but I've run into a problem regarding
how it handles DTDs.
When validating an XML document on gutbook1.dtd, it throws up
some apparent errors in bookfrag.dtd which I understand is caused
by the software expanding entities prematurely. For example, the
bookfrag DTD has:
<!ENTITY % inline.class "|quote|...etc
and later, lists in the form of:
(#PCDATA %inline.class;)
and:
(#PCDATA|title|subtitle|author|para|poem|song %inline.class;)
In order to validate XML documents to this DTD, the XML Spy
editor requires these to be:
<!ENTITY % inline.class "quote|...etc
and then:
(#PCDATA|%inline.class;)
and:
(#PCDATA|title|subtitle|author|para|poem|song|%inline.class;)
Is this something anyone else has come across, perhaps in other
software? And should we construct DTDs in such a way as to work
with the software out there? Or should the fact that the DTD is
technically correct be sufficient?
I'd be interested to know what you think.
Thanks,
Donna
--
dms(at)zetnet.co.uk
Different Worlds: http://www.users.zetnet.co.uk/dms/
Pictures of the Past, The Leslie Smith Family,
An Introduction to HTML, Copyright Considerations
Online Bookshop
HWG: hwg-gutenberg-dtds mailing list archives,
maintained by Webmasters @ IWA