Can I have a public DTD with a catalog entry fallback
Posted: Tue Nov 01, 2011 9:53 pm
I have DITA shell DTDs in a project that I want to point to at a url in a PUBLIC DOCTYPE Declaration like this:
However, I want to be able to validate my files when there is no internet access so I want to point to the local versions of these DTDs. I thought that the way I do that is to create a catalog file that recognizes the PUBLIC identifier and associates it with a local uri. I create a catalog and entered it in Oxygen's XML Catalog page. It looks like this:
I turn off my wifi and try to validate the document and I get Schematron errors as it cannot reach the supplied url:
Thanks,
Andy
Code: Select all
<!DOCTYPE topic PUBLIC "urn:pubid:org.kuali.kits.kms:doctypes:dita:topic"
"https://svn.kuali.org/repos/kits/kms-dita-prototypes/org.kuali.kits.kms/doctypes/topic/dtd/kbtopic.dtd">
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.1//EN" "http://www.oasis-open.org/committees/entity/release/1.1/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<public publicId="urn:pubid:org.kuali.kits.kms:doctypes:dita:topic" uri="../org.kuali.kits.kms/doctypes/topic/dtd/kbtopic.dtd"/>
</catalog>
I don't understand how to accomplish my goal, can someone please help.SystemID: /Users/jorahood/work/git/dita-prototypes/dmm3/test.dita
Main validation file: /Users/jorahood/work/git/dita-prototypes/dmm3/test.dita
Scenario name: DITA
Engine name: ISO Schematron (XSLT 2.0)
Severity: fatal
Description: svn.kuali.org (https://svn.kuali.org/repos/kits/kms-di ... btopic.dtd)
SystemID: /Users/jorahood/work/git/dita-prototypes/dmm3/test.dita
Main validation file: /Users/jorahood/work/git/dita-prototypes/dmm3/test.dita
Scenario name: DITA
Engine name: ISO Schematron (XSLT 2.0)
Severity: error
Description: I/O error reported by XML parser processing file:/Users/jorahood/work/git/dita-prototypes/dmm3/test.dita: svn.kuali.org (https://svn.kuali.org/repos/kits/kms-di ... btopic.dtd)
Thanks,
Andy