metanorma-ogc 1.3.1 → 1.3.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c844c9413112ce478961eaee4dc1d9095cb45f7a9037e5fb2a017aa14df2570a
4
- data.tar.gz: b18b7340a94b1ca58ae3e1acc4531fb27c64f65077a523ce725c5f0672beb9dc
3
+ metadata.gz: ab228556b30aeb735ec73bc87b13932b417cbc7f5004e7ca727ab3032c9280e3
4
+ data.tar.gz: aed275dc62dd3ba7a365c4b03f291e4dee112494cbb23cefc190fefff9ebabc7
5
5
  SHA512:
6
- metadata.gz: d1322f1463bcf357d6528a2db5c3ce2e8b1f2b34123aab899896afb99c8036d47396b892085676222b466602a26656ae903d9cea1857fe9c730b0d39567b254c
7
- data.tar.gz: d85779466d2a1f7f973b47888520a1c633ed45b0afb07d0f2cc78ec13e5c21807ca76e8486a15535b4126a831abdfa238e7cd1b51837339582d3b5150b4bdb2b
6
+ metadata.gz: 412b2eb2a69c2e2e3caba3aecbc5f2592d01c4b6c4f6e88dff383563883a49b3ac07394cf8820699b3f42bb447d3f6805417495c9748a4de7b5032b76e2d20ce
7
+ data.tar.gz: 518d1af9d654d76fb93e0ee69981d9f7567d3c845818cbcf5d293def1b509a89ee973826e220706803921ab7d12d5aeb331d50d5e31a2eacdf69398901f78e93
data/.rubocop.yml CHANGED
@@ -10,5 +10,3 @@ AllCops:
10
10
  DisplayCopNames: false
11
11
  StyleGuideCopsOnly: false
12
12
  TargetRubyVersion: 2.4
13
- Rails:
14
- Enabled: true
@@ -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>
@@ -2807,6 +2807,7 @@
2807
2807
 
2808
2808
 
2809
2809
 
2810
+
2810
2811
  <xsl:attribute name="border">solid 0pt white</xsl:attribute>
2811
2812
 
2812
2813
 
@@ -5598,6 +5599,70 @@
5598
5599
  <xsl:value-of select="substring(.,1,1)"/>
5599
5600
  </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
5600
5601
  <fo:inline><xsl:apply-templates/></fo:inline>
5602
+ </xsl:template><xsl:template match="*[local-name() = 'form']">
5603
+ <fo:block>
5604
+ <xsl:apply-templates/>
5605
+ </fo:block>
5606
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'label']">
5607
+ <fo:inline><xsl:apply-templates/></fo:inline>
5608
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'text' or @type = 'date' or @type = 'file' or @type = 'password']">
5609
+ <fo:inline>
5610
+ <xsl:call-template name="text_input"/>
5611
+ </fo:inline>
5612
+ </xsl:template><xsl:template name="text_input">
5613
+ <xsl:variable name="count">
5614
+ <xsl:choose>
5615
+ <xsl:when test="normalize-space(@maxlength) != ''"><xsl:value-of select="@maxlength"/></xsl:when>
5616
+ <xsl:when test="normalize-space(@size) != ''"><xsl:value-of select="@size"/></xsl:when>
5617
+ <xsl:otherwise>10</xsl:otherwise>
5618
+ </xsl:choose>
5619
+ </xsl:variable>
5620
+ <xsl:call-template name="repeat">
5621
+ <xsl:with-param name="char" select="'_'"/>
5622
+ <xsl:with-param name="count" select="$count"/>
5623
+ </xsl:call-template>
5624
+ <xsl:text> </xsl:text>
5625
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'button']">
5626
+ <xsl:variable name="caption">
5627
+ <xsl:choose>
5628
+ <xsl:when test="normalize-space(@value) != ''"><xsl:value-of select="@value"/></xsl:when>
5629
+ <xsl:otherwise>BUTTON</xsl:otherwise>
5630
+ </xsl:choose>
5631
+ </xsl:variable>
5632
+ <fo:inline>[<xsl:value-of select="$caption"/>]</fo:inline>
5633
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'checkbox']">
5634
+ <fo:inline padding-right="1mm">
5635
+ <fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
5636
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
5637
+ <xsl:attribute name="content-width">100%</xsl:attribute>
5638
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
5639
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
5640
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
5641
+ <polyline points="0,0 80,0 80,80 0,80 0,0" stroke="black" stroke-width="5" fill="white"/>
5642
+ </svg>
5643
+ </fo:instream-foreign-object>
5644
+ </fo:inline>
5645
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'radio']">
5646
+ <fo:inline padding-right="1mm">
5647
+ <fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
5648
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
5649
+ <xsl:attribute name="content-width">100%</xsl:attribute>
5650
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
5651
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
5652
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
5653
+ <circle cx="40" cy="40" r="30" stroke="black" stroke-width="5" fill="white"/>
5654
+ <circle cx="40" cy="40" r="15" stroke="black" stroke-width="5" fill="white"/>
5655
+ </svg>
5656
+ </fo:instream-foreign-object>
5657
+ </fo:inline>
5658
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'select']">
5659
+ <fo:inline>
5660
+ <xsl:call-template name="text_input"/>
5661
+ </fo:inline>
5662
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'textarea']">
5663
+ <fo:block-container border="1pt solid black" width="50%">
5664
+ <fo:block> </fo:block>
5665
+ </fo:block-container>
5601
5666
  </xsl:template><xsl:template name="convertDate">
5602
5667
  <xsl:param name="date"/>
5603
5668
  <xsl:param name="format" select="'short'"/>
@@ -2807,6 +2807,7 @@
2807
2807
 
2808
2808
 
2809
2809
 
2810
+
2810
2811
  <xsl:attribute name="border">solid 0pt white</xsl:attribute>
2811
2812
 
2812
2813
 
@@ -5598,6 +5599,70 @@
5598
5599
  <xsl:value-of select="substring(.,1,1)"/>
5599
5600
  </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
5600
5601
  <fo:inline><xsl:apply-templates/></fo:inline>
5602
+ </xsl:template><xsl:template match="*[local-name() = 'form']">
5603
+ <fo:block>
5604
+ <xsl:apply-templates/>
5605
+ </fo:block>
5606
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'label']">
5607
+ <fo:inline><xsl:apply-templates/></fo:inline>
5608
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'text' or @type = 'date' or @type = 'file' or @type = 'password']">
5609
+ <fo:inline>
5610
+ <xsl:call-template name="text_input"/>
5611
+ </fo:inline>
5612
+ </xsl:template><xsl:template name="text_input">
5613
+ <xsl:variable name="count">
5614
+ <xsl:choose>
5615
+ <xsl:when test="normalize-space(@maxlength) != ''"><xsl:value-of select="@maxlength"/></xsl:when>
5616
+ <xsl:when test="normalize-space(@size) != ''"><xsl:value-of select="@size"/></xsl:when>
5617
+ <xsl:otherwise>10</xsl:otherwise>
5618
+ </xsl:choose>
5619
+ </xsl:variable>
5620
+ <xsl:call-template name="repeat">
5621
+ <xsl:with-param name="char" select="'_'"/>
5622
+ <xsl:with-param name="count" select="$count"/>
5623
+ </xsl:call-template>
5624
+ <xsl:text> </xsl:text>
5625
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'button']">
5626
+ <xsl:variable name="caption">
5627
+ <xsl:choose>
5628
+ <xsl:when test="normalize-space(@value) != ''"><xsl:value-of select="@value"/></xsl:when>
5629
+ <xsl:otherwise>BUTTON</xsl:otherwise>
5630
+ </xsl:choose>
5631
+ </xsl:variable>
5632
+ <fo:inline>[<xsl:value-of select="$caption"/>]</fo:inline>
5633
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'checkbox']">
5634
+ <fo:inline padding-right="1mm">
5635
+ <fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
5636
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
5637
+ <xsl:attribute name="content-width">100%</xsl:attribute>
5638
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
5639
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
5640
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
5641
+ <polyline points="0,0 80,0 80,80 0,80 0,0" stroke="black" stroke-width="5" fill="white"/>
5642
+ </svg>
5643
+ </fo:instream-foreign-object>
5644
+ </fo:inline>
5645
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'radio']">
5646
+ <fo:inline padding-right="1mm">
5647
+ <fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
5648
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
5649
+ <xsl:attribute name="content-width">100%</xsl:attribute>
5650
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
5651
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
5652
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
5653
+ <circle cx="40" cy="40" r="30" stroke="black" stroke-width="5" fill="white"/>
5654
+ <circle cx="40" cy="40" r="15" stroke="black" stroke-width="5" fill="white"/>
5655
+ </svg>
5656
+ </fo:instream-foreign-object>
5657
+ </fo:inline>
5658
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'select']">
5659
+ <fo:inline>
5660
+ <xsl:call-template name="text_input"/>
5661
+ </fo:inline>
5662
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'textarea']">
5663
+ <fo:block-container border="1pt solid black" width="50%">
5664
+ <fo:block> </fo:block>
5665
+ </fo:block-container>
5601
5666
  </xsl:template><xsl:template name="convertDate">
5602
5667
  <xsl:param name="date"/>
5603
5668
  <xsl:param name="format" select="'short'"/>
@@ -2807,6 +2807,7 @@
2807
2807
 
2808
2808
 
2809
2809
 
2810
+
2810
2811
  <xsl:attribute name="border">solid 0pt white</xsl:attribute>
2811
2812
 
2812
2813
 
@@ -5598,6 +5599,70 @@
5598
5599
  <xsl:value-of select="substring(.,1,1)"/>
5599
5600
  </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
5600
5601
  <fo:inline><xsl:apply-templates/></fo:inline>
5602
+ </xsl:template><xsl:template match="*[local-name() = 'form']">
5603
+ <fo:block>
5604
+ <xsl:apply-templates/>
5605
+ </fo:block>
5606
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'label']">
5607
+ <fo:inline><xsl:apply-templates/></fo:inline>
5608
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'text' or @type = 'date' or @type = 'file' or @type = 'password']">
5609
+ <fo:inline>
5610
+ <xsl:call-template name="text_input"/>
5611
+ </fo:inline>
5612
+ </xsl:template><xsl:template name="text_input">
5613
+ <xsl:variable name="count">
5614
+ <xsl:choose>
5615
+ <xsl:when test="normalize-space(@maxlength) != ''"><xsl:value-of select="@maxlength"/></xsl:when>
5616
+ <xsl:when test="normalize-space(@size) != ''"><xsl:value-of select="@size"/></xsl:when>
5617
+ <xsl:otherwise>10</xsl:otherwise>
5618
+ </xsl:choose>
5619
+ </xsl:variable>
5620
+ <xsl:call-template name="repeat">
5621
+ <xsl:with-param name="char" select="'_'"/>
5622
+ <xsl:with-param name="count" select="$count"/>
5623
+ </xsl:call-template>
5624
+ <xsl:text> </xsl:text>
5625
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'button']">
5626
+ <xsl:variable name="caption">
5627
+ <xsl:choose>
5628
+ <xsl:when test="normalize-space(@value) != ''"><xsl:value-of select="@value"/></xsl:when>
5629
+ <xsl:otherwise>BUTTON</xsl:otherwise>
5630
+ </xsl:choose>
5631
+ </xsl:variable>
5632
+ <fo:inline>[<xsl:value-of select="$caption"/>]</fo:inline>
5633
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'checkbox']">
5634
+ <fo:inline padding-right="1mm">
5635
+ <fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
5636
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
5637
+ <xsl:attribute name="content-width">100%</xsl:attribute>
5638
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
5639
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
5640
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
5641
+ <polyline points="0,0 80,0 80,80 0,80 0,0" stroke="black" stroke-width="5" fill="white"/>
5642
+ </svg>
5643
+ </fo:instream-foreign-object>
5644
+ </fo:inline>
5645
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'radio']">
5646
+ <fo:inline padding-right="1mm">
5647
+ <fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
5648
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
5649
+ <xsl:attribute name="content-width">100%</xsl:attribute>
5650
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
5651
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
5652
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
5653
+ <circle cx="40" cy="40" r="30" stroke="black" stroke-width="5" fill="white"/>
5654
+ <circle cx="40" cy="40" r="15" stroke="black" stroke-width="5" fill="white"/>
5655
+ </svg>
5656
+ </fo:instream-foreign-object>
5657
+ </fo:inline>
5658
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'select']">
5659
+ <fo:inline>
5660
+ <xsl:call-template name="text_input"/>
5661
+ </fo:inline>
5662
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'textarea']">
5663
+ <fo:block-container border="1pt solid black" width="50%">
5664
+ <fo:block> </fo:block>
5665
+ </fo:block-container>
5601
5666
  </xsl:template><xsl:template name="convertDate">
5602
5667
  <xsl:param name="date"/>
5603
5668
  <xsl:param name="format" select="'short'"/>
@@ -2807,6 +2807,7 @@
2807
2807
 
2808
2808
 
2809
2809
 
2810
+
2810
2811
  <xsl:attribute name="border">solid 0pt white</xsl:attribute>
2811
2812
 
2812
2813
 
@@ -5598,6 +5599,70 @@
5598
5599
  <xsl:value-of select="substring(.,1,1)"/>
5599
5600
  </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
5600
5601
  <fo:inline><xsl:apply-templates/></fo:inline>
5602
+ </xsl:template><xsl:template match="*[local-name() = 'form']">
5603
+ <fo:block>
5604
+ <xsl:apply-templates/>
5605
+ </fo:block>
5606
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'label']">
5607
+ <fo:inline><xsl:apply-templates/></fo:inline>
5608
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'text' or @type = 'date' or @type = 'file' or @type = 'password']">
5609
+ <fo:inline>
5610
+ <xsl:call-template name="text_input"/>
5611
+ </fo:inline>
5612
+ </xsl:template><xsl:template name="text_input">
5613
+ <xsl:variable name="count">
5614
+ <xsl:choose>
5615
+ <xsl:when test="normalize-space(@maxlength) != ''"><xsl:value-of select="@maxlength"/></xsl:when>
5616
+ <xsl:when test="normalize-space(@size) != ''"><xsl:value-of select="@size"/></xsl:when>
5617
+ <xsl:otherwise>10</xsl:otherwise>
5618
+ </xsl:choose>
5619
+ </xsl:variable>
5620
+ <xsl:call-template name="repeat">
5621
+ <xsl:with-param name="char" select="'_'"/>
5622
+ <xsl:with-param name="count" select="$count"/>
5623
+ </xsl:call-template>
5624
+ <xsl:text> </xsl:text>
5625
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'button']">
5626
+ <xsl:variable name="caption">
5627
+ <xsl:choose>
5628
+ <xsl:when test="normalize-space(@value) != ''"><xsl:value-of select="@value"/></xsl:when>
5629
+ <xsl:otherwise>BUTTON</xsl:otherwise>
5630
+ </xsl:choose>
5631
+ </xsl:variable>
5632
+ <fo:inline>[<xsl:value-of select="$caption"/>]</fo:inline>
5633
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'checkbox']">
5634
+ <fo:inline padding-right="1mm">
5635
+ <fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
5636
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
5637
+ <xsl:attribute name="content-width">100%</xsl:attribute>
5638
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
5639
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
5640
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
5641
+ <polyline points="0,0 80,0 80,80 0,80 0,0" stroke="black" stroke-width="5" fill="white"/>
5642
+ </svg>
5643
+ </fo:instream-foreign-object>
5644
+ </fo:inline>
5645
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'radio']">
5646
+ <fo:inline padding-right="1mm">
5647
+ <fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
5648
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
5649
+ <xsl:attribute name="content-width">100%</xsl:attribute>
5650
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
5651
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
5652
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
5653
+ <circle cx="40" cy="40" r="30" stroke="black" stroke-width="5" fill="white"/>
5654
+ <circle cx="40" cy="40" r="15" stroke="black" stroke-width="5" fill="white"/>
5655
+ </svg>
5656
+ </fo:instream-foreign-object>
5657
+ </fo:inline>
5658
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'select']">
5659
+ <fo:inline>
5660
+ <xsl:call-template name="text_input"/>
5661
+ </fo:inline>
5662
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'textarea']">
5663
+ <fo:block-container border="1pt solid black" width="50%">
5664
+ <fo:block> </fo:block>
5665
+ </fo:block-container>
5601
5666
  </xsl:template><xsl:template name="convertDate">
5602
5667
  <xsl:param name="date"/>
5603
5668
  <xsl:param name="format" select="'short'"/>