[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Difficulties with catalog
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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.