WD6: SGML: Parser Errors Importing .sgm FileLast reviewed: March 6, 1998Article ID: Q125887 |
The information in this article applies to:
SYMPTOMSDuring 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 CAUSEWord 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.
RESOLUTIONUse one of the following methods to specify the location of your files:
Method 1Modify the DOCTYPE identifier so that the SYSTEM path points to the correct drive and directory:
<!DOCTYPE doc SYSTEM "n:\dtd\example.dtd"> Method 2: Use a Public Identifier to Locate the .dtd FileTo do this, use the following steps:
REFERENCES"SGML Author System Administrator's Guide," version 1.0, pages 92-93, 166, 169
|
Additional reference words: 1.0 sgmlword 6.0 6.0a 6.0c winword
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |