ReqIF import error: Type 'reqifxhtml:div' has not been found in the registry

When using Simulink Requirements, trying to import requirements from a ReqIF file, the GUI reports:
"Invalid ReqIF file. Error details: Type 'reqifxhtml:div' has not been found in the registry."
Simulink_Reqs_import_reqif_v2.png
Within the ReqIF file I have exists a number of lines of code of the following format:
<THE-VALUE><reqif-xhtml:div xmlns:reqif-xhtml="http://www.w3.org/1999/xhtml">156-PMU-RQ-015</reqif-xhtml:div></THE-VALUE>
Is this class unsupported?
Is there a workaround for this?

 Accepted Answer

Hi Gordon,
I can help you with this.
I just reviewed our source code and confirmed that the error you see inidicates the organization of your reqif file does not match the expected organization as defined by the reqif standard. We have tested our importer with many external tools and it is unusual to find this kind of issue.
The easiest way for us to help you is if you can provide us the reqif file through our regular tech support channels. It will also be helpful if you can provide more details on the source of the reqif file, the tool where it was produced and its version, and information about your setup.
Thanks,
Bill

6 Comments

Hi Bill,
The ReqIF file is the output of an Enterprise Architect (Ver. 15) plugin from github: https://github.com/Helmut-Ortmann/EnterpriseArchitect_hoReverse/wiki
This is being done on my 64bit Windows 10 machine.
I'll discuss internally about sending the file to an existing tech support colleague of yours.
Thank you,
Gordon
Hi Gordon,
Thanks for your information. I have downloaded the plugin you indicated and have found an example reqif export from the tool that is causing the exact same error.
I will do some investigation and report back when I have more information. There is no need to send us your reqif file.
Thanks,
Bill
The development team has isolated the cause of this incompatibility as a bug in our .reqif parser. We will be developing a fix for the upcoming release and if possible, we hope to provide a fix in an update release for R2019b.
There is a temporary workaround of manually editing the .reqif file:
  1. Locate the opening <REQ-IF> tag at the beginning of the file
  2. Definte the following attribute at the end of the tag:
xmlns:reqif-xhtml="http://www.w3.org/1999/xhtml"
For example the starting tag may be edited to become:
<REQ-IF xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en" xmlns="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd" xmlns:reqif-xhtml="http://www.w3.org/1999/xhtml">
If you are using packaged file (.reqifz), you will need to unzip the package, edit the reqif file it contains and rezip it.
Bill
Hi Bill,
Thanks for sharing this workaround. I've tried it with my file and the import is successful.
The content is unexpectedly empty but I would consider that a different issue, which may or may not be to do with the export format of the plugin on github rather than Simulink Requirements...
Simulink_Reqs_import_reqif_ok_but_blank.png
Thanks,
Gordon
Gordon,
You may need to adjust attribute mapping to get the content to display the way you need. You can access this by selecting the import node in the requirement hierarchy and expanding the "Attribute Mapping" section:
att_mapping.png
That sorted it Bill, thanks and Merry Christmas!!!

Sign in to comment.

More Answers (0)

Products

Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!