metanorma-m3aawg 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -2
- data/lib/asciidoctor/m3aawg/isodoc.rng +174 -0
- data/lib/isodoc/m3aawg/m3aawg.policy.xsl +65 -0
- data/lib/isodoc/m3aawg/m3aawg.report.xsl +65 -0
- data/lib/metanorma/m3aawg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4f2381b78758caa4f1fe7c65ebb8b4b37ea07aae1352d902831c5ab80fb31cd
|
4
|
+
data.tar.gz: 8154cf4e35f051d12005d037cc41c36c45b68c02cf374f2461b1776b95172188
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea321f4e3aeab9fcb18ca38569112066e8e4bf73527c85e844521f6b5bd1e105e35c45fea553da32181af8d7a1c90a1c706ddf310c65e9d5d3a1225089044627
|
7
|
+
data.tar.gz: 3b33015620fb4648bb391e080b8db7c33fd570251cbd1509187f5bf133d78fd62213d4d164ff17edc8a2b959b7c0638abc11c3d6a4ae306d1f505d90785c2508
|
data/.rubocop.yml
CHANGED
@@ -876,6 +876,18 @@
|
|
876
876
|
</zeroOrMore>
|
877
877
|
</element>
|
878
878
|
</define>
|
879
|
+
<define name="pagebreak">
|
880
|
+
<element name="pagebreak">
|
881
|
+
<optional>
|
882
|
+
<attribute name="orientation">
|
883
|
+
<choice>
|
884
|
+
<value>landscape</value>
|
885
|
+
<value>portrait</value>
|
886
|
+
</choice>
|
887
|
+
</attribute>
|
888
|
+
</optional>
|
889
|
+
</element>
|
890
|
+
</define>
|
879
891
|
</include>
|
880
892
|
<!-- end overrides -->
|
881
893
|
<define name="colgroup">
|
@@ -943,8 +955,170 @@
|
|
943
955
|
<ref name="permission"/>
|
944
956
|
<ref name="imagemap"/>
|
945
957
|
<ref name="svgmap"/>
|
958
|
+
<ref name="inputform"/>
|
959
|
+
</choice>
|
960
|
+
</define>
|
961
|
+
<define name="inputform">
|
962
|
+
<element name="form">
|
963
|
+
<attribute name="id">
|
964
|
+
<data type="ID"/>
|
965
|
+
</attribute>
|
966
|
+
<attribute name="name"/>
|
967
|
+
<attribute name="action"/>
|
968
|
+
<zeroOrMore>
|
969
|
+
<choice>
|
970
|
+
<ref name="TextElement"/>
|
971
|
+
<ref name="FormInput"/>
|
972
|
+
</choice>
|
973
|
+
</zeroOrMore>
|
974
|
+
</element>
|
975
|
+
</define>
|
976
|
+
<define name="FormInput">
|
977
|
+
<choice>
|
978
|
+
<ref name="input"/>
|
979
|
+
<ref name="formlabel"/>
|
980
|
+
<ref name="select"/>
|
981
|
+
<ref name="textarea"/>
|
982
|
+
</choice>
|
983
|
+
</define>
|
984
|
+
<define name="InputType">
|
985
|
+
<choice>
|
986
|
+
<value>button</value>
|
987
|
+
<value>checkbox</value>
|
988
|
+
<value>date</value>
|
989
|
+
<value>file</value>
|
990
|
+
<value>password</value>
|
991
|
+
<value>radio</value>
|
992
|
+
<value>submit</value>
|
993
|
+
<value>text</value>
|
946
994
|
</choice>
|
947
995
|
</define>
|
996
|
+
<define name="input">
|
997
|
+
<element name="input">
|
998
|
+
<attribute name="type">
|
999
|
+
<ref name="InputType"/>
|
1000
|
+
</attribute>
|
1001
|
+
<optional>
|
1002
|
+
<attribute name="checked">
|
1003
|
+
<data type="boolean"/>
|
1004
|
+
</attribute>
|
1005
|
+
</optional>
|
1006
|
+
<optional>
|
1007
|
+
<attribute name="disabled">
|
1008
|
+
<data type="boolean"/>
|
1009
|
+
</attribute>
|
1010
|
+
</optional>
|
1011
|
+
<optional>
|
1012
|
+
<attribute name="readonly">
|
1013
|
+
<data type="boolean"/>
|
1014
|
+
</attribute>
|
1015
|
+
</optional>
|
1016
|
+
<optional>
|
1017
|
+
<attribute name="maxlength">
|
1018
|
+
<data type="int"/>
|
1019
|
+
</attribute>
|
1020
|
+
</optional>
|
1021
|
+
<optional>
|
1022
|
+
<attribute name="minlength">
|
1023
|
+
<data type="int"/>
|
1024
|
+
</attribute>
|
1025
|
+
</optional>
|
1026
|
+
<optional>
|
1027
|
+
<attribute name="name"/>
|
1028
|
+
</optional>
|
1029
|
+
<optional>
|
1030
|
+
<attribute name="value"/>
|
1031
|
+
</optional>
|
1032
|
+
<optional>
|
1033
|
+
<attribute name="id">
|
1034
|
+
<data type="ID"/>
|
1035
|
+
</attribute>
|
1036
|
+
</optional>
|
1037
|
+
</element>
|
1038
|
+
</define>
|
1039
|
+
<define name="formlabel">
|
1040
|
+
<element name="label">
|
1041
|
+
<attribute name="for">
|
1042
|
+
<data type="IDREF"/>
|
1043
|
+
</attribute>
|
1044
|
+
<zeroOrMore>
|
1045
|
+
<ref name="PureTextElement"/>
|
1046
|
+
</zeroOrMore>
|
1047
|
+
</element>
|
1048
|
+
</define>
|
1049
|
+
<define name="select">
|
1050
|
+
<element name="select">
|
1051
|
+
<optional>
|
1052
|
+
<attribute name="name"/>
|
1053
|
+
</optional>
|
1054
|
+
<optional>
|
1055
|
+
<attribute name="value"/>
|
1056
|
+
</optional>
|
1057
|
+
<optional>
|
1058
|
+
<attribute name="id">
|
1059
|
+
<data type="ID"/>
|
1060
|
+
</attribute>
|
1061
|
+
</optional>
|
1062
|
+
<optional>
|
1063
|
+
<attribute name="disabled">
|
1064
|
+
<data type="boolean"/>
|
1065
|
+
</attribute>
|
1066
|
+
</optional>
|
1067
|
+
<optional>
|
1068
|
+
<attribute name="multiple">
|
1069
|
+
<data type="boolean"/>
|
1070
|
+
</attribute>
|
1071
|
+
</optional>
|
1072
|
+
<optional>
|
1073
|
+
<attribute name="size">
|
1074
|
+
<data type="int"/>
|
1075
|
+
</attribute>
|
1076
|
+
</optional>
|
1077
|
+
<oneOrMore>
|
1078
|
+
<ref name="option"/>
|
1079
|
+
</oneOrMore>
|
1080
|
+
</element>
|
1081
|
+
</define>
|
1082
|
+
<define name="option">
|
1083
|
+
<element name="option">
|
1084
|
+
<optional>
|
1085
|
+
<attribute name="disabled">
|
1086
|
+
<data type="boolean"/>
|
1087
|
+
</attribute>
|
1088
|
+
</optional>
|
1089
|
+
<optional>
|
1090
|
+
<attribute name="value"/>
|
1091
|
+
</optional>
|
1092
|
+
<zeroOrMore>
|
1093
|
+
<ref name="PureTextElement"/>
|
1094
|
+
</zeroOrMore>
|
1095
|
+
</element>
|
1096
|
+
</define>
|
1097
|
+
<define name="textarea">
|
1098
|
+
<element name="textarea">
|
1099
|
+
<optional>
|
1100
|
+
<attribute name="name"/>
|
1101
|
+
</optional>
|
1102
|
+
<optional>
|
1103
|
+
<attribute name="value"/>
|
1104
|
+
</optional>
|
1105
|
+
<optional>
|
1106
|
+
<attribute name="id">
|
1107
|
+
<data type="ID"/>
|
1108
|
+
</attribute>
|
1109
|
+
</optional>
|
1110
|
+
<optional>
|
1111
|
+
<attribute name="rows">
|
1112
|
+
<data type="int"/>
|
1113
|
+
</attribute>
|
1114
|
+
</optional>
|
1115
|
+
<optional>
|
1116
|
+
<attribute name="cols">
|
1117
|
+
<data type="int"/>
|
1118
|
+
</attribute>
|
1119
|
+
</optional>
|
1120
|
+
</element>
|
1121
|
+
</define>
|
948
1122
|
<define name="bibliography">
|
949
1123
|
<element name="bibliography">
|
950
1124
|
<oneOrMore>
|
@@ -2155,6 +2155,7 @@
|
|
2155
2155
|
|
2156
2156
|
|
2157
2157
|
|
2158
|
+
|
2158
2159
|
<xsl:if test=".//*[local-name() = 'table']">
|
2159
2160
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2160
2161
|
</xsl:if>
|
@@ -4723,6 +4724,70 @@
|
|
4723
4724
|
<xsl:value-of select="substring(.,1,1)"/>
|
4724
4725
|
</xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
|
4725
4726
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
4727
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']">
|
4728
|
+
<fo:block>
|
4729
|
+
<xsl:apply-templates/>
|
4730
|
+
</fo:block>
|
4731
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'label']">
|
4732
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
4733
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'text' or @type = 'date' or @type = 'file' or @type = 'password']">
|
4734
|
+
<fo:inline>
|
4735
|
+
<xsl:call-template name="text_input"/>
|
4736
|
+
</fo:inline>
|
4737
|
+
</xsl:template><xsl:template name="text_input">
|
4738
|
+
<xsl:variable name="count">
|
4739
|
+
<xsl:choose>
|
4740
|
+
<xsl:when test="normalize-space(@maxlength) != ''"><xsl:value-of select="@maxlength"/></xsl:when>
|
4741
|
+
<xsl:when test="normalize-space(@size) != ''"><xsl:value-of select="@size"/></xsl:when>
|
4742
|
+
<xsl:otherwise>10</xsl:otherwise>
|
4743
|
+
</xsl:choose>
|
4744
|
+
</xsl:variable>
|
4745
|
+
<xsl:call-template name="repeat">
|
4746
|
+
<xsl:with-param name="char" select="'_'"/>
|
4747
|
+
<xsl:with-param name="count" select="$count"/>
|
4748
|
+
</xsl:call-template>
|
4749
|
+
<xsl:text> </xsl:text>
|
4750
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'button']">
|
4751
|
+
<xsl:variable name="caption">
|
4752
|
+
<xsl:choose>
|
4753
|
+
<xsl:when test="normalize-space(@value) != ''"><xsl:value-of select="@value"/></xsl:when>
|
4754
|
+
<xsl:otherwise>BUTTON</xsl:otherwise>
|
4755
|
+
</xsl:choose>
|
4756
|
+
</xsl:variable>
|
4757
|
+
<fo:inline>[<xsl:value-of select="$caption"/>]</fo:inline>
|
4758
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'checkbox']">
|
4759
|
+
<fo:inline padding-right="1mm">
|
4760
|
+
<fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
|
4761
|
+
<xsl:attribute name="height">3.5mm</xsl:attribute>
|
4762
|
+
<xsl:attribute name="content-width">100%</xsl:attribute>
|
4763
|
+
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
4764
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
4765
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
|
4766
|
+
<polyline points="0,0 80,0 80,80 0,80 0,0" stroke="black" stroke-width="5" fill="white"/>
|
4767
|
+
</svg>
|
4768
|
+
</fo:instream-foreign-object>
|
4769
|
+
</fo:inline>
|
4770
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'radio']">
|
4771
|
+
<fo:inline padding-right="1mm">
|
4772
|
+
<fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
|
4773
|
+
<xsl:attribute name="height">3.5mm</xsl:attribute>
|
4774
|
+
<xsl:attribute name="content-width">100%</xsl:attribute>
|
4775
|
+
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
4776
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
4777
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
|
4778
|
+
<circle cx="40" cy="40" r="30" stroke="black" stroke-width="5" fill="white"/>
|
4779
|
+
<circle cx="40" cy="40" r="15" stroke="black" stroke-width="5" fill="white"/>
|
4780
|
+
</svg>
|
4781
|
+
</fo:instream-foreign-object>
|
4782
|
+
</fo:inline>
|
4783
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'select']">
|
4784
|
+
<fo:inline>
|
4785
|
+
<xsl:call-template name="text_input"/>
|
4786
|
+
</fo:inline>
|
4787
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'textarea']">
|
4788
|
+
<fo:block-container border="1pt solid black" width="50%">
|
4789
|
+
<fo:block> </fo:block>
|
4790
|
+
</fo:block-container>
|
4726
4791
|
</xsl:template><xsl:template name="convertDate">
|
4727
4792
|
<xsl:param name="date"/>
|
4728
4793
|
<xsl:param name="format" select="'short'"/>
|
@@ -2155,6 +2155,7 @@
|
|
2155
2155
|
|
2156
2156
|
|
2157
2157
|
|
2158
|
+
|
2158
2159
|
<xsl:if test=".//*[local-name() = 'table']">
|
2159
2160
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2160
2161
|
</xsl:if>
|
@@ -4723,6 +4724,70 @@
|
|
4723
4724
|
<xsl:value-of select="substring(.,1,1)"/>
|
4724
4725
|
</xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
|
4725
4726
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
4727
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']">
|
4728
|
+
<fo:block>
|
4729
|
+
<xsl:apply-templates/>
|
4730
|
+
</fo:block>
|
4731
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'label']">
|
4732
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
4733
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'text' or @type = 'date' or @type = 'file' or @type = 'password']">
|
4734
|
+
<fo:inline>
|
4735
|
+
<xsl:call-template name="text_input"/>
|
4736
|
+
</fo:inline>
|
4737
|
+
</xsl:template><xsl:template name="text_input">
|
4738
|
+
<xsl:variable name="count">
|
4739
|
+
<xsl:choose>
|
4740
|
+
<xsl:when test="normalize-space(@maxlength) != ''"><xsl:value-of select="@maxlength"/></xsl:when>
|
4741
|
+
<xsl:when test="normalize-space(@size) != ''"><xsl:value-of select="@size"/></xsl:when>
|
4742
|
+
<xsl:otherwise>10</xsl:otherwise>
|
4743
|
+
</xsl:choose>
|
4744
|
+
</xsl:variable>
|
4745
|
+
<xsl:call-template name="repeat">
|
4746
|
+
<xsl:with-param name="char" select="'_'"/>
|
4747
|
+
<xsl:with-param name="count" select="$count"/>
|
4748
|
+
</xsl:call-template>
|
4749
|
+
<xsl:text> </xsl:text>
|
4750
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'button']">
|
4751
|
+
<xsl:variable name="caption">
|
4752
|
+
<xsl:choose>
|
4753
|
+
<xsl:when test="normalize-space(@value) != ''"><xsl:value-of select="@value"/></xsl:when>
|
4754
|
+
<xsl:otherwise>BUTTON</xsl:otherwise>
|
4755
|
+
</xsl:choose>
|
4756
|
+
</xsl:variable>
|
4757
|
+
<fo:inline>[<xsl:value-of select="$caption"/>]</fo:inline>
|
4758
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'checkbox']">
|
4759
|
+
<fo:inline padding-right="1mm">
|
4760
|
+
<fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
|
4761
|
+
<xsl:attribute name="height">3.5mm</xsl:attribute>
|
4762
|
+
<xsl:attribute name="content-width">100%</xsl:attribute>
|
4763
|
+
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
4764
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
4765
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
|
4766
|
+
<polyline points="0,0 80,0 80,80 0,80 0,0" stroke="black" stroke-width="5" fill="white"/>
|
4767
|
+
</svg>
|
4768
|
+
</fo:instream-foreign-object>
|
4769
|
+
</fo:inline>
|
4770
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'radio']">
|
4771
|
+
<fo:inline padding-right="1mm">
|
4772
|
+
<fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
|
4773
|
+
<xsl:attribute name="height">3.5mm</xsl:attribute>
|
4774
|
+
<xsl:attribute name="content-width">100%</xsl:attribute>
|
4775
|
+
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
4776
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
4777
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
|
4778
|
+
<circle cx="40" cy="40" r="30" stroke="black" stroke-width="5" fill="white"/>
|
4779
|
+
<circle cx="40" cy="40" r="15" stroke="black" stroke-width="5" fill="white"/>
|
4780
|
+
</svg>
|
4781
|
+
</fo:instream-foreign-object>
|
4782
|
+
</fo:inline>
|
4783
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'select']">
|
4784
|
+
<fo:inline>
|
4785
|
+
<xsl:call-template name="text_input"/>
|
4786
|
+
</fo:inline>
|
4787
|
+
</xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'textarea']">
|
4788
|
+
<fo:block-container border="1pt solid black" width="50%">
|
4789
|
+
<fo:block> </fo:block>
|
4790
|
+
</fo:block-container>
|
4726
4791
|
</xsl:template><xsl:template name="convertDate">
|
4727
4792
|
<xsl:param name="date"/>
|
4728
4793
|
<xsl:param name="format" select="'short'"/>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-m3aawg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|