Changes

Jump to navigation Jump to search
98 bytes added ,  16:01, 13 July 2022
no edit summary
===Console & Server Mode===
To enable Entity Resolving in Console Mode, enable the {{Option|DTD}} option and assign the path to your XML catalog file to the {{Option|CATFILECATALOG}} option. All subsequent commands for adding documents will use the specified catalog file to resolve entities.
Paths to your catalog file and the actual DTDs are either absolute or relative to the ''current working directory''. When using BaseX in client-server mode, they are resolved against the working directory of the ''server''.
The runtime properties of the catalog resolver can be changed by setting system properties, or adding a ''CatalogManager.properties'' file to the classpath. By default, and if the system property {{Code|xml.catalog.ignoreMissing}} is not assigned, no warnings will be output to standard error if the properties file or resources linked from that file are not found. See [https://xerces.apache.org/xml-commons/components/resolver/resolver-article.html#ctrlresolver Controlling the Catalog Resolver] for more information.
When using a catalog within an XQuery Module, the global <code>db:catfilecatalog</code> option may not be set in this module. You can set it via pragma instead:
<syntaxhighlight lang="xquery">
(# db:catfile catalog xmlcatalog/catalog.xml #) {
xslt:transform(db:open('acme_content')[1], '../acmecustom/acmehtml.xsl')
}
* [http://xml.apache.org/commons/components/resolver/resolver-article.html Apache XML Commons Article on Entity Resolving]
* [http://java.sun.com/webservices/docs/1.6/jaxb/catalog.html XML Entity and URI Resolvers], Sun
 
=Changelog=
 
;Version 10.0
* Updated: <code>CATFILE</code> option renamed to {{Option|CATALOG}}.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu