[relaxng-user] Trang and Jing Compilation Warnings

Tom Browder tbrowder at cox.net
Mon Jan 17 08:12:39 ICT 2005


> -----Original Message-----
> From: relaxng-user-bounces at relaxng.org 
> [mailto:relaxng-user-bounces at relaxng.org] On Behalf Of Tom Browder
> I just downloaded the trang and jing sources (version 20030619 from
> www.thaiopensource.com) to compile under Linux i386 (Fedora 
> Core 3) and everything compiled and works fine.  However, I 
> did get warnings in both packages about two deprecated classes:
> 
>   org.xml.sax.HandlerBase
>   org.xml.sax.Parser

After working with trang and jing some more I have found some problems.

I have enclosed three gzipped tar archives:

1.  jing_compile_test_err.tgz
2.  trang_compile_test_err.tgz
3.  jing_trang_test_err.tgz

I compiled and tested the jing and trang sources on a Fedora Core Linux i386
host using gcj version "Red Hat 3.4.2-6.fc3).  For both I got warnings about
deprecated functions.  Then I got errors running "test_jing" and
"test_trang."  The config logs, compile logs, and test logs for each are in
attached tgz files 1 and 2.

I took an XML instance, tgm4.xml, and hand built tgm4.rnc following quidance
from Eric van der List's "Relax NG" book from O'Reilly.  I used trang to
produce an rng file and an xsd file.  I ran jing on tgm4.xml using the rnc
and rng schemas.  Then I used the xsd schema with xmllint.

Results:
  jing -c tgm4.rnc tgm4.xml -> warning about ignored error: attribute
"noNamespace..." ignored
  jing tgm4.rng tgm4.xml -> unhandled exception from main
  xmllint --schema tgm4.xsd --noout tgm4.xml -> validates

I deleted the "noNamespace..." line from tgm4.xml and called the file
tgm4b.xml.  I ran the tests again.  Results:
  jing -c tgm4.rnc tgm4b.xml -> validates (silent completion)
  jing tgm4.rng tgm4b.xml -> unhandled exception from main
  xmllint --schema tgm4.xsd tgm4b.xml --noout -> validates

The 3rd tgz file has the results of running jing in all instances.

Thanks.

Tom Browder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trang_compile_test_err.tgz
Type: application/x-compressed
Size: 6617 bytes
Desc: not available
Url : http://relaxng.org/pipermail/relaxng-user/attachments/20050117/ec26f75a/trang_compile_test_err.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jing_compile_test_err.tgz
Type: application/x-compressed
Size: 5394 bytes
Desc: not available
Url : http://relaxng.org/pipermail/relaxng-user/attachments/20050117/ec26f75a/jing_compile_test_err.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jing_trang_test_err.tgz
Type: application/x-compressed
Size: 2618 bytes
Desc: not available
Url : http://relaxng.org/pipermail/relaxng-user/attachments/20050117/ec26f75a/jing_trang_test_err.bin


More information about the relaxng-user mailing list