Problem with XInclude after Upgrade to oXygen 6.1 on OS X

Having trouble installing Oxygen? Got a bug to report? Post it all here.
markusk
Posts: 1
Joined: Sun Jul 24, 2005 3:00 pm

Problem with XInclude after Upgrade to oXygen 6.1 on OS X

Post by markusk »

After upgrading from oXygen 6.0 to version 6.1.1 on OS X (10.3.9 german, Java 1.4.2_05) the activation of XInclude breaks the application: The next time oXygen is started, projects won't open anymore ('No values') and options can't be changed anymore (clicking 'OK' or 'Apply' has no effect).

Also the result of a XEP transformation is not as expected (supefluous linebreaks in lists, images are not scaled, ...), maybe because docbook's xep extensions fail?
g3org3
Posts: 5
Joined: Fri Mar 04, 2005 12:10 am

Problem with XInclude after Upgrade to oXygen 6.1 on OS X

Post by g3org3 »

I'm having a similar problem. I enabled xinclude and now I can't open my projects. I get the error:

Code: Select all

Cannot open the specified file: Feature 'http://apache.org/xml/features/xinclude' is not recognized.
I can't change any options in the preferences either.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

A version of the Xerces XML parser older than 2.7.0 present in the endorsed directory of the Java runtime environment running <oXygen/> creates a conflict with the Xerces version that comes with <oXygen/>. A quick workaround is to send the parameter

Code: Select all

org.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeAwareParserConfiguration
to the Java virtual machine. On Mac OS X this is done by adding

Code: Select all

-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeAwareParserConfiguration
to the VMOptions parameter in the Info.plist file located in [oxygen.app]/Contents. On Windows just append the same text as for Mac OS to the parameter Virtual Machine Parameters in the file [oXygen-install-dir]/oxygen6.1.ini.

The alternative is to remove the Xerces jar file from the endorsed directory of your JRE.

Best regards,
Sorin
Post Reply