From: Hoehle, Joerg-C. <Joe...@t-...> - 2003-05-09 15:41:06
|
Hi, I installed a couple more packages (sgml-tools & more) from suse-Linux 8.1 I want to validate the XML documentation, as Sam asked me to do. Could somebody please explain me how to deal with doc> nsgmls -E10 -s -wxml impnotes.xml nsgmls:/usr/share/sgml/db42xml/docbookx.dtd:112:15:W: named character reference nsgmls:/usr/share/sgml/db42xml/docbookx.dtd:112:17:E: "X20AC" is not a function name nsgmls:/usr/share/sgml/db42xml/ent/iso-amsa.ent:8:17:W: named character reference nsgmls:/usr/share/sgml/db42xml/ent/iso-amsa.ent:8:19:E: "X21B6" is not a function name My impnotes.xml says: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "/usr/share/sgml/db42xml/docbookx.dtd" [ Nothing changes when I say doc> nsgmls -E10 -s -wxml -c /usr/share/sgml/CATALOG.db42xml impnotes.xml nsgmls:/usr/share/sgml/db42xml/docbookx.dtd:112:15:W: named character reference nsgmls:/usr/share/sgml/db42xml/docbookx.dtd:112:17:E: "X20AC" is not a function name [...] The first error (line 112) is about: <![%xml.features;[ <!ENTITY euro "€"><!-- euro sign, U+20AC NEW --> ]]> Any ideas? Where's the nsgmls documentation? 1000 similar errors later, it then complains nsgmls:/usr/share/sgml/db42xml/dbpoolx.mod:790:39:E: omitted tag minimization parameter can be omitted only if "OMITTAG NO" is specified on the SGML declaration nsgmls:/usr/share/sgml/db42xml/dbpoolx.mod:811:45:E: omitted tag minimization parameter can be omitted only if "OMITTAG NO" is specified on the SGML declaration about <!ELEMENT title %ho; (%title.char.mix;)*> Then it gets to impnotes... nsgmls:impnotes.xml:39:52:E: character data is not allowed here nsgmls:impbody.xml:1506:72:E: character data is not allowed here nsgmls:impbody.xml:1568:21:E: document type does not allow element "ENTRY" here [10 times more for the same line omitted] nsgmls:impbody.xml:1568:21:E: document type does not allow element "ENTRY" here nsgmls:impbody.xml:1568:21:E: end tag for "ENTRY" omitted, but its declaration does not permit this nsgmls:impbody.xml:1568:21: start tag was here A couple hundred more complaints about ENTRY follow for impbody, impext and impbyte.xml. Maybe it does not like <entry/> (among others?). Among the above errors, there's one erlative to ENTRY: calstblx.dtd:181:<!ELEMENT entry %ho; (%tbl.entry.mdl;)*> calstblx.dtd:183:<!ATTLIST entry nsgmls:/usr/share/sgml/db42xml/calstblx.dtd:181:38:E: omitted tag minimization parameter can be omitted only if "OMITTAG NO" is specified on the SGML declaration BTW, how to get Emacs psgml mode to handle the multi-file XML impnotes? Moving inside impnotes.xml Emacs seems happy, but in e.g. impbody.xml it is not, and can't figure out the DTD. I tried setting sgml-default-document-name to no avail (what should it be?). The top entry in db42xml/ChangeLog says: 2002-07-17 Norman Walsh <nw...@us...> * calstblx.dtd, catalog.xml, dbcentx.mod, dbgenent.mod, dbhierx.mod, dbnotnx.mod, dbpoolx.mod, docbook.cat, docbookx.dtd: DocBook XML V4.2 released Thanks for your help, Jorg Hohle. |