oasis.compile-catalog-resource

function

Library: OASIS catalogs (OMOASISCATALOGS)
Import : omoasiscatalogs.xmd

Returns: OASIS catalog compiled from the given URI


Declaration
export catalog-type function
   compile-catalog-resource            value string                uri
                                   via value entity-resolver       resolver   optional
                            preference value resolution-preference preference optional
      

Argument definitions

uri
the catalog URI
resolver
an entity-resolver to be used for resolving the parts of the catalog being compiled
preference
either oasis.prefer-public or oasis.prefer-system; the latter is the default


Purpose

Function oasis.compile-catalog-resource loads an OASIS catalog file from the specified uri and compiles from it an instance of oasis.catalog-type. In case of a failure, the function throws an oasis.compile-error.

Other Library Functions