parsing spec.dtd & XML spec with nsgmls Re: W3C spec.dtd

Stefan Mintert mintert at irb.informatik.uni-dortmund.de
Wed Mar 3 14:00:44 GMT 1999




---------
 > There's a very nice document at:
 > 
 > http://www.w3.org/XML/1998/06/xmlspec-report-19980910.htm
 > 
 > Cheers,
 > Jarle Stabell

Thanks, Jarle!



Now I try to parse the XML spec (REC-xml-19980210.xml) and the spec.dtd
(copied from the above URL) with nsgmls. I'm using nsgmls 1.3 on SunOS 5.6
(Solaris 2). I already parsed xml instances without problems but in this case
it doesn't work. Following are the first lines of nsgmls output:

sm at brown(/tmp/sm){590}: /tmp/sm/sp-1.3/nsgmls/nsgmls -E 10 -w xml -s REC-xml-19980210.xml
/tmp/sm/sp-1.3/nsgmls/nsgmls:spec.dtd:60:17:W: named character reference
/tmp/sm/sp-1.3/nsgmls/nsgmls:spec.dtd:60:19:E: "X2014" is not a function name
/tmp/sm/sp-1.3/nsgmls/nsgmls:spec.dtd:61:17:W: named character reference
/tmp/sm/sp-1.3/nsgmls/nsgmls:spec.dtd:61:19:E: "X201C" is not a function name
/tmp/sm/sp-1.3/nsgmls/nsgmls:spec.dtd:62:17:W: named character reference
/tmp/sm/sp-1.3/nsgmls/nsgmls:spec.dtd:62:19:E: "X201D" is not a function name
/tmp/sm/sp-1.3/nsgmls/nsgmls:REC-xml-19980210.xml:101:9:E: document type does not allow element "ABSTRACT" here
/tmp/sm/sp-1.3/nsgmls/nsgmls:REC-xml-19980210.xml:142:8:E: document type does not allow element "PUBSTMT" here
/tmp/sm/sp-1.3/nsgmls/nsgmls:REC-xml-19980210.xml:146:11:E: document type does not allow element "SOURCEDESC" here
/tmp/sm/sp-1.3/nsgmls/nsgmls:REC-xml-19980210.xml:149:10:E: document type does not allow element "LANGUSAGE" here
/tmp/sm/sp-1.3/nsgmls/nsgmls:REC-xml-19980210.xml:153:13:E: document type does not allow element "REVISIONDESC" here
/tmp/sm/sp-1.3/nsgmls/nsgmls:REC-xml-19980210.xml:189:36:W: character "<" is the first character of a delimiter but occurred as data
/tmp/sm/sp-1.3/nsgmls/nsgmls:REC-xml-19980210.xml:371:8:E: end tag for "HEADER" which is not finished
/tmp/sm/sp-1.3/nsgmls/nsgmls:REC-xml-19980210.xml:787:7:W: character "<" is the first character of a delimiter but occurred as data


I enabled XML support as described on http://www.jclark.com/sp/xml.htm


      Set the SP_CHARSET_FIXED environment variable to YES. 
      Set the SP_ENCODING environment variable to XML. 
      Set the SGML_CATALOG_FILES environment variable to point to the file
	pubtext/xml.soc.  
      Use the -wxml option. setenv SP_CHARSET_FIXED YES



What's wrong?  Any help is appreciated. Thanks in advance.




Bye,

 Stefan.

+-----------------------------------------------------------+
  Stefan Mintert
       UniDo:    mintert at irb.informatik.uni-dortmund.de
       private:  stefan at mintert.com
+-----------------------------------------------------------+

        "let the music keep our spirits high..."

                                (Jackson Browne)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list