Hussein,

I did as you suggest first of all to check that my schema was working. If I put 
the RelaxNG schema in the same directory as the config file it all works fine. 
However, if I put it elsewhere and tried to use a catalog to find it, I could 
not make it work. However, I have now got it working as I want.

My mistake was thinking that "Options:Reload All Configurations" was reloading 
my modified catalog. Is there any way to reload the catalog files without 
completely restarting XXE?

Philip

----- Original Message ----- 
From: "Hussein Shafie" <[email protected]>
To: "Philip Nye" <philip at engarts.com>
Cc: <xmleditor-support at xmlmind.com>
Sent: Monday, April 04, 2005 9:10 AM
Subject: Re: [XXE] Finding Relax schema


> Philip Nye wrote:
>> I cannot persuade XXE to find my RelaxNG schema where I want to store it. I 
>> access the same source from several different hosts so I want to use local 
>> catalogs to resolve the location.
>> 
>> I have the location in my config file:
>>   <relaxng location="myschema.rng" .../>
>> 
>> Does this resolve via any XML Catalogs in force? I have tried all these 
>> elements in my catalog but to no avail:
>> 
>>   <public publicId="NAME FROM RELAXNG ELEMENT" uri="my/local/location"/>
>>   <system systemId="myschema.rng" uri="my/local/location"/>
>>   <uri name="myschema.rng" uri="my/local/location"/>
>> 
>> These work for my DTDs but I cannot get them to do so for Relax schemas.
> 
> All URLs found in config files are resolved using XML Catalogs (mainly 
> to deal with the "xxe-config:" prefix).
> 
> But I am not sure your problem is related to the proper use of XML catalogs.
> 
> Please do this:
> 
> [1] Add:
> 
> <relaxng location="myschema.rng" .../>
> 
> to your config file.
> 
> [2] Copy myschema.rng to the directory containing your config file.
> 
> [3] Remove everything related to myschema.rng from all XML catalogs.
> 
> [4] Remove <?xxe-relaxng-schema?> processing instructions from your 
> documents.
> 
> [5] Add a proper <detect> configuration element to your config file.
> 
> If this does not work, do not hesitate to send me all the files I need 
> (config, schema, css, template documents, etc) to help you solving this 
> problem.
> 
>

Reply via email to