Relax NG slowness

Having trouble installing Oxygen? Got a bug to report? Post it all here.
dsewell
Posts: 125
Joined: Mon Jun 09, 2003 6:02 pm
Location: Charlottesville, Virginia USA

Relax NG slowness

Post by dsewell »

I have recently started experimenting with oXygen and some complex Relax NG schemas (notably, the current draft version of the full schema for the P5 version of TEI, which will use Relax NG as its base schema language).

Validation and tag insight work fine, but oXygen is very slow in opening files when one or more open file is associated with a long Relax NG schema. This includes operations like creating a new XML file--oXygen spends maybe 20 seconds doing processing (on my G4 dual Power Mac) before it creates the new file window. Is this a problem connected to integrating oXygen with the Trang engine? (I can send the Relax NG schema if it would be helpful, or see http://www.tei-c.org/P5/Test/testall.compiled.rnc .)
tavy
Posts: 365
Joined: Thu Jul 01, 2004 12:29 pm

Post by tavy »

Hi,

I tried with the schema saved locally and oxygen works without problems so I think the problem is related with the fact that you are using the remote schema. This can be resolved if you set up an XML Catalog to resolve it locally.
For example for "http://www.tei-c.org/P5/Test/testall.compiled.rnc" schema follow the next steps to create and add a catalog :
1. Download "testall.compiled.rnc" in some directory.
2. Create a catalog like this :

Code: Select all


 <?xml version="1.0" encoding="UTF-8"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<system systemId="http://www.tei-c.org/P5/Test/testall.compiled.rnc" uri="testall.compiled.rnc"/>
</catalog>
3. Save the catalog in the same directoy as your schema file.
4. Add the catalog in oXygen catalogs list from Options->Preferences->XML Catalog.
5. Restart oXygen.

Best Regards,
Octavian
dsewell
Posts: 125
Joined: Mon Jun 09, 2003 6:02 pm
Location: Charlottesville, Virginia USA

Location of schema not the problem

Post by dsewell »

Octavian,

In fact I was using a local copy of the Relax NG schema, so my XML file begins like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="file:/Volumes/Homes/Users/drs2n/Temp/00P5test/testall.compiled.rnc" type="compact"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
If you can't reproduce the slow behavior, maybe there is some unrelated issue that is causing problems on my system.[/code]
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi David,

Hmm...
Octavian tested the current development stream that improved a lot the RNG support. With 5.0 we get a little more time spent in loading the schema file but it is in the range of 4-5 seconds, not 20.

Best Regards,
George
Post Reply