You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
OFT auto-detects files by extension. Unfortunately ReqM2's extension is to generic (.xml) this leads to other XML files unnecessarily being scanned, which has two consequences:
The import is slower than necessary because it could skip files which are do not contain ReqM2 content.
Lots of error messages about unknown XML content are dumped to STDERR
Describe the solution you'd like
When an XML file is about to be imported, OFT should check whether it really contains ReqM2 content. This comes in two variants at the moment:
Plain ReqM2 file
DocBook file with embedded ReqM2 content (supported but not really recommended)
Describe alternatives you've considered
Enforcing a strict extension (e.g. .reqm2): While being perfect for OFT this has the downside that it breaks compatibility and also that XML Editors don't know this extensions by default.
Enforcing a compound extension (.reqm2.xml): Works for OFT and XML editors. Downsides are that it is clunky and still breaks compatibility.
Additional context
This is an excerpt of example error output:
Detection of ReqM2 is already implemented. If the root element of an XML file is not <specdocument>, the observed log message is printed and further processing is stopped. However the XML file is parsed until the end without processing any events. We can fix this by throwing an exception (and catching it later) as described in the documentation of XMLReader.parse().
Is your feature request related to a problem? Please describe.
OFT auto-detects files by extension. Unfortunately ReqM2's extension is to generic (
.xml
) this leads to other XML files unnecessarily being scanned, which has two consequences:Describe the solution you'd like
When an XML file is about to be imported, OFT should check whether it really contains ReqM2 content. This comes in two variants at the moment:
Describe alternatives you've considered
.reqm2
): While being perfect for OFT this has the downside that it breaks compatibility and also that XML Editors don't know this extensions by default..reqm2.xml
): Works for OFT and XML editors. Downsides are that it is clunky and still breaks compatibility.Additional context
This is an excerpt of example error output:
The text was updated successfully, but these errors were encountered: