At 2018-10-10T21:39:26+05:30, N. Raghavendra wrote: > At 2018-10-10T20:51:26+05:30, N. Raghavendra wrote: > >> I need some help in using XML Calabash with DocBook: how do I tell >> Calabash to use an XML catalog, and how do I specify the location of the >> catalog to Calabash? > > I found the answer at https://github.com/transpect/unzip-extension: > > $ cd /d/xmlcalabash-1.1.22-98 > > $ java \ > -cp xmlcalabash-1.1.22-98.jar \ > -Dxml.catalog.files=/c/catalog.xml \ > com.xmlcalabash.drivers.Main \ > -E org.xmlresolver.Resolver \ > -i source=/b/doc.xml \ > xpl/validate.xpl \ > > /dev/null
Just for the record in case another novice like me reaches here while searching for something similar to this: the use of the pipeline file "xpl/validate.xpl" in the above command can be avoided by specifying it on the command line as follows: $ java \ -cp xmlcalabash-1.1.22-98.jar \ -Dxml.catalog.files=/c/catalog.xml \ com.xmlcalabash.drivers.Main \ -E org.xmlresolver.Resolver \ -i source=/b/doc.xml \ -d "application/relax-ng-compact-syntax"@schema=/a/schema.rnc \ -s p:validate-with-relax-ng \ > /dev/null References: http://xmlcalabash.com/docs/reference/cfg.data-input.html (Data input) http://xmlcalabash.com/docs/ (Simple pipelines from the command-line) https://www.iana.org/assignments/media-types/application/relax-ng-compact-syntax (MIME type for RELAX NG Compact syntax schemas) Regards, Raghu. -- N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/ --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org