Progressive (dynamic) validation of XML
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 3
- Joined: Thu Dec 18, 2014 3:35 pm
Progressive (dynamic) validation of XML
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.
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Re: Progressive (dynamic) validation of XML
Hi,
From Schematron you can use the document function to access a different file. So you can validate your changed file and use document to access content from the original.
Best Regards,
George
From Schematron you can use the document function to access a different file. So you can validate your changed file and use document to access content from the original.
Best Regards,
George
George Cristian Bina
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service