Re: Relax NG plugins

Ross Lamont <[email protected]> Thu, 15 Jun 2017 15:24:15 +1000
Newsgroups gmane.comp.java.netbeans.devel
Message-ID <[email protected]>
Hi Jan,

As regards Relax NG validation, it looks like my plans will have to =
change significantly.  There are 2 problems:
 - Relax NG instance documents do not have any means of identifying the =
schema, in the way that XML Schema or DTD do.  The solution to this is =
to use xml-model processing instruction and a few other ideas I have.  =
This leads us to the next problem:
 - Validation in Netbeans is very out of date.  There is no support for =
xml-model and in fact it is pretty hard wired to only do basic =
validation via the SAX validation flags (not using more up to date =
setSchema etc).  So there=E2=80=99ll be a bit of work to get that going.

I will likely start a new nbdev thread about updating general validation =
support in Netbeans in the next few days.  Keep an eye out for it=E2=80=A6=


Cheers
Ross

> On 10 May 2017, at 7:35 am, Jan Tosovsky <[email protected]> wrote:
>=20
> On 2016-11-29 Ross Lamont wrote:
>>=20
>> I am thinking of writing a bunch of Relax NG plugins, principally to
>> support validation, but also probably some editor support as well. =
The
>> only existing plugin is the old one from NB 6.9, but I can=E2=80=99t =
find the
>> codebase for that one.
>>=20
>=20
> I am also interested in RNG validation. Have you made any progress?
>=20
> That old plugin seems to use JING validator internally.
>=20
> To my surprise that validator is nowadays already shipped with =
Netbeans. Can anybody clarify what this dependency is used for? (located =
in NetBeans 8.2\ide\modules\ext\jing.jar )=20
>=20
> I hope NB uses some kind of pluggable validation API which could be =
somehow extended via appropriate configuration. Now when jing.jar is =
already on classpath, I believe required changes won't be as complex as =
expected initially.
>=20
> Jan
>=20
> PS: I am willing to help with this project.
>=20