Re: Re: writing a DTD with TDTD and using it with psgml
Peter Flynn <[email protected]> Sat, 07 Feb 2004 00:52:15 +0000
| Newsgroups | gmane.emacs.psgml.user |
|---|---|
| Organization | Silmaril Consultants |
| Message-ID | <[email protected]> |
On Fri, 2004-02-06 at 11:52, Jochen Hayek wrote: > But I attached the DTD from the TDTD tutorial. Thank you. Who wrote this? It's broken. There must not be an XML Declaration in a DTD, so you must delete the first line which says <?xml version="1.0"?>. And the declaration for <list> is broken, it must be: <!ELEMENT list (item)+ > so insert those parentheses. Then it will work. Save it as tdtd.dtd We must find out who distributes this broken DTD. > I am not successful at writing the correct DOCTYPE line > for that new file, at least not with a "... system ..." id. Create a new file test.xml <?xml version="1.0"?> <!DOCTYPE book SYSTEM "tdtd.dtd"> Then use C-c C-p to make Emacs read it, then C-c C-e to insert elements. > (And just for the experiments I don't want to extend the catalogue.) > psgml will just not parse the right DTD for me. You must make the file name in the DocType Declaration the same as the name of the DTD file on disk. You don't need a catalog, just put it in the same directory as the documents you create. ///Peter ------------------------------------------------------- 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