[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Difficulties with catalog
- From: Christophe Marchand <cmarchand@oxiane.com>
- To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
- Date: Wed, 18 Jul 2018 15:28:17 +0200
Hello,
I need a little bit of help with a catalog.
I have an XML file, that starts like this :
<!DOCTYPE imported SYSTEM "import.dtd">
<imported>
I want to use another file for DTD. So I declare a catalog
(org.xmlresolver from @ndw), like this :
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog
V1.0//EN"
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<system systemId="import.dtd"
uri="file:/opt/eu/lefebvre-sarrut/el/workflow/dp48/imported/import-xml.dtd"/>
</catalog>
When I run this from Java, xmlresolver logs this :
15:16:48.252 [main] DEBUG org.xmlresolver.Catalog - Loaded
xmlresolver.properties from classpath:
jar:file:/Users/cmarchand/.m2/repository/org/xmlresolver/xmlresolver/0.14.0/xmlresolver-0.14.0.jar!/xmlresolver.properties
15:16:48.295 [main] TRACE org.xmlresolver.Resolver -
resolveEntity([dtd],null,file:/Users/cmarchand/devel/bitbucket/sie-el-workflow-majp/src/test/resources/sgml/import.dtd)
15:16:48.295 [main] TRACE org.xmlresolver.ResourceResolver -
resolveEntity([dtd],file:/Users/cmarchand/devel/bitbucket/sie-el-workflow-majp/src/test/resources/sgml/import.dtd,null)
15:16:48.295 [main] TRACE org.xmlresolver.Catalog -
lookupEntity([dtd],null,file:/Users/cmarchand/devel/bitbucket/sie-el-workflow-majp/src/test/resources/sgml/import.dtd)
15:16:48.851 [main] TRACE org.xmlresolver.Catalog - Looking in
cp:/dp48-imported-catalog.xml
15:16:48.855 [main] TRACE org.xmlresolver.Catalog - Checking: system:
import.dtd
15:16:48.856 [main] TRACE org.xmlresolver.Catalog - Not found
cp:/ URI are implemented by a protocol handler that looks in classpath,
and I've checked that resources are available via new
URL("cp:/dp48-imported-catalog.xml").openStream()
It seems that entry system for import.dtd is not found in catalog.
Do I wrote something wrong ?
Best regards,
Christophe
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]