If you have a look at the root installation folder of your DITA-OT, you will find a file named catalog-dita.xml. This an XML catalog aimed to provide resolution schemes for XML entities. Excerpt from the abstract of the XML catalogs specification:
this OASIS Standard defines an entity catalog that maps both external identifiers and arbitrary URI references to URI references.
Open the catalog-dita.xml file, and search plugin:org.dita.xhtml
. You will find this entry:
<rewriteURI uriStartString='plugin:org.dita.xhtml:' rewritePrefix='plugins/org.dita.xhtml/'/>
Thus any <xsl:import href="...">
(and also the <xsl:include href="...">
and document()
function) with a reference uri that starts with plugin:org.dita.xhtml:
will be "redirected" the folder plugins/org.dita.xhtml/
so that in your case, the file plugins/org.dita.xhtml/xsl/dita2html-base.xsl
, relatively to the DITA-OT installation folder, will be searched.
But how is this catalog used?
For example in $DITAOT_DIR$\plugins\org.dita.xhtml\build_general.xml
(it is broadly used in the DITA-OT so might find these instructions in almost all build_xxx.xml files), you'll find something like:
<xslt basedir="${dita.temp.dir}" destdir="${output.dir}" includesfile="${dita.temp.dir}${file.separator}${fullditatopicfile}" reloadstylesheet="${dita.xhtml.reloadstylesheet}" classpathref="dost.class.path" extension="${out.ext}" style="${args.xsl}" filenameparameter="FILENAME" filedirparameter="FILEDIR">
<!-- A huge bunch of parameters comes here ... -->
<param name="[...]" expression="[...]"></param>
<xmlcatalog refid="dita.catalog"></xmlcatalog>
</xslt>
This is meant to invoke an XSL-T transformation (<xslt>
here is an ant task) with the catalog that will provide the appropriate URI mappings for all the resources needed during transformation. Obviously, dita.catalog
is a reference to a declared catalog elsewhere.
Open the $DITAOT_DIR$\plugins\org.dita.basebuild_init.xml
, you will find this:
<xmlcatalog id="dita.catalog">
<catalogpath path="${dita.plugin.org.dita.base.dir}/catalog-dita.xml"/>
</xmlcatalog>
Which points to the XML catalog that has been opened at the beginning.