Yes, that makes sense. I forgot that I can just point to an app specific catalog which then references the other catalogs that I need and I can easily modify lookup by modifying this main app catalog.
Cheers, --Marc
On Mon, Jan 26, 2015 at 2:06 PM, Marc van Grootel marc.van.grootel@gmail.com wrote:
No I didn't. But I will now ;-) thanks
On Mon, Jan 26, 2015 at 1:57 PM, Fabrice Etanchaud fetanchaud@questel.com wrote:
Hello Marc,
Did you already take a look at the CATFILE property ?
http://docs.basex.org/wiki/Catalog_Resolver
Best regards, Fabrice
-----Message d'origine----- De : basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] De la part de Marc van Grootel Envoyé : lundi 26 janvier 2015 13:56 À : BaseX Objet : Re: [basex-talk] How to associate catalog.xml with validate function
Sorry, for the no subject, lost it somewhere ....
On Mon, Jan 26, 2015 at 1:53 PM, Marc van Grootel marc.van.grootel@gmail.com wrote:
Hi,
I'm trying to run validations on XML files that use DTD doctype declarations (DITA), I have a catalog.xml that contains the correct references for the entity resolver. DITA schemas refer to other entities but I have no control over where it loads them from so I get "Failed to read schema document 'urn:oasis:names:tc:dita:xsd:commonElementGrp.xsd:1.2', because 1) could not find the document; ...."
btw I also have Saxon present.
I have no clue what's the easiest way of using this catalog from XQuery code. In Ant I always used <xmlcatalog> element as part of the <xmlvalidate> task.
Or, maybe I could set some system property that forces the use of a specific catalog (I hope to avoid using one fixed catalog though).
Ideas?
--Marc
-- --Marc
-- --Marc