Bug 409945 - RMF should support schema validation against the ReqIF schema files
Summary: RMF should support schema validation against the ReqIF schema files
Status: ASSIGNED
Alias: None
Product: MDT.RMF
Classification: Modeling
Component: Reqif-1.0 (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh All
: P3 enhancement (vote)
Target Milestone: 0.14.0   Edit
Assignee: Ingo Weigelt CLA
QA Contact: Mark Broerkens CLA
URL:
Whiteboard:
Keywords:
Depends on: 384247
Blocks: 421310
  Show dependency tree
 
Reported: 2013-06-05 06:42 EDT by Mark Broerkens CLA
Modified: 2015-11-10 08:58 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Broerkens CLA 2013-06-05 06:42:49 EDT
As a first check for validating ReqIF files, RMF should support the validation against the official ReqIF XML schema. 
The schema files have passed the IP review and we are allowed to ship them with RMF. See 
* CQ-6432 (https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6432)
  for the OMG files
* CQ6708 (https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6708)
  for the W3C files
Comment 1 Mark Broerkens CLA 2013-06-05 10:37:04 EDT
With git revision Checking out Revision 83fc77c56109aa1e3d88ac2a7faf9fabd9516eb5 the schema files are added to the RMF repository and xsd validation has been enabled:
* xsd validation that makes use of the schema validator directly is now available in the test cases
* xsd validation can additioally be triggered while loading reqif files via the ReqIFResource

The validation during load via the ReqIF resource is switched off by default and can only be activated programmatically. 

Next step: add preferences in the UI that allows switching on and off schema validation during load operations.
Comment 2 Mark Broerkens CLA 2014-01-16 05:23:41 EST
Eclipse Sphinx already contains a powerful mechanism for integration of schema validation including non-blocking creation of error markers and UI for configuration. Thus I vote for integrating the sphinx features instead of reimplementing the code. activities in Sphinx have started which allow consuming that feature without introducing too many dependencies.