Validate on save?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 44
- Joined: Tue May 25, 2004 2:27 pm
Validate on save?
Is it possible to have Oxygen automatically validate the XML when you save?
What I'd like to do is have Oxygen auto-check the doc when I try to save and warn me if I try to save an invalid doc. Another unnamed editor (I'm no longer using since I'm moving to OxygenXML) would do this and it was a good way to make sure the people editing the XML were creating valid documents before they put them back into CVS.
What I'd like to do is have Oxygen auto-check the doc when I try to save and warn me if I try to save an invalid doc. Another unnamed editor (I'm no longer using since I'm moving to OxygenXML) would do this and it was a good way to make sure the people editing the XML were creating valid documents before they put them back into CVS.
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
-
- Posts: 10
- Joined: Sat Jan 15, 2005 12:12 am
Can you tell me where to find the save-before-validate option? I have looked in Preferences under Save and other places that looked relevant, but can't find that option.
Or is it only in 5.1, not 5.1 beta?
Anyway, I'm not convinced that save-before-validate really meets the need described here. The idea of validate-on-save is that any modifications you save are guaranteed to be valid (unless you turn off the option or explicitly "save anyway" a document that you are told is invalid). This is not the case with save-before-validate.
A big part of the issue is developer behavior: validate-on-save allows the developer to continue well-established habits (saving changes), and get the extra benefit of being notified when a document is not valid. With save-before-validate, the developer has to learn the habit of validating frequently, and the extra "saving" feature does not add much since he's already in the habit of saving his changes. Moreover, save-before-validate will save invalid documents just as easily as valid ones, so there is no guarantee that saved documents are valid.
Thanks,
Lars
Or is it only in 5.1, not 5.1 beta?
Anyway, I'm not convinced that save-before-validate really meets the need described here. The idea of validate-on-save is that any modifications you save are guaranteed to be valid (unless you turn off the option or explicitly "save anyway" a document that you are told is invalid). This is not the case with save-before-validate.
A big part of the issue is developer behavior: validate-on-save allows the developer to continue well-established habits (saving changes), and get the extra benefit of being notified when a document is not valid. With save-before-validate, the developer has to learn the habit of validating frequently, and the extra "saving" feature does not add much since he's already in the habit of saving his changes. Moreover, save-before-validate will save invalid documents just as easily as valid ones, so there is no guarantee that saved documents are valid.
Thanks,
Lars
-
- Posts: 44
- Joined: Tue May 25, 2004 2:27 pm
-
- Posts: 10
- Joined: Sat Jan 15, 2005 12:12 am
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