Re: Relax NG plugins

Ross Lamont <[email protected]> Mon, 19 Jun 2017 10:57:51 +1000
Newsgroups gmane.comp.java.netbeans.devel,gmane.comp.apache.sling.devel
Message-ID <[email protected]>
> On 17 Jun 2017, at 5:33 am, Jan Tosovsky <[email protected]> wrote:
>=20
> On 2017-06-15 Ross Lamont wrote:
>>=20
>> 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.
>=20
> While xml-model is non-normative 'Working Group Note' =
(https://www.w3.org/TR/xml-model/), it is IMHO better than proprietary =
ways used by some XML editors, e.g.

True, but it is also a confirmed ISO standard (ISO/IEC 19757-11:2011).  =
I must admit I am mystified as to how ISO and W3 work together and what =
it means when one makes it a standard and the other doesn=E2=80=99t.

>=20
> <?oxygen =
RNGSchema=3D"http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng" =
type=3D"xml"?>
>=20
>> 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.
>=20
> Thanks for sharing!
>=20
>> 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
>=20
> I will :-)=20
>=20
> I've already noticed some related traffic in =
https://lists.apache.org/[email protected]
>=20
> I really appreciate your effort in this field.
>=20
> Thanks for that,
>=20
> Jan
>=20