reqif icon indicating copy to clipboard operation
reqif copied to clipboard

Namespace conversion issues: reqif-xhtml:div -> xsi:div

Open stanislaw opened this issue 4 months ago • 1 comments

BTW: The approach for no changes is not 100% completed yet, as I saw during my tests a small differences where reqif-xhtml:div was changed to xsi:div , but I will create another issue (and maybe a PR) if this is really a problem sometimes.

There are several existing tests that handle these transformations and I thought that we fixed this over time with several users. Would be great to have a reproducible minimal ReqIF. A quick hint: it may have to do with the namespace declarations in the beginning of your file that are somehow non-standard compared to what the reqif library is used to seeing most often.

Chiming in here... I've also noticed that when I use your parser it converts all reqif-xhtml:div tags into xsi:div tags and I was wondering why it's doing that and how to prevent it from doing that

The .reqif file that this is happening with has this in the header:

<?xml version='1.0' encoding='utf-8'?>
<REQ-IF xmlns="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:reqif="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd" xmlns:reqif-xhtml="http://www.w3.org/1999/xhtml" xmlns:reqif-common="http://www.prostep.org/reqif" xsi:schemaLocation="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd http://www.omg.org/spec/ReqIF/20110401/reqif.xsd" xml:lang="en">

any idea @stanislaw ?

Thanks!

Originally posted by @vesper8 in #178

stanislaw avatar Sep 08 '25 07:09 stanislaw

@vesper8 @wreggyl let's handle this here as a separate issue.

Is there a chance you could send here a minimal ReqIF that reproduces the issue along with the commands?

stanislaw avatar Sep 08 '25 07:09 stanislaw