contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
SGML Open Catalog: example of an application-specific catalog  
Introduction: SGML Open Catalog library examples  

Sample

  --
   Example of an application-specific SGML Open catalog

   This catalog maps a system identifier to a new system identifier
   that represents the actual location of a DTD, and maps several
   external text entities to system identifiers that represent their
   actual locations. The entries in an application-specific catalog
   will vary according to your requirements. If you have both a general
   catalog (with a name like "public.cat"), and an application-specific
   catalog (like "appl.cat"), you can use both together, separating the
   names with a system-specific PATH separator.

   For example, in UNIX:
     -d socat "public.cat:appl.cat"
   or in Windows:
     -d socat "public.cat;appl.cat"

  --


  -- Map the system identifier as used in the document instance
     ("basic.dtd") to a different system identifier. This permits
     relocation of a system object without requiring a corresponding change
     in a document instance.
  --
  SYSTEM   "basic.dtd" 
     "c:/opt/local/sgml/basic.dtd"


  -- Base directory, subsequent system identifiers are relative to this.
     If the location of all text objects is changed to another common
     directory, only the BASE needs to be changed.
  --
  BASE    'e:/prj/socat/eum44/'

  -- Map some external text entities to their system identifiers --
  ENTITY   "enum"
     "xfenum.sgm"
  ENTITY   "methods"
     "xfmethod.sgm"
  ENTITY   "object"
     "xfobject.sgm"
  ENTITY   "proto"
     "xfproto.sgm"
  ENTITY   "sharem"
     "xfsharem.sgm"
  ENTITY   "struct"
     "xfstruct.sgm"
  ENTITY   "symbol"
     "xfsymbol.sgm"
  ENTITY   "type"
     "xftype.sgm"

 
----  

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:45 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.