Skip to content

Commit

Permalink
Merge pull request #165 from strictdoc-project/stanislaw/fix_xmlschem…
Browse files Browse the repository at this point in the history
…a_setup

Update ReqIF schemas to the recently updated xmlschema
  • Loading branch information
stanislaw authored Apr 27, 2024
2 parents 6ea9a66 + 4e3976d commit 3b1c923
Show file tree
Hide file tree
Showing 25 changed files with 21 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
3.7.15
3.7

Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
xmlns="http://www.w3.org/1999/xhtml"
elementFormDefault="qualified" >

<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd" />
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="" />

<xsd:import namespace="http://www.w3.org/1999/xhtml/datatypes/"
schemaLocation="reqif/reqif_schema/www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-datatypes-1.xsd" />
schemaLocation="../../../../www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-datatypes-1.xsd" />

<xsd:include schemaLocation="reqif/reqif_schema/www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-framework-1.xsd" />
<xsd:include schemaLocation="reqif/reqif_schema/www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-text-1.xsd" />
<xsd:include schemaLocation="reqif/reqif_schema/www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-hypertext-1.xsd" />
<xsd:include schemaLocation="reqif/reqif_schema/www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-list-1.xsd" />
<xsd:include schemaLocation="reqif/reqif_schema/www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-edit-1.xsd" />
<xsd:include schemaLocation="reqif/reqif_schema/www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-pres-1.xsd" />
<xsd:include schemaLocation="reqif/reqif_schema/www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-inlstyle-1.xsd" />
<xsd:include schemaLocation="reqif/reqif_schema/www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-object-1.xsd" />
<xsd:include schemaLocation="reqif/reqif_schema/www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-table-1.xsd" />
<xsd:include schemaLocation="../../../../www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-framework-1.xsd" />
<xsd:include schemaLocation="../../../../www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-text-1.xsd" />
<xsd:include schemaLocation="../../../../www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-hypertext-1.xsd" />
<xsd:include schemaLocation="../../../../www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-list-1.xsd" />
<xsd:include schemaLocation="../../../../www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-edit-1.xsd" />
<xsd:include schemaLocation="../../../../www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-pres-1.xsd" />
<xsd:include schemaLocation="../../../../www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-inlstyle-1.xsd" />
<xsd:include schemaLocation="../../../../www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-object-1.xsd" />
<xsd:include schemaLocation="../../../../www.w3.org/TR/xhtml-modularization/SCHEMA/xhtml-table-1.xsd" />

<xsd:attributeGroup name="xhtml.I18n.extra.attrib"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<xs:documentation source="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_commonatts"/>
</xs:annotation>
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd">
schemaLocation="">
<xs:annotation>
<xs:documentation>
This import brings in the XML namespace attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<xs:documentation source="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_textmodule"/>
</xs:annotation>
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd">
schemaLocation="">
<xs:annotation>
<xs:documentation>
This import brings in the XML namespace attributes
Expand Down
4 changes: 2 additions & 2 deletions reqif/reqif_schema/reqif.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xmlns="http://www.w3.org/1999/xhtml" xmlns:REQIF="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd"
xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified"
elementFormDefault="qualified" targetNamespace="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<xsd:import namespace="http://www.w3.org/1999/xhtml" schemaLocation="reqif/reqif_schema/www.omg.org/spec/ReqIF/20110402/driver.xsd"/>
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation=""/>
<xsd:import namespace="http://www.w3.org/1999/xhtml" schemaLocation="http/www.omg.org/spec/ReqIF/20110402/driver.xsd"/>
<xsd:element name="REQ-IF" type="REQIF:REQ-IF"/>
<xsd:simpleType name="LOCAL-REF">
<xsd:restriction base="xsd:IDREF"/>
Expand Down
5 changes: 5 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import inspect
import os
import re

import invoke
from invoke import task

# FIXME
if not hasattr(inspect, "getargspec"):
inspect.getargspec = inspect.getfullargspec


def one_line_command(string):
return re.sub("\\s+", " ", string).strip()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# FIXME
UNSUPPORTED: true

RUN: %expect_exit 1 %reqif validate --use-reqif-schema %S/sample.reqif | filecheck %s --dump-input=fail
CHECK: Reason: must have the fixed value '1.0'
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# FIXME
UNSUPPORTED: true

RUN: %expect_exit 1 %reqif validate --use-reqif-schema %S/sample.reqif | filecheck %s --dump-input=fail
CHECK: Reason: Unexpected child with tag 'REQIF:IS-EDITABLE' at position 2.
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# FIXME
UNSUPPORTED: true

RUN: %expect_exit 1 %reqif validate --use-reqif-schema %S/sample.reqif | filecheck %s --dump-input=fail
CHECK: Reason: Unexpected child with tag 'REQIF:IS-TABLE-INTERNAL' at position 1. Tag 'REQIF:OBJECT' expected.

0 comments on commit 3b1c923

Please sign in to comment.