Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366032

Summary: ReqIf files should not contain information about the schema location
Product: [Modeling] MDT.RMF Reporter: Mark Broerkens <eclipse>
Component: Reqif-1.0Assignee: Mark Broerkens <eclipse>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: michael
Version: unspecified   
Target Milestone: 0.5.0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Mark Broerkens CLA 2011-12-08 08:31:20 EST
reqif files written by the ReqIf Resource give a hint to the XML processor on where to find the XML schema files . Some validating XML processors actually evaluate the  schemaLocation attribute [1] and might expect the schema file at the given location (in this case: the schema files are expected in the same folder as the reqif file)[2]. Since the ReqIf specification doesn't require the schema files to be stored next to the reqif file the given schemalocation doesn't add any value or might even confuse XML processors.

The attribute schemaLocation should not be written into the XML file unless it is explicitly intended to validate against a reqif file specific XML schema.
 
[1] http://www.w3.org/TR/xmlschema-0/#schemaLocation
[2] xsi:schemaLocation="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd reqif.xsd http://www.w3.org/1999/xhtml driver.xsd"
Comment 1 Mark Broerkens CLA 2012-01-11 16:23:33 EST
schema location removed from root XML element.
Comment 2 Mark Broerkens CLA 2012-01-11 16:25:17 EST
validated by creating new reqif file in ProR standalone application.
(Note: schema location information of existing files is not modified when saving changes. This is a feature)
Comment 3 Mark Broerkens CLA 2012-01-11 16:25:22 EST
Created attachment 209345 [details]
mylyn/context/zip
Comment 4 Mark Broerkens CLA 2012-01-11 16:26:16 EST
fixed
Comment 5 Mark Broerkens CLA 2012-02-12 15:28:29 EST
since I am the reporter I think I can now close the bug