On 12/13/2011 10:04 PM, Orahood, Andy wrote: > We're using ditac integrated into a Java application, so accessing it through > its API, and we're transforming specialized topics with doctype declarations > that look like this: > > <!DOCTYPE topic PUBLIC "urn:pubid:org.kuali.kits.kms:doctypes:dita:topic" > "http://www.indiana.edu/~worklist/dita-prototypes/org.kuali.kits.kms/doctypes/topic/dtd/kbtopic.dtd"> > > When rendering, we're getting the error > > file:/mnt/kms/snd/svn/trunk/bbbe.ditamap:5:99: cannot load > "file:/mnt/kms/snd/svn/trunk/bbbe.dita": > http://www.indiana.edu/~worklist/dita-prototypes/org.kuali.kits.kms/doctypes/base/dtd/highlightDomain.ent > > which looks to me like it doesn't know where to find the highlightDomain.ent > file. As I understand it, ditac should be using its catalog.xml file to > resolve these built-in dita files that it can't find in my specialization > plugin, is there something special that needs to be done when using ditac > integrated into into a Java app that happens automatically on the > command-line? >
[1] Please read what must done in terms of XML catalog specification in this chapter: http://www.xmlmind.com/ditac/_distrib/doc/manual/specialize.html#specialize [2] Please specify system property xml.catalog.files (i.e. System.setProperty("xml.catalog.files", XXX)) before invoking any ditac code. The value of property xml.catalog.files is a list of URLs or filenames separated by ';'. --> If you are curious, please read this source code ditac_install_dir/src/com/xmlmind/ditac/util//ResolverFactoryImpl.java (For example, reading this short and simple code would show you that if you set system property DITAC_CATALOG_RESOLVER_VERBOSITY to 10, you'll get trace messages.) See also: * http://www.xmlmind.com/ditac/_distrib/doc/api/com/xmlmind/ditac/util/Resolve.html * http://www.xmlmind.com/ditac/_distrib/doc/api/com/xmlmind/ditac/util/ResolverFactory.html * http://www.xmlmind.com/ditac/_distrib/doc/api/com/xmlmind/ditac/util/ResolverFactoryImpl.html -- XMLmind DITA Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/ditac-support

