microsoft / XmlNotepad

XML Notepad provides a simple intuitive User Interface for browsing and editing XML documents.
https://microsoft.github.io/XmlNotepad/
MIT License
966 stars 206 forks source link

Feature request - Schematron validation #390

Open meineid-git opened 2 months ago

meineid-git commented 2 months ago

Thank you for this great tool, which has improved a lot with regards to usability. It would be great to implement a schematron validation while editing, so that plausibility checks can be done inside the editor without using external tools.

lovettchris commented 2 months ago

Interesting, I wonder if there's a good schematron .NET implementation I could integrate. In the meantime you could use the XML Notepad support for XSLT together with this tool https://github.com/schxslt/schxslt

meineid-git commented 1 month ago

Thank you for your feedback Chris! I already found this specific tool among others, but they did not convince me with regards to workflow or they are not maintained any more. For me a schematron validator should work as a xsd validator, and it should be integral part (or add-on) of an editor, because that is where it matters, giving direct feedback to the use instead of (1) stop editing, (2) run a script, (3) check the error log, (4) lookup the relevant parts in the document, (5) revise and correct the errors .. and iterate it over and over again.

lovettchris commented 1 month ago

Thanks for the info, can you share examples of your XML data and the schematron schemas that you are using?