Arbortext Command Language > Functions by Alphabetical Listing > catalog_resolve
  
catalog_resolve
catalog_resolve (keyword[, p1[, p2[, p3[, catalogpath]]]])
This function is a general catalog lookup routine. The keyword argument specifies the catalog entry to search. The value of the p1, p2, and p3 parameters depends on the keyword specified. The following table describes the values for each of the valid keywords.
keyword
p1
p2
p3
DOCTYPE
name
pubid
sysid
ENTITY
name
pubid
sysid
NOTATION
name
pubid
sysid
PUBLIC
pubid
sysid
SYSTEM
sysid
DTDDECL
pubid
SGMLDECL
FOSI
URI
uri
pubid is the public identifier and sysid is the system identifier.
The catalogpath argument specifies a list of directories to search for the catalog file. If it is not specified, Arbortext Editor searches the path list specified in the set catalogpath option, which is initialized by the APTCATPATH environment variable.
uri is the namespace URI.
When specifying the catalogpath argument, use null for trailing unused parameters. For example, catalog_resolve("SGMLDECL", "", "", "", catpath).
The public_id_path(pubid, "", catpath) function is equivalent to catalog_resolve("PUBLIC", pubid, "", "", catpath).
The dtd_decl_path(pubid, catpath) function is equivalent to catalog_resolve("DTDDECL", pubid, "", "", catpath).
The entity_resolve(name, pubid, sysid, catpath) function is equivalent to catalog_resolve("ENTITY", name, pubid, sysid, catpath).
The uri_resolve(uri, catpath) function is equivalent to catalog_resolve("URI", uri, "", "", catpath).
Related Topics
entity_resolve function
public_id_path function
dtd_decl_path function
catalog_public_ids function
path_public_ids function
Catalog files
Catalog path and file