The omnilib File

The omnilib file is located under the Contenta home directory in the ../encaps/di/ entities directory. The file contains the path(s) to your documents’ DTD(s). The omnilib file is identified in the map file in the field OMNILIB.

Dynamic Import checks the OMNILIB field for the location of the omnilib file. When the omnilib file is located, it is referenced for the path to the DTD.

Example:

Assume that the following document (shown in part) is to be imported into SDL Contenta.

And the omnilib file found in the directory path indicated in the OMNILIB field contains:

Dynamic Import looks for the DTD as specified in the DOCTYPE entity in the document, in the path specified in the omnilib file. If your import fails with DTD not found errors, check:

  • the document for the public identifier; DOCTYPE entity.
  • that the OMNI field in the map file correctly indicates the directory where the omnilib file exists.
  • there is an entry in the omnilib file for the document's public identifier that points to the location of the DTD.
  • that the DTD exists in the path indicated in the omnilib file.