This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 116823 - It's impossible to create binding based on Relax NG file.
Summary: It's impossible to create binding based on Relax NG file.
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: JAXB (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: _ gmpatil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-26 14:03 UTC by Michael Nazarov
Modified: 2008-08-01 18:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
SourcePathImplAddonsTestCDL.diff (5.85 KB, application/octet-stream)
2007-10-08 23:54 UTC, _ gmpatil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nazarov 2007-09-26 14:03:00 UTC
Product Version: NetBeans IDE Dev (Build 200709200000)
Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

I checked a lot of different Relax NG files provided by various related sites including files
specified as part of test specification for Relax NG and none of them were accepted by NetBeans.
All files caused error message: Error compiling schema.
First of all this issue is question: does Relax NG support really work or no. If no then someone
should care about if no then would somebody provide "correct" Relax NG file to create binding
based on?

BTW same for Relax NG compact...
Comment 1 _ gmpatil 2007-09-26 19:21:05 UTC
JAXB RI site[1] says support for DTD, Relax NG, Relax NG Compact as experimental and not supported.

I tried couple of Relax NG schema thru JAXB commandline command 'XJC' was unable to compile, got the same error as thru
Wizard. Hence the issue is not with NB tooling.

Please re-open if a particular schema is compilable thru commandline but Wizard is unable to compile.

[1] https://jaxb.dev.java.net/nonav/2.1.4/docs/xjc.html
Comment 2 _ hong_lin 2007-09-26 22:55:26 UTC
Girish,
You can't mark this issue as "INVALID". If the "RelexNG" schema is listed in the Schema Type list, we should support.
Otherwise, remove it from the list.

Myabe you should file an issue against JAXB.
Comment 3 _ gmpatil 2007-09-27 00:50:57 UTC
I am not sure how one can file bug against feature or function claimed as "experimental and not supported" [1][2].

Other option I have is to remove these options from the tooling or put warning message.
Removing these options, will also block if somebody wants try when incrementally some features are added by JAXB RI.

[1] https://jaxb.dev.java.net/nonav/2.1.4/docs/xjc.html
[2] http://www.nabble.com/Support-for-Relax-NG-in-JAXB-2.x-tf3124579.html#a8656826

Comment 4 Michael Nazarov 2007-09-27 12:58:49 UTC
I'm not sure how one can refer to external links while NB itself says nothing about "experimental" or "do not use our
feature, these options provided just for decoration".
Comment 5 _ gmpatil 2007-09-27 19:19:36 UTC
https://jaxb.dev.java.net is official JAXB Reference implementation site.
Official support mailing list of JAXB RI are archived at nabble.com currently.
Kohsuke Kawaguchi is the lead of the RI and also editor of the JAXB Spec. I referred to his answer in the second URL.

Comment 6 Michael Nazarov 2007-09-28 12:18:46 UTC
Nice to know lead of project knows about problems.
I'm talking about NetBeans' users -- is there any information or link on NetBeans' site about problems?
NetBeans is a platform not one more standalone IDE so it should be all-sufficient. If there is problems
then we should note about not somebody who knows.
Comment 7 _ gmpatil 2007-10-01 17:29:27 UTC
Added warning message when "Experimental, not supported" schema type is selected.

Please use build #3628 or later.
Comment 8 _ gmpatil 2007-10-08 23:54:54 UTC
Created attachment 50451 [details]
SourcePathImplAddonsTestCDL.diff
Comment 9 _ gmpatil 2007-10-08 23:56:16 UTC
Please ignore previous patch! meant for different issue.
Comment 10 tonybeckham 2008-08-01 18:01:34 UTC
Fix Verified, warning message added.

Product Version: NetBeans IDE Dev (Build 200808010201)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.4 running on i386; MacRoman; en_US (nb)