How to associate catalog.xml with validate function

Monday, 26 January 2015 · 4 messages
MG
Marc van Grootel26 Jan 2015 13:55 #
Sorry, for the no subject, lost it somewhere ....
Quoted text · Marc van Grootel · 25 lines
On Mon, Jan 26, 2015 at 1:53 PM, Marc van Grootel <marc.van.grootel at 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
FE
Fabrice Etanchaud26 Jan 2015 13:57 #
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-----
Quoted text · Marc van Grootel · 31 lines
De : basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at 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 at 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
MG
Marc van Grootel26 Jan 2015 14:06 #
No I didn't. But I will now ;-) thanks
Quoted text · Fabrice Etanchaud · 49 lines
On Mon, Jan 26, 2015 at 1:57 PM, Fabrice Etanchaud <fetanchaud at 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 at mailman.uni-konstanz.de [mailto:basex-talk-bounces at 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 at 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
MG
Marc van Grootel26 Jan 2015 14:10 #
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
Quoted text · Marc van Grootel · 60 lines
On Mon, Jan 26, 2015 at 2:06 PM, Marc van Grootel <marc.van.grootel at gmail.com> wrote: > No I didn't. But I will now ;-) > thanks > > > On Mon, Jan 26, 2015 at 1:57 PM, Fabrice Etanchaud > <fetanchaud at 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 at mailman.uni-konstanz.de [mailto:basex-talk-bounces at 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 at 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
-- --Marc

⚡Generated with XQuery