WD6: SGML: Parser Errors Importing .sgm File |
Q125887
During the import of an .sgm file, the converter produces parser errors similar to the following:
SGML Parser: Error at C:\...\FILENAME.sgm, line 1 in declaration parameter 4: Could not find external document type "DOC"
SGML Parser: SGML error at C:\...\FILENAME.sgm, line 2 at record start: No definition for DOC document type; "DOC O O ANY" assumed
Word cannot find the .dtd file. By design, Word looks at the declaration (.dcl) file to determine the location of the .dtd file. The location of the .dtd file is specified using the following syntax:
<!DOCTYPE doc SYSTEM "example.dtd">
Word expects to find the .map file in the same directory as the .dtd file.
When it does not, the parser errors occur.
Use one of the following methods to specify the location of your files:
<!DOCTYPE doc SYSTEM "n:\dtd\example.dtd">
<!DOCTYPE DOC PUBLIC "-//Microsoft Corp//DTD Sample DTD for SGML
Author//EN" >
PUBLIC "-//Microsoft Corp//DTD Sample DTD for SGML Author//EN"
"sample\sample.dtd" "SGML Author System Administrator's Guide," version 1.0, pages 92-93, 166, 169
Additional query words: 1.0 sgmlword 6.0 winword word6 kb_sgmlauthor SGMLa
Keywords : kbinterop kbdta kbsgml
Issue type :
Technology :
|
Last Reviewed: November 4, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |