Incorrect Validation
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 5
- Joined: Wed Nov 28, 2007 7:45 pm
- Location: Omaha, Nebraska
Incorrect Validation
Oxygen incorrectly reports that my document is valid, even though I specified a schema in the validation scenario (tried using both a URL & a local file). It even says the document is valid when I have mismatched start & end tags, like this:
<tlax>ENM</tla>
I have <oXygen/> XML Editor 9.1, build 2008040216
Any idea what I might be missing?
<tlax>ENM</tla>
I have <oXygen/> XML Editor 9.1, build 2008040216
Any idea what I might be missing?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Incorrect Validation
Post by sorin_ristache »
Hello,
You get no validation error because in your case the validation scenario validates in fact the XSD schema itself, not the XML file. A validation unit of a validation scenario should specify a file of the same type as the edited file (in your case an XML file, not an XSD file) which is a kind of starting point/master document that provides the context necessary for validating the edited document. The schema should be associated with the edited document using one of the mechanisms supported in Oxygen: specifying the schema location of an XSD schema in the xsi:schemaLocation attribute, a document type defined in Preferences -> Document Type Association that matches the edited document.
Regards,
Sorin
You get no validation error because in your case the validation scenario validates in fact the XSD schema itself, not the XML file. A validation unit of a validation scenario should specify a file of the same type as the edited file (in your case an XML file, not an XSD file) which is a kind of starting point/master document that provides the context necessary for validating the edited document. The schema should be associated with the edited document using one of the mechanisms supported in Oxygen: specifying the schema location of an XSD schema in the xsi:schemaLocation attribute, a document type defined in Preferences -> Document Type Association that matches the edited document.
Regards,
Sorin
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