[oXygen-user] different results using TRANG directlyand fromwithin oXygen
Sorin Ristache
Fri May 30 06:44:43 CDT 2008
Yes, the Trang class name is correct. oxygen.jar includes some Xerces
patches too so you have to add lib/xercesImpl.jar too to the classpath.
I think you will need to add log4j.jar too to avoid such
NoClassDefFoundError errors:
<classpath>
<pathelement location="lib/oxygen.jar"/>
<pathelement location="lib/xercesImpl.jar"/>
<pathelement location="lib/log4j.jar"/>
<pathelement location="lib/trang.jar"/>
</classpath>
Regards,
Sorin
Theun Fleer wrote:
> hi Sorin
>
> ah, thanks...but when I use your solution, I get the following messages:
> [echo] trang: tmp/be-jur-com.xsrng from lib C:\Program
> Files\Oxygen\Oxygen XML Editor 9.0/lib
> [java] Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/xerces/xni/grammars/XMLGrammarPool
> [java] at
> com.thaiopensource.xml.sax.Jaxp11XMLReaderCreator.createXMLReader(Unknow
> n Source)
> [java] at
> com.thaiopensource.relaxng.parse.sax.SAXParseable.parse(Unknown Source)
> [java] at
> com.thaiopensource.relaxng.input.parse.SchemaBuilderImpl.parse(Unknown
> Source)
> [java] at
> com.thaiopensource.relaxng.input.parse.SchemaBuilderImpl.parse(Unknown
> Source)
> [java] at
> com.thaiopensource.relaxng.input.parse.ParseInputFormat.load(Unknown
> Source)
> [java] at com.thaiopensource.relaxng.translate.Driver.doMain(Unknown
> Source)
> [java] at com.thaiopensource.relaxng.translate.Driver.main(Unknown
> Source)
> [java] Caused by: java.lang.ClassNotFoundException:
> org.apache.xerces.xni.grammars.XMLGrammarPool
> ... etc
>
> Is the classname com.thaiopensource.relaxng.translate.Driver (for TRANG)
> correct?
> Because when I comment the line <pathelement location="lib/oxygen.jar"/>
> it runs but results in an incorrect DTD.
>
> groet
> Theun
More information about the oXygen-user
mailing list