@dialecte/cli 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -2194
- package/dist/cli.js +66007 -44998
- package/dist/corpus/manifest.json +692 -0
- package/dist/corpus/overrides/fhir-xhtml.xsd +17 -0
- package/dist/corpus/overrides/xlink.xsd +102 -0
- package/dist/corpus/overrides/xml.xsd +35 -0
- package/dist/dialecte_tdd_pytest.py +792 -0
- package/dist/lookups.d.ts +10 -0
- package/dist/lookups.js +97 -13
- package/dist/schemas/config-list.schema.json +121 -0
- package/dist/schemas/config-yml.schema.json +52 -0
- package/dist/schemas/dialecterc.schema.json +33 -0
- package/dist/schemas/lot-risk.schema.json +32 -0
- package/dist/schemas/risk-line.schema.json +49 -0
- package/dist/schemas/rules.schema.json +51 -0
- package/dist/schemas/scope-change.schema.json +103 -0
- package/dist/tdd-node-reporter.js +167 -0
- package/dist/tdd-reporter.js +2 -0
- package/package.json +24 -5
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
The XHTML `div` a FHIR narrative holds, declared for the Dialecte corpora (MIT): any XHTML content,
|
|
4
|
+
attributes and text. FHIR's own `fhir-xhtml.xsd` carries no licence of its own (a modification of a W3C schema),
|
|
5
|
+
so the licence review excluded it and `dialecte corpus fetch` places this one at its path.
|
|
6
|
+
-->
|
|
7
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/1999/xhtml"
|
|
8
|
+
targetNamespace="http://www.w3.org/1999/xhtml" elementFormDefault="qualified">
|
|
9
|
+
<xs:element name="div">
|
|
10
|
+
<xs:complexType mixed="true">
|
|
11
|
+
<xs:sequence>
|
|
12
|
+
<xs:any namespace="##targetNamespace" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
|
13
|
+
</xs:sequence>
|
|
14
|
+
<xs:anyAttribute processContents="lax"/>
|
|
15
|
+
</xs:complexType>
|
|
16
|
+
</xs:element>
|
|
17
|
+
</xs:schema>
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
The global attributes, attribute groups, element and model groups XLink 1.1 names, declared for
|
|
4
|
+
the Dialecte corpora (MIT). The corpora import the W3C's own document, which the licence review
|
|
5
|
+
excluded: `dialecte corpus fetch` places this one at its path, and a reader maps the remote location here.
|
|
6
|
+
-->
|
|
7
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
8
|
+
targetNamespace="http://www.w3.org/1999/xlink" elementFormDefault="qualified" attributeFormDefault="qualified">
|
|
9
|
+
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
|
|
10
|
+
<xs:attribute name="type">
|
|
11
|
+
<xs:simpleType>
|
|
12
|
+
<xs:restriction base="xs:token">
|
|
13
|
+
<xs:enumeration value="simple"/>
|
|
14
|
+
<xs:enumeration value="extended"/>
|
|
15
|
+
<xs:enumeration value="title"/>
|
|
16
|
+
<xs:enumeration value="resource"/>
|
|
17
|
+
<xs:enumeration value="locator"/>
|
|
18
|
+
<xs:enumeration value="arc"/>
|
|
19
|
+
</xs:restriction>
|
|
20
|
+
</xs:simpleType>
|
|
21
|
+
</xs:attribute>
|
|
22
|
+
<xs:attribute name="href" type="xs:anyURI"/>
|
|
23
|
+
<xs:attribute name="role" type="xs:anyURI"/>
|
|
24
|
+
<xs:attribute name="arcrole" type="xs:anyURI"/>
|
|
25
|
+
<xs:attribute name="title" type="xs:string"/>
|
|
26
|
+
<xs:attribute name="show">
|
|
27
|
+
<xs:simpleType>
|
|
28
|
+
<xs:restriction base="xs:token">
|
|
29
|
+
<xs:enumeration value="new"/>
|
|
30
|
+
<xs:enumeration value="replace"/>
|
|
31
|
+
<xs:enumeration value="embed"/>
|
|
32
|
+
<xs:enumeration value="other"/>
|
|
33
|
+
<xs:enumeration value="none"/>
|
|
34
|
+
</xs:restriction>
|
|
35
|
+
</xs:simpleType>
|
|
36
|
+
</xs:attribute>
|
|
37
|
+
<xs:attribute name="actuate">
|
|
38
|
+
<xs:simpleType>
|
|
39
|
+
<xs:restriction base="xs:token">
|
|
40
|
+
<xs:enumeration value="onLoad"/>
|
|
41
|
+
<xs:enumeration value="onRequest"/>
|
|
42
|
+
<xs:enumeration value="other"/>
|
|
43
|
+
<xs:enumeration value="none"/>
|
|
44
|
+
</xs:restriction>
|
|
45
|
+
</xs:simpleType>
|
|
46
|
+
</xs:attribute>
|
|
47
|
+
<xs:attribute name="label" type="xs:NCName"/>
|
|
48
|
+
<xs:attribute name="from" type="xs:NCName"/>
|
|
49
|
+
<xs:attribute name="to" type="xs:NCName"/>
|
|
50
|
+
|
|
51
|
+
<xs:attributeGroup name="simpleAttrs">
|
|
52
|
+
<xs:attribute ref="xlink:type" fixed="simple"/>
|
|
53
|
+
<xs:attribute ref="xlink:href"/>
|
|
54
|
+
<xs:attribute ref="xlink:role"/>
|
|
55
|
+
<xs:attribute ref="xlink:arcrole"/>
|
|
56
|
+
<xs:attribute ref="xlink:title"/>
|
|
57
|
+
<xs:attribute ref="xlink:show"/>
|
|
58
|
+
<xs:attribute ref="xlink:actuate"/>
|
|
59
|
+
</xs:attributeGroup>
|
|
60
|
+
<xs:attributeGroup name="extendedAttrs">
|
|
61
|
+
<xs:attribute ref="xlink:type" fixed="extended" use="required"/>
|
|
62
|
+
<xs:attribute ref="xlink:role"/>
|
|
63
|
+
<xs:attribute ref="xlink:title"/>
|
|
64
|
+
</xs:attributeGroup>
|
|
65
|
+
<xs:attributeGroup name="titleAttrs">
|
|
66
|
+
<xs:attribute ref="xlink:type" fixed="title" use="required"/>
|
|
67
|
+
<xs:attribute ref="xml:lang"/>
|
|
68
|
+
</xs:attributeGroup>
|
|
69
|
+
<xs:attributeGroup name="resourceAttrs">
|
|
70
|
+
<xs:attribute ref="xlink:type" fixed="resource" use="required"/>
|
|
71
|
+
<xs:attribute ref="xlink:role"/>
|
|
72
|
+
<xs:attribute ref="xlink:title"/>
|
|
73
|
+
<xs:attribute ref="xlink:label"/>
|
|
74
|
+
</xs:attributeGroup>
|
|
75
|
+
<xs:attributeGroup name="locatorAttrs">
|
|
76
|
+
<xs:attribute ref="xlink:type" fixed="locator" use="required"/>
|
|
77
|
+
<xs:attribute ref="xlink:href" use="required"/>
|
|
78
|
+
<xs:attribute ref="xlink:role"/>
|
|
79
|
+
<xs:attribute ref="xlink:title"/>
|
|
80
|
+
<xs:attribute ref="xlink:label"/>
|
|
81
|
+
</xs:attributeGroup>
|
|
82
|
+
<xs:attributeGroup name="arcAttrs">
|
|
83
|
+
<xs:attribute ref="xlink:type" fixed="arc" use="required"/>
|
|
84
|
+
<xs:attribute ref="xlink:arcrole"/>
|
|
85
|
+
<xs:attribute ref="xlink:title"/>
|
|
86
|
+
<xs:attribute ref="xlink:show"/>
|
|
87
|
+
<xs:attribute ref="xlink:actuate"/>
|
|
88
|
+
<xs:attribute ref="xlink:from"/>
|
|
89
|
+
<xs:attribute ref="xlink:to"/>
|
|
90
|
+
</xs:attributeGroup>
|
|
91
|
+
|
|
92
|
+
<xs:group name="titleModel">
|
|
93
|
+
<xs:sequence>
|
|
94
|
+
<xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
|
95
|
+
</xs:sequence>
|
|
96
|
+
</xs:group>
|
|
97
|
+
<xs:complexType name="titleEltType" mixed="true">
|
|
98
|
+
<xs:group ref="xlink:titleModel"/>
|
|
99
|
+
<xs:attributeGroup ref="xlink:titleAttrs"/>
|
|
100
|
+
</xs:complexType>
|
|
101
|
+
<xs:element name="title" type="xlink:titleEltType"/>
|
|
102
|
+
</xs:schema>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
The attributes of the XML namespace (XML 1.0, xml:base, xml:id), declared for the Dialecte corpora
|
|
4
|
+
(MIT). The corpora import the W3C's own document, which the licence review excluded: `dialecte corpus fetch`
|
|
5
|
+
places this one at its path, and a reader maps the remote location here.
|
|
6
|
+
-->
|
|
7
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3.org/XML/1998/namespace" xml:lang="en">
|
|
8
|
+
<xs:attribute name="lang">
|
|
9
|
+
<xs:simpleType>
|
|
10
|
+
<xs:union memberTypes="xs:language">
|
|
11
|
+
<xs:simpleType>
|
|
12
|
+
<xs:restriction base="xs:string">
|
|
13
|
+
<xs:enumeration value=""/>
|
|
14
|
+
</xs:restriction>
|
|
15
|
+
</xs:simpleType>
|
|
16
|
+
</xs:union>
|
|
17
|
+
</xs:simpleType>
|
|
18
|
+
</xs:attribute>
|
|
19
|
+
<xs:attribute name="space">
|
|
20
|
+
<xs:simpleType>
|
|
21
|
+
<xs:restriction base="xs:NCName">
|
|
22
|
+
<xs:enumeration value="default"/>
|
|
23
|
+
<xs:enumeration value="preserve"/>
|
|
24
|
+
</xs:restriction>
|
|
25
|
+
</xs:simpleType>
|
|
26
|
+
</xs:attribute>
|
|
27
|
+
<xs:attribute name="base" type="xs:anyURI"/>
|
|
28
|
+
<xs:attribute name="id" type="xs:ID"/>
|
|
29
|
+
<xs:attributeGroup name="specialAttrs">
|
|
30
|
+
<xs:attribute ref="xml:base"/>
|
|
31
|
+
<xs:attribute ref="xml:lang"/>
|
|
32
|
+
<xs:attribute ref="xml:space"/>
|
|
33
|
+
<xs:attribute ref="xml:id"/>
|
|
34
|
+
</xs:attributeGroup>
|
|
35
|
+
</xs:schema>
|