Progressive (dynamic) validation of XML
Posted: Thu Dec 18, 2014 4:07 pm
Hello all!
I am working on validation of an XML vocabulary which requires dynamic validation and I wonder if it can be handled by existing schemas (schematron and NVDL).
Initially the file is created and validated, then it is passed to the MODIFIER who makes the changes (updating values, adding content, etc.). So there are number of constrains for these changes that are conditioned by the file before the changes; for instance if the modifier has updated a certain attribute, he must update the second attribute as well, otherwise the file is not valid.
So is there any way check this rule, by maybe feeding two files to schematron and using it's phase element or any other way of comparing the file before and after the modification?
I hope I was clear and thank you all in advance for your answers.
I am working on validation of an XML vocabulary which requires dynamic validation and I wonder if it can be handled by existing schemas (schematron and NVDL).
Initially the file is created and validated, then it is passed to the MODIFIER who makes the changes (updating values, adding content, etc.). So there are number of constrains for these changes that are conditioned by the file before the changes; for instance if the modifier has updated a certain attribute, he must update the second attribute as well, otherwise the file is not valid.
So is there any way check this rule, by maybe feeding two files to schematron and using it's phase element or any other way of comparing the file before and after the modification?
I hope I was clear and thank you all in advance for your answers.