This function provides an interface to use XML catalogs within templates.
The uri
parameter specifies an URI (or system identifier) to be resolved.
When this is an absolute URI (it has a scheme component), the function returns the mapping of that URI in the loaded XML catalog(s). If no mapping exists, the original URI is returned.
When the passed string is a relative URI and the contextURI
parameter is also specified,
the initial URI will be resolved against the context URI and the result returned by the function.
Otherwise, the function will return the original value of the uri
parameter.
Parameters:
uri
contextURI
uri
parameter) will be resolved.
The value passed in this parameter must be either an absolute URI or a local file pathname (which will be converted to the absolute URL).
The context URI must be already resolved. It will not be passed to the XML catalog resolver before using it!
uri
parameter.
You can specify the locations of XML catalog files
(both local file pathnames and absolute URLs) either in the generator GUI or
on the command line using -xmlcatalog
option.
Once specified, the XML catalog files will be loaded the first before processing of the data source XML files.