Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366032 - ReqIf files should not contain information about the schema location
Summary: ReqIf files should not contain information about the schema location
Status: CLOSED FIXED
Alias: None
Product: MDT.RMF
Classification: Modeling
Component: Reqif-1.0 (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P2 normal (vote)
Target Milestone: 0.5.0   Edit
Assignee: Mark Broerkens CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 08:31 EST by Mark Broerkens CLA
Modified: 2012-11-14 16:49 EST (History)
1 user (show)

See Also:


Attachments
mylyn/context/zip (3.79 KB, application/octet-stream)
2012-01-11 16:25 EST, Mark Broerkens CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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