Page 1 of 1

Relax NG slowness

Posted: Mon Nov 29, 2004 9:23 pm
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 .)

Posted: Tue Nov 30, 2004 11:21 am
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

Location of schema not the problem

Posted: Tue Nov 30, 2004 5:02 pm
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]

Posted: Tue Nov 30, 2004 7:35 pm
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