Re: [xml] Schema validation skipping IDC
On 09/02/2022 14:48, Stefan de Konink wrote: On Wednesday, February 9, 2022 1:25:41 PM CET, Nick Wellnhofer wrote: I'm always reluctant to add new features, especially if it sounds like it only solves a problem for a single user. Do you want to disable checking of identity constraints for performance reasons or is there another use case? They are indeed based on performance reasons, where the syntax validation is extremely fast and powerful (even single threaded, as expected), but IDC is (for the size of our documents) costly. Can provide more detail about the performance problem? Ideally by opening a Gitlab issue. Like Eric pointed out; to support this use case now it requires two schema's one with and one without. Since our schema consists of 384 individual xsd's that is less trivial to search and replace on the fly. It seems that you only have to remove certain elements from the XSDs which should be easy to automate. Nick ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml
Re: [xml] Schema validation skipping IDC
On Wednesday, February 9, 2022 1:25:41 PM CET, Nick Wellnhofer wrote: I'm always reluctant to add new features, especially if it sounds like it only solves a problem for a single user. Do you want to disable checking of identity constraints for performance reasons or is there another use case? They are indeed based on performance reasons, where the syntax validation is extremely fast and powerful (even single threaded, as expected), but IDC is (for the size of our documents) costly. For the validation and implementation of our standard the IDC validation is 'too soon' for most of the parties implementing it. Especially when the syntax validation fails, it does not make sense to continue in the second stage. Like Eric pointed out; to support this use case now it requires two schema's one with and one without. Since our schema consists of 384 individual xsd's that is less trivial to search and replace on the fly. From a software perspective I would love to have the option of a single schema, where just the IDC functionality can be disabled, or even "per type" could be disabled. Even if the IDC performance would be fixed, I don't see it fixed in a way it would be considered a no-op. -- Stefan ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml
Re: [xml] Schema validation skipping IDC
On 01/02/2022 13:39, Stefan de Konink wrote: Hi, Would a patch be accepted that would create an option to disable identity constraints at runtime? Use case: only syntactically validate a file. I'm always reluctant to add new features, especially if it sounds like it only solves a problem for a single user. Do you want to disable checking of identity constraints for performance reasons or is there another use case? Nick ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml