lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] [PATCH] Fix XRC validation errors


From: Vadim Zeitlin
Subject: Re: [lmi] [PATCH] Fix XRC validation errors
Date: Fri, 17 Apr 2015 18:23:11 +0200

On Fri, 17 Apr 2015 14:33:50 +0000 Greg Chicares <address@hidden> wrote:

GC> On 2015-04-07 20:16, Vadim Zeitlin wrote:
GC> [...]
GC> > http://wxwidgets.blogspot.com/2015/04/validating-xrc.html
GC> [...]
GC> >  Combining the instructions from the blog with the schema above, you 
should
GC> > be able to run
GC> > 
GC> >   java -jar jing.jar -C catalog.xml -c lmi_xrc_schema.rnc *.xrc
GC> 
GC> Reading the blog, I gather that '-C catalog.xml' is optional--correct?

 Yes, it is option -- but rather recommended, because downloading the
schema every time adds an annoying delay and, of course, there is also a
possibility of failure if anything goes wrong with the network.

 Alternatively, you can just edit lmi_xrc_schema.rnc to use the local file
path, i.e. replace the

        include "http://www.wxwidgets.org/wxxrc"; {

line with something like

        include 
"file:///c:/opt/lmi/3rdpaty/wxWidgets/misc/schema/xrc_schema.rnc" {


GC> Does it simply cache a downloaded copy of the wxwidgets.org schema,
GC> affecting only the efficiency with which the schema is run, but not
GC> the outcome of schema validation?

 I'm not an XML expert (thankfully), but I think the catalog is a
redirection rather than a cache, i.e. if you do use a catalog, the local
file indicated in it will be used, without even trying the original URI.
Of course, if your local file is a copy of that URI contents, it does work
as a cache, but you also can modify it if you wish, and this can be useful,
e.g. to fix the version of the schema being used instead of using whichever
is the latest version at http://www.wxwidgets.org/wxxrc

 Regards,
VZ

reply via email to

[Prev in Thread] Current Thread [Next in Thread]