Re: writing a DTD with TDTD and using it with psgml
Karl Eichwalder <[email protected]> Mon, 09 Feb 2004 14:09:06 +0100
| Newsgroups | gmane.emacs.psgml.user |
|---|---|
| Message-ID | <[email protected]> |
Jochen Hayek <[email protected]> writes: > And it is also included in the package "psgml" of the SuSE distro up > to 9.0, I Bcc'ed this to Karl Eichwalder in order to kindly ask him to > get this right. Thanks for notifying. I'll fix the documentation. <!ELEMENT list (item)+ > or <!ELEMENT list (item+) > will do the trick. The XML declaration within the DTD does not seem to do any harm; nsgmls simply ignores it, but xmllint makes use of it, in case there is an entity definition as follows: <!ENTITY salut "Grüß Gott" > Using SGML, encodings in the DTD and the document instance must be the same (I guess), XML seems to allow mixed encodings like this: <?xml version="1.0" encoding="iso-8859-1" ?> <!-- the DTD --> <!-- ... --> <!ENTITY salut "Grüß Gott" > <!-- ... --> The docuemnt: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE book SYSTEM "tdtd.dtd"> <book> <para>&salut;</para> </book> ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn