OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]
  • From: Stefan Mintert <mintert@irb.informatik.uni-dortmund.de>
  • To: xml-dev@ic.ac.uk
  • Date: Wed, 03 Mar 1999 15:00:30 +0100




---------
 > 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@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@irb.informatik.uni-dortmund.de
       private:  stefan@mintert.com
+-----------------------------------------------------------+

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

                                (Jackson Browne)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@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@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS