Page 1 of 1

Relax NG validity check for ID/IDREF

Posted: Fri Dec 03, 2004 2:15 am
by dsewell
When using oXygen 5.0 to validate an XML document against a Relax NG schema (.rng or .rnc), the validation does not check to see that an attribute with a value of type IDREF or IDREFS points to one or more ID attribute values within the document.

The Jing validator used by oXygen allows the user to choose whether or not to check ID/IDREF/IDREFS (by default it does; "jing -i" disables checking). I would suggest that you add a user option in oXygen so that we could turn ID checking on and off, either in the Preferences or in the Relax NG Validation menu.

David

Posted: Tue Dec 07, 2004 11:37 am
by george
Hi David,

Thanks fot noting this.
Will just enabling this option be satisfactory? I mean we do not see a real usecase for having it disabled.

Best Regards,
George

Posted: Tue Dec 07, 2004 4:04 pm
by dsewell
It can probably just be enabled. If someone is using attribute values of datatype ID or IDREF they would want to have them checked when they validate a document instance.

Posted: Tue Dec 07, 2004 5:23 pm
by george
Hi David,

Thanks for your reply. We enabled the check in the current development stream so the fix will be in 5.1.

Best Regards,
George

Posted: Tue Dec 07, 2004 6:03 pm
by dsewell
Thanks!

Add option to select "jing" vs "jing -i"

Posted: Thu Apr 21, 2005 11:21 pm
by dsewell
George,

I've just discovered a place where it's a problem if jing is used without the -i parameter for validation. It prevents oXygen from using the current OASIS Open Document Relax NG schema (which will be the schema for the document format used by OpenOffice 2.0, etc.). Try downloading

http://www.oasis-open.org/committees/do ... 0-cd-3.rng

and validating with oXygen. Someone discusses this issue here:

http://lists.oasis-open.org/archives/of ... 00002.html

I don't know whether the real problem is with jing or the OASIS schema. Maybe it would be a good idea to return oXygen to use

Code: Select all

jing -i
by default, and add a user option "enable checking of ID/IDREF/IDREFS" that would give the behavior of 5.1 if selected.

Posted: Fri Apr 22, 2005 9:14 am
by george
Hi David,

Thanks for the note. We already added that as an option at user requests so the next release will contain Options->Preferences -- XML -- XML Parser options -- Relax NG -- Check ID/IDREF.
There is also another option for Relax NG validation that controls if the document is checked to be feasibly valid or valid.

Best Regards,
George

Posted: Fri Apr 22, 2005 3:53 pm
by dsewell
Great, then I'll look forward to the next release,

David