Changes

Jump to navigation Jump to search
346 bytes removed ,  13:34, 20 July 2022
m
Text replacement - "db:pre(" to "db:get("
This article is part of the [[Advanced User's Guide]]. It clarifies how to deal with mapping system IDs (DTD locations) and URIs to local resources when parsing and transforming XML data.
{{Announce|Changes Changed with Version 10:}}
* The [https://docs.oracle.com/en/java/javase/11/core/xml-catalog-api1.html Java 11: XML Catalog API] is used to resolve references to external resources.
<syntaxhighlight lang="xquery">
(# db:catalog xmlcatalog/catalog.xml #) {
xslt:transform(db:preget('acme_content')[1], '../acmecustom/acmehtml.xsl')
}
</syntaxhighlight>
The catalog location in the pragma can be given relative to the current working directory (the directory that is returned by <code>file:current-dir()</code>) or as an absolute operating system path. The catalog location in the pragma is not an XQuery expression; no concatenation or other operations may occur in the pragma, and the location string must not be surrounded by quotes.
 
==Links==
 
* [https://docs.oracle.com/en/java/javase/11/core/xml-catalog-api1.html Java 11: XML Catalog API]
* [https://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html XML Catalogs. OASIS Standard, Version 1.1. 07-October-2005]
* [https://en.wikipedia.org/wiki/Document_Type_Definition Wikipedia on Document Type Definitions]
=Changelog=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu