metanorma-cli 1.3.3.1 → 1.3.4

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.
Files changed (950) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +62 -69
  3. data/gems/ruby/2.6.0/gems/fontist-1.2.0/Gemfile +4 -0
  4. data/gems/ruby/2.6.0/gems/fontist-1.2.0/LICENSE.txt +26 -0
  5. data/gems/ruby/2.6.0/gems/fontist-1.2.0/README.md +179 -0
  6. data/gems/ruby/2.6.0/gems/fontist-1.2.0/Rakefile +6 -0
  7. data/gems/ruby/2.6.0/gems/fontist-1.2.0/bin/console +11 -0
  8. data/gems/ruby/2.6.0/gems/fontist-1.2.0/bin/rspec +29 -0
  9. data/gems/ruby/2.6.0/gems/fontist-1.2.0/bin/setup +7 -0
  10. data/gems/ruby/2.6.0/gems/fontist-1.2.0/fontist.gemspec +32 -0
  11. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist.rb +48 -0
  12. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/errors.rb +10 -0
  13. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/font.rb +78 -0
  14. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/font_formula.rb +123 -0
  15. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formula.rb +90 -0
  16. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas.rb +15 -0
  17. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/andale_font.rb +79 -0
  18. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/arial_black_font.rb +78 -0
  19. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/cleartype_fonts.rb +226 -0
  20. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/comic_font.rb +77 -0
  21. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/courier_font.rb +80 -0
  22. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/euphemia_font.rb +85 -0
  23. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/georgia_font.rb +79 -0
  24. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/impact_font.rb +77 -0
  25. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/montserrat_font.rb +132 -0
  26. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/ms_truetype_fonts.rb +124 -0
  27. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/open_sans_fonts.rb +263 -0
  28. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/overpass_font.rb +73 -0
  29. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/source_fonts.rb +109 -0
  30. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/stix_fonts.rb +108 -0
  31. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/tahoma_font.rb +146 -0
  32. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas/webding_font.rb +77 -0
  33. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/registry.rb +42 -0
  34. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/system.yml +17 -0
  35. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/system_font.rb +72 -0
  36. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/utils.rb +9 -0
  37. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/utils/downloader.rb +74 -0
  38. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/utils/dsl.rb +77 -0
  39. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/utils/exe_extractor.rb +72 -0
  40. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/utils/zip_extractor.rb +38 -0
  41. data/gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/version.rb +3 -0
  42. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fixtures/fonts/DejaVuSerif.ttf +0 -0
  43. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/font_formula_spec.rb +67 -0
  44. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/font_spec.rb +87 -0
  45. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formula_spec.rb +67 -0
  46. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/andale_font_spec.rb +29 -0
  47. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/arial_black_font_spec.rb +29 -0
  48. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/cleartype_fonts_spec.rb +38 -0
  49. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/comic_font_spec.rb +29 -0
  50. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/courier_font_spec.rb +29 -0
  51. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/euphemia_font_spec.rb +29 -0
  52. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/georgia_font_spec.rb +29 -0
  53. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/impact_font_spec.rb +29 -0
  54. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/montserrat_font_spec.rb +29 -0
  55. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/ms_truetype_fonts_spec.rb +29 -0
  56. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/open_sans_fonts_spec.rb +29 -0
  57. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/overpass_font_spec.rb +29 -0
  58. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/source_fonts_spec.rb +31 -0
  59. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/stix_fonts_spec.rb +29 -0
  60. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/tahoma_font_spec.rb +29 -0
  61. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/webding_font_spec.rb +29 -0
  62. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/registry_spec.rb +47 -0
  63. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/system_font_spec.rb +44 -0
  64. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/utils/downloader_spec.rb +35 -0
  65. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist_spec.rb +5 -0
  66. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/spec_helper.rb +22 -0
  67. data/gems/ruby/2.6.0/gems/fontist-1.2.0/spec/support/fontist_helper.rb +10 -0
  68. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/CODE_OF_CONDUCT.md +46 -0
  69. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/Gemfile +11 -0
  70. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/LICENSE +25 -0
  71. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/Rakefile +8 -0
  72. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/bin/rspec +18 -0
  73. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/isodoc.gemspec +51 -0
  74. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc-yaml/i18n-en.yaml +98 -0
  75. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc-yaml/i18n-fr.yaml +91 -0
  76. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc-yaml/i18n-zh-Hans.yaml +92 -0
  77. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc.rb +30 -0
  78. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/all.css +207 -0
  79. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/all.scss +6 -0
  80. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/bands.scss +79 -0
  81. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/blocks.css +0 -0
  82. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/blocks.scss +128 -0
  83. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/coverpage.css +0 -0
  84. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/coverpage.scss +7 -0
  85. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/defaults.css +0 -0
  86. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/defaults.scss +26 -0
  87. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/metanorma_word.css +34 -0
  88. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/metanorma_word.scss +30 -0
  89. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/nav.css +0 -0
  90. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/nav.scss +180 -0
  91. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/reset.css +105 -0
  92. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/reset.scss +129 -0
  93. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/typography.css +0 -0
  94. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/base_style/typography.scss +67 -0
  95. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/class_utils.rb +30 -0
  96. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/common.rb +29 -0
  97. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/convert.rb +250 -0
  98. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function.rb +4 -0
  99. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/blocks.rb +208 -0
  100. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/blocks_example_note.rb +107 -0
  101. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/cleanup.rb +218 -0
  102. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/inline.rb +155 -0
  103. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/inline_simple.rb +72 -0
  104. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/lists.rb +94 -0
  105. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/references.rb +214 -0
  106. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/reqt.rb +115 -0
  107. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/section.rb +228 -0
  108. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/table.rb +108 -0
  109. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/terms.rb +78 -0
  110. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/to_word_html.rb +230 -0
  111. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/utils.rb +190 -0
  112. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/gem_tasks.rb +133 -0
  113. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/headlesshtml_convert.rb +45 -0
  114. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/html_convert.rb +30 -0
  115. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/html_function.rb +4 -0
  116. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/html_function/comments.rb +144 -0
  117. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/html_function/footnotes.rb +83 -0
  118. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/html_function/html.rb +115 -0
  119. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/html_function/postprocess.rb +243 -0
  120. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/i18n.rb +122 -0
  121. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/metadata.rb +235 -0
  122. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/metadata_date.rb +39 -0
  123. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/pdf_convert.rb +50 -0
  124. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/presentation_function/block.rb +138 -0
  125. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/presentation_function/inline.rb +131 -0
  126. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/presentation_function/section.rb +46 -0
  127. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/presentation_xml_convert.rb +62 -0
  128. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/sassc_importer.rb +11 -0
  129. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/version.rb +3 -0
  130. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_convert.rb +45 -0
  131. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function.rb +4 -0
  132. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/body.rb +214 -0
  133. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/comments.rb +145 -0
  134. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/footnotes.rb +105 -0
  135. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/inline.rb +77 -0
  136. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/postprocess.rb +247 -0
  137. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/postprocess_cover.rb +79 -0
  138. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/word_function/table.rb +60 -0
  139. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xref.rb +61 -0
  140. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xref/xref_anchor.rb +56 -0
  141. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xref/xref_counter.rb +74 -0
  142. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xref/xref_gen.rb +117 -0
  143. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xref/xref_gen_seq.rb +163 -0
  144. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xref/xref_sect_gen.rb +151 -0
  145. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/xslfo_convert.rb +46 -0
  146. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/html.scss +6 -0
  147. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/i18n.yaml +16 -0
  148. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/odf.emf +0 -0
  149. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/odf.svg +4 -0
  150. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/odf1.svg +4 -0
  151. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/rice_image1 +0 -0
  152. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/std.css +2 -0
  153. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/assets/word.css +2 -0
  154. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/blocks_spec.rb +2643 -0
  155. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/cleanup_spec.rb +1188 -0
  156. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/footnotes_spec.rb +280 -0
  157. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/i18n_spec.rb +1131 -0
  158. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/inline_spec.rb +995 -0
  159. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/lists_spec.rb +346 -0
  160. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/metadata_spec.rb +342 -0
  161. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/postproc_spec.rb +1536 -0
  162. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/presentation_xml_spec.rb +20 -0
  163. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/ref_spec.rb +427 -0
  164. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/section_spec.rb +993 -0
  165. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/table_spec.rb +454 -0
  166. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/terms_spec.rb +268 -0
  167. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/xref_spec.rb +2764 -0
  168. data/gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/spec_helper.rb +74 -0
  169. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/CODE_OF_CONDUCT.md +74 -0
  170. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/Gemfile +11 -0
  171. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/LICENSE +25 -0
  172. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/Rakefile +8 -0
  173. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/bin/console +14 -0
  174. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/bin/rspec +18 -0
  175. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/bin/setup +8 -0
  176. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc.rb +5 -0
  177. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/basicdoc.rng +1059 -0
  178. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/biblio.rng +1237 -0
  179. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/cc.rng +116 -0
  180. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/converter.rb +72 -0
  181. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/front.rb +93 -0
  182. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/isodoc.rng +1510 -0
  183. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/reqt.rng +194 -0
  184. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/validate.rb +29 -0
  185. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/asciidoctor/cc/validate_section.rb +124 -0
  186. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/base_convert.rb +21 -0
  187. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/csd.standard.xsl +3371 -0
  188. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/_coverpage.css +307 -0
  189. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/_coverpage.scss +130 -0
  190. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/cc.css +801 -0
  191. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/cc.scss +763 -0
  192. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/htmlstyle.css +1013 -0
  193. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/htmlstyle.scss +409 -0
  194. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/wordstyle.css +1253 -0
  195. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html/wordstyle.scss +1156 -0
  196. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/html_convert.rb +53 -0
  197. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/i18n-en.yaml +2 -0
  198. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/i18n.rb +10 -0
  199. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/init.rb +23 -0
  200. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/metadata.rb +61 -0
  201. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/pdf_convert.rb +21 -0
  202. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/presentation_xml_convert.rb +19 -0
  203. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/word_convert.rb +40 -0
  204. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/xref.rb +6 -0
  205. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/metanorma-cc.rb +11 -0
  206. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/metanorma/cc.rb +29 -0
  207. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/metanorma/cc/processor.rb +49 -0
  208. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/metanorma/cc/version.rb +5 -0
  209. data/gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/metanorma-cc.gemspec +44 -0
  210. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/CODE_OF_CONDUCT.md +74 -0
  211. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/Gemfile +11 -0
  212. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/LICENSE +25 -0
  213. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/Rakefile +8 -0
  214. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/bin/console +14 -0
  215. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/bin/rspec +18 -0
  216. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/bin/setup +8 -0
  217. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa.rb +5 -0
  218. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/basicdoc.rng +1059 -0
  219. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/biblio.rng +1237 -0
  220. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/converter.rb +139 -0
  221. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/csa.rng +115 -0
  222. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/isodoc.rng +1510 -0
  223. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/reqt.rng +194 -0
  224. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/asciidoctor/csa/validate.rb +22 -0
  225. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/base_convert.rb +23 -0
  226. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/csa.standard.xsl +3387 -0
  227. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html/csa.css +801 -0
  228. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html/csa.scss +763 -0
  229. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html/htmlstyle.css +1070 -0
  230. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html/htmlstyle.scss +806 -0
  231. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html/wordstyle.css +1253 -0
  232. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html/wordstyle.scss +1157 -0
  233. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/html_convert.rb +60 -0
  234. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/i18n-en.yaml +2 -0
  235. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/i18n.rb +10 -0
  236. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/init.rb +24 -0
  237. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/metadata.rb +51 -0
  238. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/pdf_convert.rb +22 -0
  239. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/presentation_xml_convert.rb +19 -0
  240. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/word_convert.rb +42 -0
  241. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/isodoc/csa/xref.rb +6 -0
  242. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/metanorma-csa.rb +11 -0
  243. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/metanorma/csa.rb +7 -0
  244. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/metanorma/csa/processor.rb +52 -0
  245. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/lib/metanorma/csa/version.rb +7 -0
  246. data/gems/ruby/2.6.0/gems/metanorma-csa-1.6.0/metanorma-csa.gemspec +52 -0
  247. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/CODE_OF_CONDUCT.md +74 -0
  248. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/Gemfile +10 -0
  249. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/LICENSE +25 -0
  250. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/Rakefile +23 -0
  251. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/asciidoctor-gb.gemspec.old +47 -0
  252. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/bin/console +14 -0
  253. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/bin/rspec +18 -0
  254. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/bin/setup +8 -0
  255. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb.rb +5 -0
  256. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/basicdoc.rng +1059 -0
  257. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/biblio.rng +1237 -0
  258. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/cleanup.rb +130 -0
  259. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/converter.rb +146 -0
  260. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/front.rb +242 -0
  261. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/front_id.rb +57 -0
  262. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/gbstandard.rng +300 -0
  263. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/isodoc.rng +1510 -0
  264. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/isostandard.rng +533 -0
  265. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/reqt.rng +194 -0
  266. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/section_input.rb +42 -0
  267. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/asciidoctor/gb/validate.rb +132 -0
  268. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/base_convert.rb +211 -0
  269. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/cleanup.rb +79 -0
  270. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/common.rb +72 -0
  271. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/gb.recommendation.xsl +3739 -0
  272. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/_coverpage.css +193 -0
  273. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/_coverpage.scss +249 -0
  274. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-issuer-default.svg +980 -0
  275. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-standard-db.svg +1 -0
  276. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-standard-gb.svg +1 -0
  277. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-standard-gjb.svg +1 -0
  278. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-standard-gm.svg +1 -0
  279. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-standard-jjf.svg +1 -0
  280. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb-logos/gb-standard-zb.svg +13 -0
  281. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb.css +657 -0
  282. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/gb.scss +617 -0
  283. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/htmlcompliantstyle.css +1303 -0
  284. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/htmlcompliantstyle.scss +1004 -0
  285. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/htmlstyle.css +844 -0
  286. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/htmlstyle.scss +414 -0
  287. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/wordstyle.css +2932 -0
  288. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html/wordstyle.scss +2750 -0
  289. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/html_convert.rb +70 -0
  290. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/i18n-en.yaml +11 -0
  291. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/i18n-zh-Hans.yaml +11 -0
  292. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/i18n.rb +16 -0
  293. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/init.rb +29 -0
  294. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/metadata.rb +225 -0
  295. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/pdf_convert.rb +21 -0
  296. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/presentation_xml_convert.rb +26 -0
  297. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/word_convert.rb +126 -0
  298. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/isodoc/gb/xref.rb +6 -0
  299. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/metanorma-gb.rb +12 -0
  300. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/metanorma/gb.rb +7 -0
  301. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/metanorma/gb/processor.rb +73 -0
  302. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/lib/metanorma/gb/version.rb +5 -0
  303. data/gems/ruby/2.6.0/gems/metanorma-gb-1.5.1/metanorma-gb.gemspec +49 -0
  304. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/CODE_OF_CONDUCT.md +74 -0
  305. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/Gemfile +11 -0
  306. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/LICENSE +25 -0
  307. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/Rakefile +6 -0
  308. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/bin/console +14 -0
  309. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/bin/rspec +17 -0
  310. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/bin/setup +8 -0
  311. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic.rb +7 -0
  312. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/basicdoc.rng +1059 -0
  313. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/biblio.rng +1237 -0
  314. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/converter.rb +219 -0
  315. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/generic.rng +79 -0
  316. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/isodoc.rng +1510 -0
  317. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/reqt.rng +194 -0
  318. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/asciidoctor/generic/rsd.rng +225 -0
  319. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic.rb +11 -0
  320. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/base_convert.rb +43 -0
  321. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/html/generic.scss +766 -0
  322. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/html/htmlstyle.scss +710 -0
  323. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/html/wordstyle.scss +1157 -0
  324. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/html_convert.rb +65 -0
  325. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/init.rb +27 -0
  326. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/metadata.rb +59 -0
  327. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/pdf_convert.rb +66 -0
  328. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/presentation_xml_convert.rb +19 -0
  329. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/word_convert.rb +60 -0
  330. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/xref.rb +6 -0
  331. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/metanorma-generic.rb +8 -0
  332. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/metanorma/generic.rb +108 -0
  333. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/metanorma/generic/processor.rb +88 -0
  334. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/metanorma/generic/version.rb +5 -0
  335. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/metanorma-generic.gemspec +44 -0
  336. data/gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/metanorma.yml.example +61 -0
  337. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/CODE_OF_CONDUCT.md +74 -0
  338. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/Gemfile +7 -0
  339. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/LICENSE +25 -0
  340. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/Rakefile +8 -0
  341. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/bin/rspec +18 -0
  342. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/basicdoc.rng +1059 -0
  343. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/biblio.rng +1237 -0
  344. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/converter.rb +80 -0
  345. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/front.rb +220 -0
  346. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/iec.rng +43 -0
  347. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/isodoc.rng +1510 -0
  348. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/isostandard.rng +533 -0
  349. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/asciidoctor/iec/reqt.rng +194 -0
  350. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/base_convert.rb +147 -0
  351. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html/htmlstyle.css +962 -0
  352. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html/htmlstyle.scss +703 -0
  353. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html/isodoc.css +845 -0
  354. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html/isodoc.scss +836 -0
  355. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html/wordstyle.css +2013 -0
  356. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html/wordstyle.scss +1854 -0
  357. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/html_convert.rb +43 -0
  358. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/i18n-en.yaml +18 -0
  359. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/i18n-fr.yaml +18 -0
  360. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/i18n-zh-Hans.yaml +14 -0
  361. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/i18n.rb +19 -0
  362. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/iec.international-standard.xsl +4782 -0
  363. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/init.rb +29 -0
  364. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/metadata.rb +28 -0
  365. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/pdf_convert.rb +21 -0
  366. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/presentation_xml_convert.rb +35 -0
  367. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/word_convert.rb +188 -0
  368. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/isodoc/iec/xref.rb +45 -0
  369. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/metanorma-iec.rb +15 -0
  370. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/metanorma/iec.rb +8 -0
  371. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/metanorma/iec/processor.rb +49 -0
  372. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/lib/metanorma/iec/version.rb +6 -0
  373. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/metanorma-iec.gemspec +45 -0
  374. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/base_spec.rb +602 -0
  375. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/blocks_spec.rb +481 -0
  376. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/cleanup_spec.rb +440 -0
  377. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/iev_spec.rb +234 -0
  378. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/inline_spec.rb +164 -0
  379. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/lists_spec.rb +190 -0
  380. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/section_spec.rb +369 -0
  381. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/asciidoctor-iec/validate_spec.rb +20 -0
  382. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/assets/html.css +2 -0
  383. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/assets/word.css +2 -0
  384. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/blocks_spec.rb +219 -0
  385. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/i18n_spec.rb +648 -0
  386. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/iev_spec.rb +564 -0
  387. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/inline_spec.rb +287 -0
  388. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/iso_spec.rb +217 -0
  389. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/metadata_spec.rb +242 -0
  390. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/postproc_spec.rb +299 -0
  391. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/ref_spec.rb +376 -0
  392. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/section_spec.rb +541 -0
  393. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/isodoc/terms_spec.rb +193 -0
  394. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/metanorma/processor_spec.rb +76 -0
  395. data/gems/ruby/2.6.0/gems/metanorma-iec-1.2.1/spec/spec_helper.rb +296 -0
  396. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/CODE_OF_CONDUCT.md +74 -0
  397. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/Gemfile +13 -0
  398. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/Guardfile +22 -0
  399. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/LICENSE +25 -0
  400. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/Rakefile +6 -0
  401. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/bin/asciidoctor-rfc2 +14 -0
  402. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/bin/asciidoctor-rfc2.bat +2 -0
  403. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/bin/asciidoctor-rfc3 +14 -0
  404. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/bin/console +14 -0
  405. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/bin/rspec +17 -0
  406. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/bin/setup +8 -0
  407. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/docs/installation.md +21 -0
  408. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/docs/navigation.md +7 -0
  409. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/docs/overview.md +5 -0
  410. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/basicdoc.rng +1059 -0
  411. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/biblio.rng +1237 -0
  412. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/blocks.rb +78 -0
  413. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/converter.rb +201 -0
  414. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/front.rb +144 -0
  415. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/ietf.rng +888 -0
  416. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/isodoc.rng +1510 -0
  417. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/reqt.rng +194 -0
  418. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/asciidoctor/ietf/validate.rb +84 -0
  419. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/blocks.rb +227 -0
  420. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/cleanup.rb +230 -0
  421. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/footnotes.rb +70 -0
  422. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/front.rb +236 -0
  423. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/inline.rb +167 -0
  424. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/metadata.rb +54 -0
  425. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/references.rb +148 -0
  426. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/reqt.rb +79 -0
  427. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/rfc_convert.rb +82 -0
  428. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/section.rb +175 -0
  429. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/table.rb +43 -0
  430. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/terms.rb +52 -0
  431. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/isodoc/ietf/xref.rb +20 -0
  432. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/metanorma-ietf.rb +8 -0
  433. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/metanorma/ietf.rb +8 -0
  434. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/metanorma/ietf/processor.rb +103 -0
  435. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/lib/metanorma/ietf/version.rb +5 -0
  436. data/gems/ruby/2.6.0/gems/metanorma-ietf-2.2.0/metanorma-ietf.gemspec +53 -0
  437. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/CODE_OF_CONDUCT.md +74 -0
  438. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/Gemfile +11 -0
  439. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/LICENSE +25 -0
  440. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/Rakefile +8 -0
  441. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/bin/console +14 -0
  442. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/bin/rspec +18 -0
  443. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/bin/setup +8 -0
  444. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho.rb +4 -0
  445. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho/basicdoc.rng +1059 -0
  446. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho/biblio.rng +1237 -0
  447. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho/converter.rb +105 -0
  448. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho/iho.rng +144 -0
  449. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho/isodoc.rng +1510 -0
  450. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/asciidoctor/iho/reqt.rng +194 -0
  451. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/base_convert.rb +20 -0
  452. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/htmlstyle.css +1007 -0
  453. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/htmlstyle.scss +757 -0
  454. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/iho.css +798 -0
  455. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/iho.scss +759 -0
  456. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/logo.svg +555 -0
  457. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/wordstyle.css +1252 -0
  458. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html/wordstyle.scss +1155 -0
  459. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/html_convert.rb +34 -0
  460. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/iho.specification.xsl +3501 -0
  461. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/iho.standard.xsl +3501 -0
  462. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/init.rb +23 -0
  463. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/metadata.rb +26 -0
  464. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/pdf_convert.rb +23 -0
  465. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/presentation_xml_convert.rb +12 -0
  466. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/word_convert.rb +47 -0
  467. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/isodoc/iho/xref.rb +64 -0
  468. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/metanorma-iho.rb +13 -0
  469. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/metanorma/iho.rb +32 -0
  470. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/metanorma/iho/processor.rb +46 -0
  471. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/lib/metanorma/iho/version.rb +5 -0
  472. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/metanorma-iho.gemspec +44 -0
  473. data/gems/ruby/2.6.0/gems/metanorma-iho-0.2.0/metanorma.yml +56 -0
  474. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/CODE_OF_CONDUCT.md +46 -0
  475. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/Gemfile +14 -0
  476. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/LICENSE +25 -0
  477. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/Makefile +39 -0
  478. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/Rakefile +8 -0
  479. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/bin/rspec +18 -0
  480. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/base.rb +67 -0
  481. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/basicdoc.rng +1059 -0
  482. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/biblio.rng +1237 -0
  483. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/cleanup.rb +129 -0
  484. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/converter.rb +18 -0
  485. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/front.rb +138 -0
  486. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/front_id.rb +196 -0
  487. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/isodoc.rng +1510 -0
  488. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/isostandard-amd.rng +98 -0
  489. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/isostandard.rnc +176 -0
  490. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/isostandard.rng +533 -0
  491. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/macros.rb +21 -0
  492. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/reqt.rng +194 -0
  493. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/section.rb +46 -0
  494. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/term_lookup_cleanup.rb +86 -0
  495. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/validate.rb +194 -0
  496. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/validate_requirements.rb +105 -0
  497. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/validate_section.rb +185 -0
  498. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/validate_style.rb +150 -0
  499. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/asciidoctor/iso/validate_title.rb +99 -0
  500. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/base_convert.rb +156 -0
  501. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/htmlstyle.css +47 -0
  502. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/htmlstyle.scss +45 -0
  503. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/isodoc.css +862 -0
  504. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/isodoc.scss +851 -0
  505. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/style-human.css +968 -0
  506. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/style-human.scss +695 -0
  507. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/style-iso.css +996 -0
  508. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/style-iso.scss +712 -0
  509. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/wordstyle.css +1515 -0
  510. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html/wordstyle.scss +1393 -0
  511. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/html_convert.rb +55 -0
  512. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/i18n-en.yaml +11 -0
  513. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/i18n-fr.yaml +10 -0
  514. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/i18n-zh-Hans.yaml +8 -0
  515. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/i18n.rb +19 -0
  516. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/init.rb +33 -0
  517. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/iso.amendment.xsl +4638 -0
  518. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/iso.international-standard.xsl +4638 -0
  519. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/metadata.rb +217 -0
  520. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/pdf_convert.rb +26 -0
  521. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/presentation_xml_convert.rb +111 -0
  522. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/sections.rb +61 -0
  523. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/sts_convert.rb +31 -0
  524. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/word_convert.rb +127 -0
  525. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/isodoc/iso/xref.rb +113 -0
  526. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/metanorma-iso.rb +14 -0
  527. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/metanorma/iso.rb +7 -0
  528. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/metanorma/iso/processor.rb +62 -0
  529. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/lib/metanorma/iso/version.rb +5 -0
  530. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/metanorma-iso.gemspec +50 -0
  531. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/amd_spec.rb +726 -0
  532. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/base_spec.rb +593 -0
  533. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/blocks_spec.rb +482 -0
  534. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/cleanup_spec.rb +995 -0
  535. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/inline_spec.rb +164 -0
  536. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/lists_spec.rb +190 -0
  537. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/macros_spec.rb +310 -0
  538. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/refs_spec.rb +286 -0
  539. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/section_spec.rb +357 -0
  540. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/table_spec.rb +307 -0
  541. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/asciidoctor-iso/validate_spec.rb +1127 -0
  542. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/assets/html.css +2 -0
  543. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/assets/i18n.yaml +2 -0
  544. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/assets/std.css +2 -0
  545. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/assets/word.css +2 -0
  546. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/examples/english.yaml +69 -0
  547. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/examples/rice.sh +4 -0
  548. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/amd_spec.rb +808 -0
  549. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/blocks_spec.rb +534 -0
  550. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/i18n_spec.rb +954 -0
  551. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/inline_spec.rb +331 -0
  552. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/iso_spec.rb +384 -0
  553. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/metadata_spec.rb +248 -0
  554. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/postproc_spec.rb +708 -0
  555. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/ref_spec.rb +346 -0
  556. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/section_spec.rb +555 -0
  557. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/table_spec.rb +426 -0
  558. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/terms_spec.rb +202 -0
  559. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/isodoc/xref_spec.rb +1477 -0
  560. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/metanorma/processor_spec.rb +61 -0
  561. data/gems/ruby/2.6.0/gems/metanorma-iso-1.5.1/spec/spec_helper.rb +267 -0
  562. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/CODE_OF_CONDUCT.md +74 -0
  563. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/Gemfile +11 -0
  564. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/LICENSE +25 -0
  565. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/Rakefile +8 -0
  566. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/bin/console +14 -0
  567. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/bin/rspec +18 -0
  568. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/bin/setup +8 -0
  569. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu.rb +7 -0
  570. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/basicdoc.rng +1059 -0
  571. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/biblio.rng +1237 -0
  572. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/cleanup.rb +205 -0
  573. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/converter.rb +143 -0
  574. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/front.rb +216 -0
  575. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/isodoc.rng +1510 -0
  576. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/itu.rng +264 -0
  577. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/macros.rb +27 -0
  578. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/reqt.rng +194 -0
  579. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/validate.rb +145 -0
  580. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu.rb +12 -0
  581. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/base_convert.rb +196 -0
  582. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/International_Telecommunication_Union_Logo.svg +1 -0
  583. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/_coverpage.css +349 -0
  584. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/_coverpage.scss +183 -0
  585. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/htmlstyle.css +1159 -0
  586. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/htmlstyle.scss +601 -0
  587. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/itu.css +1138 -0
  588. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/itu.scss +1097 -0
  589. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/wordstyle.css +1808 -0
  590. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html/wordstyle.scss +1679 -0
  591. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/html_convert.rb +73 -0
  592. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/i18n-en.yaml +41 -0
  593. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/i18n.rb +14 -0
  594. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/init.rb +29 -0
  595. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/itu.recommendation-annex.xsl +3798 -0
  596. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/itu.recommendation.xsl +3798 -0
  597. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/itu.resolution.xsl +3798 -0
  598. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/metadata.rb +96 -0
  599. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/pdf_convert.rb +25 -0
  600. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/presentation_xml_convert.rb +55 -0
  601. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/ref.rb +130 -0
  602. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/terms.rb +64 -0
  603. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/word_convert.rb +238 -0
  604. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/xref.rb +175 -0
  605. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/metanorma-itu.rb +8 -0
  606. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/metanorma/itu.rb +9 -0
  607. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/metanorma/itu/processor.rb +53 -0
  608. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/metanorma/itu/version.rb +5 -0
  609. data/gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/metanorma-itu.gemspec +44 -0
  610. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/CODE_OF_CONDUCT.md +74 -0
  611. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/Gemfile +11 -0
  612. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/LICENSE +25 -0
  613. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/Rakefile +8 -0
  614. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/bin/console +14 -0
  615. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/bin/rspec +18 -0
  616. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/bin/setup +8 -0
  617. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg.rb +5 -0
  618. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/basicdoc.rng +1059 -0
  619. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/biblio.rng +1237 -0
  620. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/converter.rb +142 -0
  621. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/isodoc.rng +1510 -0
  622. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/m3d.rng +109 -0
  623. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/reqt.rng +194 -0
  624. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/validate.rb +22 -0
  625. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/base_convert.rb +22 -0
  626. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html/htmlstyle.css +1030 -0
  627. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html/htmlstyle.scss +733 -0
  628. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html/m3d.css +758 -0
  629. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html/m3d.scss +742 -0
  630. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html/wordstyle.css +1278 -0
  631. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html/wordstyle.scss +1174 -0
  632. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/html_convert.rb +65 -0
  633. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/i18n-en.yaml +1 -0
  634. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/i18n.rb +10 -0
  635. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/init.rb +27 -0
  636. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/m3d.report.xsl +3408 -0
  637. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/metadata.rb +53 -0
  638. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/pdf_convert.rb +22 -0
  639. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/presentation_xml_convert.rb +19 -0
  640. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/word_convert.rb +63 -0
  641. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/isodoc/m3aawg/xref.rb +6 -0
  642. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/metanorma-m3aawg.rb +12 -0
  643. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/metanorma/m3aawg.rb +7 -0
  644. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/metanorma/m3aawg/processor.rb +50 -0
  645. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/metanorma/m3aawg/version.rb +5 -0
  646. data/gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/metanorma-m3d.gemspec +47 -0
  647. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/CODE_OF_CONDUCT.md +74 -0
  648. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/Gemfile +11 -0
  649. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/LICENSE +25 -0
  650. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/Rakefile +8 -0
  651. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/bin/console +14 -0
  652. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/bin/rspec +18 -0
  653. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/bin/setup +8 -0
  654. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist.rb +5 -0
  655. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/basicdoc.rng +1059 -0
  656. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/biblio.rng +1237 -0
  657. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/boilerplate.rb +107 -0
  658. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/cleanup.rb +206 -0
  659. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/converter.rb +218 -0
  660. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/front.rb +259 -0
  661. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/front_id.rb +124 -0
  662. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/isodoc.rng +1510 -0
  663. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/nist.rng +186 -0
  664. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/reqt.rng +194 -0
  665. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/asciidoctor/nist/validate.rb +95 -0
  666. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/base_convert.rb +185 -0
  667. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/common.xsl +1246 -0
  668. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/_coverpage.css +243 -0
  669. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/_coverpage.scss +328 -0
  670. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/htmlstyle.css +955 -0
  671. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/htmlstyle.scss +463 -0
  672. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/nist.css +1055 -0
  673. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/nist.scss +1010 -0
  674. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/nist_cswp.css +996 -0
  675. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/nist_cswp.scss +955 -0
  676. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/wordstyle.css +1440 -0
  677. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/wordstyle.scss +1348 -0
  678. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/wordstyle_cswp.css +1119 -0
  679. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html/wordstyle_cswp.scss +1026 -0
  680. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/html_convert.rb +137 -0
  681. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/i18n-en.yaml +13 -0
  682. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/i18n.rb +10 -0
  683. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/init.rb +37 -0
  684. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/metadata.rb +236 -0
  685. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/metadata_id.rb +125 -0
  686. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/nist.cswp.xsl +3645 -0
  687. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/nist.sp.xsl +4726 -0
  688. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/pdf_convert.rb +22 -0
  689. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/presentation_xml_convert.rb +80 -0
  690. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/refs.rb +89 -0
  691. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/render.rb +255 -0
  692. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/render_contributors.rb +80 -0
  693. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/render_dates.rb +42 -0
  694. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/section.rb +58 -0
  695. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/word_convert.rb +173 -0
  696. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/word_convert_toc.rb +86 -0
  697. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/xref.rb +61 -0
  698. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/metanorma-nist.rb +14 -0
  699. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/metanorma/nist.rb +7 -0
  700. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/metanorma/nist/processor.rb +48 -0
  701. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/metanorma/nist/version.rb +5 -0
  702. data/gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/metanorma-nist.gemspec +47 -0
  703. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/CODE_OF_CONDUCT.md +74 -0
  704. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/Gemfile +11 -0
  705. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/LICENSE +25 -0
  706. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/README.adoc.old +187 -0
  707. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/Rakefile +8 -0
  708. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/bin/console +14 -0
  709. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/bin/rspec +17 -0
  710. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/bin/setup +8 -0
  711. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc.rb +7 -0
  712. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/basicdoc.rng +1059 -0
  713. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/biblio.rng +1237 -0
  714. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/converter.rb +134 -0
  715. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/front.rb +195 -0
  716. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/isodoc.rng +1510 -0
  717. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/ogc.rng +124 -0
  718. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/reqt.rng +194 -0
  719. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/asciidoctor/ogc/validate.rb +108 -0
  720. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc.rb +12 -0
  721. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/base_convert.rb +79 -0
  722. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/biblio.rb +120 -0
  723. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/_coverpage.css +195 -0
  724. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/_coverpage.scss +247 -0
  725. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/htmlstyle.css +1084 -0
  726. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/htmlstyle.scss +599 -0
  727. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/ogc.css +835 -0
  728. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/ogc.scss +792 -0
  729. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/wordstyle.css +1253 -0
  730. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html/wordstyle.scss +1155 -0
  731. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/html_convert.rb +89 -0
  732. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/i18n-en.yaml +11 -0
  733. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/i18n.rb +10 -0
  734. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/init.rb +32 -0
  735. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/metadata.rb +111 -0
  736. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +3802 -0
  737. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.best-practice.xsl +3802 -0
  738. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +3802 -0
  739. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.community-practice.xsl +3802 -0
  740. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.community-standard.xsl +3802 -0
  741. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.discussion-paper.xsl +3802 -0
  742. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.engineering-report.xsl +3802 -0
  743. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.other.xsl +3802 -0
  744. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.policy.xsl +3802 -0
  745. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.reference-model.xsl +3802 -0
  746. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.release-notes.xsl +3802 -0
  747. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.standard.xsl +3802 -0
  748. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.test-suite.xsl +3802 -0
  749. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.user-guide.xsl +3802 -0
  750. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/ogc.white-paper.xsl +3554 -0
  751. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/pdf_convert.rb +24 -0
  752. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/presentation_xml_convert.rb +137 -0
  753. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/reqt.rb +168 -0
  754. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/sections.rb +66 -0
  755. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/word_convert.rb +189 -0
  756. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/isodoc/ogc/xref.rb +156 -0
  757. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/metanorma-ogc.rb +8 -0
  758. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/metanorma/ogc.rb +12 -0
  759. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/metanorma/ogc/processor.rb +49 -0
  760. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/lib/metanorma/ogc/version.rb +5 -0
  761. data/gems/ruby/2.6.0/gems/metanorma-ogc-1.2.0/metanorma-ogc.gemspec +41 -0
  762. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/CODE_OF_CONDUCT.md +46 -0
  763. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/Gemfile +11 -0
  764. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/LICENSE +25 -0
  765. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/Makefile +39 -0
  766. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/Rakefile +8 -0
  767. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/bin/rspec +18 -0
  768. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/base.rb +242 -0
  769. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/basicdoc.rng +1059 -0
  770. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/biblio.rng +1237 -0
  771. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/blocks.rb +191 -0
  772. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/blocks_notes.rb +89 -0
  773. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup.rb +177 -0
  774. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_block.rb +183 -0
  775. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_boilerplate.rb +100 -0
  776. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_footnotes.rb +87 -0
  777. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_inline.rb +134 -0
  778. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_ref.rb +247 -0
  779. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_section.rb +221 -0
  780. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/cleanup_terms.rb +144 -0
  781. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/converter.rb +86 -0
  782. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/datamodel/attributes_table_preprocessor.rb +57 -0
  783. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/datamodel/diagram_preprocessor.rb +102 -0
  784. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/datamodel/plantuml_renderer.rb +408 -0
  785. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/front.rb +210 -0
  786. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/front_contributor.rb +99 -0
  787. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/inline.rb +233 -0
  788. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/isodoc.rng +1510 -0
  789. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/lists.rb +115 -0
  790. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/log.rb +50 -0
  791. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/macros.rb +179 -0
  792. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/macros_plantuml.rb +100 -0
  793. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/macros_yaml2text.rb +165 -0
  794. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/ref.rb +257 -0
  795. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/ref_sect.rb +124 -0
  796. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/reqt.rb +73 -0
  797. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/reqt.rng +194 -0
  798. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/section.rb +244 -0
  799. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/table.rb +70 -0
  800. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/utils.rb +194 -0
  801. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/validate.rb +97 -0
  802. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/validate_section.rb +51 -0
  803. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/views/datamodel/model_representation.adoc.erb +30 -0
  804. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/asciidoctor/standoc/views/datamodel/plantuml_representation.adoc.erb +20 -0
  805. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/metanorma-standoc.rb +10 -0
  806. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/metanorma/standoc.rb +11 -0
  807. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/metanorma/standoc/latexml_requirement.rb +62 -0
  808. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/metanorma/standoc/processor.rb +38 -0
  809. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/metanorma/standoc/requirement.rb +13 -0
  810. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/lib/metanorma/standoc/version.rb +5 -0
  811. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/metanorma-standoc.gemspec +56 -0
  812. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/base_spec.rb +519 -0
  813. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/blocks_spec.rb +1271 -0
  814. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/cleanup_spec.rb +3224 -0
  815. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/datamodel/attributes_table_preprocessor_spec.rb +111 -0
  816. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/datamodel/diagram_preprocessor_spec.rb +72 -0
  817. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/inline_spec.rb +308 -0
  818. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/isobib_cache_spec.rb +705 -0
  819. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/lists_spec.rb +205 -0
  820. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/macros_spec.rb +538 -0
  821. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/macros_yaml2text_spec.rb +565 -0
  822. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/refs_dl_spec.rb +850 -0
  823. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/refs_spec.rb +1648 -0
  824. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/section_spec.rb +983 -0
  825. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/table_spec.rb +307 -0
  826. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/asciidoctor-standoc/validate_spec.rb +328 -0
  827. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/assets/codes.yml +695 -0
  828. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/assets/html.scss +13 -0
  829. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/assets/i18n.yaml +17 -0
  830. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/assets/iso123.rxl +107 -0
  831. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/assets/std.css +2 -0
  832. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/assets/word.scss +13 -0
  833. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/AddressClassProfile.yml +90 -0
  834. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/AddressComponentProfile.yml +63 -0
  835. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/AddressComponentSpecification.yml +15 -0
  836. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/AddressProfile.yml +36 -0
  837. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/AttributeProfile.yml +32 -0
  838. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/InterchangeAddressClassProfile.yml +79 -0
  839. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/Localization copy.yml +23 -0
  840. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/Localization.yml +23 -0
  841. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/ProfileCompliantAddress.yml +36 -0
  842. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/ProfileCompliantAddressComponent.yml +15 -0
  843. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/Signature.yml +20 -0
  844. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/SignatureBlankDefinition.yml +20 -0
  845. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/TextDirectionCode copy.yml +16 -0
  846. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/TextDirectionCode.yml +16 -0
  847. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/Validity.yml +14 -0
  848. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/iso19160-1/Address.yml +22 -0
  849. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/models/iso19160-1/AddressComponent.yml +2 -0
  850. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/style.uml.inc +37 -0
  851. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/views/CommonModels.yml +9 -0
  852. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/datamodel/models/views/TopDown.yml +62 -0
  853. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/english.yaml +69 -0
  854. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/examples/rice.sh +4 -0
  855. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/metanorma/processor_spec.rb +92 -0
  856. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/spec_helper.rb +249 -0
  857. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +719 -0
  858. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/isobib_get_123.yml +182 -0
  859. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/isobib_get_123_1.yml +361 -0
  860. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/isobib_get_123_2001.yml +182 -0
  861. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/isobib_get_124.yml +182 -0
  862. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +109 -0
  863. data/gems/ruby/2.6.0/gems/metanorma-standoc-1.5.0/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +436 -0
  864. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/CODE_OF_CONDUCT.md +74 -0
  865. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/Gemfile +11 -0
  866. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/LICENSE +25 -0
  867. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/Rakefile +8 -0
  868. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/bin/console +14 -0
  869. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/bin/rspec +17 -0
  870. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/bin/setup +8 -0
  871. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un.rb +7 -0
  872. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/basicdoc.rng +1059 -0
  873. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/biblio.rng +1237 -0
  874. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/converter.rb +253 -0
  875. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/isodoc.rng +1510 -0
  876. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/reqt.rng +194 -0
  877. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/un.rng +356 -0
  878. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/asciidoctor/un/validate.rb +23 -0
  879. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un.rb +11 -0
  880. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/base_convert.rb +35 -0
  881. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html/htmlstyle.css +1096 -0
  882. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html/htmlstyle.scss +881 -0
  883. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html/unece.css +818 -0
  884. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html/unece.scss +801 -0
  885. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html/wordstyle.css +1237 -0
  886. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html/wordstyle.scss +1140 -0
  887. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/html_convert.rb +112 -0
  888. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/i18n-en.yaml +2 -0
  889. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/i18n.rb +11 -0
  890. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/init.rb +29 -0
  891. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/metadata.rb +102 -0
  892. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/pdf_convert.rb +28 -0
  893. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/presentation_xml_convert.rb +53 -0
  894. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/un.plenary-attachment.xsl +3618 -0
  895. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/un.plenary.xsl +3618 -0
  896. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/un.recommendation.xsl +3605 -0
  897. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/word_convert.rb +174 -0
  898. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/isodoc/un/xref.rb +185 -0
  899. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/metanorma-un.rb +8 -0
  900. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/metanorma/un.rb +12 -0
  901. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/metanorma/un/UN_emblem_blue.svg +193 -0
  902. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/metanorma/un/input.rb +18 -0
  903. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/metanorma/un/processor.rb +49 -0
  904. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/lib/metanorma/un/version.rb +5 -0
  905. data/gems/ruby/2.6.0/gems/metanorma-un-0.5.0/metanorma-unece.gemspec +46 -0
  906. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/CHANGELOG.md +6 -0
  907. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/Gemfile +8 -0
  908. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/LICENSE +25 -0
  909. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/Rakefile +6 -0
  910. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/bin/console +11 -0
  911. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/bin/rspec +29 -0
  912. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/bin/setup +8 -0
  913. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/exe/relaton +21 -0
  914. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/i18n.yaml +1 -0
  915. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton-cli.rb +10 -0
  916. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/bibcollection.rb +120 -0
  917. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/bibdata.rb +90 -0
  918. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli.rb +55 -0
  919. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/base_convertor.rb +141 -0
  920. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/command.rb +115 -0
  921. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/relaton_file.rb +276 -0
  922. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/version.rb +5 -0
  923. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/xml_convertor.rb +47 -0
  924. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/xml_to_html_renderer.rb +116 -0
  925. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/cli/yaml_convertor.rb +99 -0
  926. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/lib/relaton/element_finder.rb +25 -0
  927. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/relaton-cli.gemspec +40 -0
  928. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/templates/_document.liquid +92 -0
  929. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/templates/_index.liquid +53 -0
  930. data/gems/ruby/2.6.0/gems/relaton-cli-1.2.1/templates/index-style.css +1017 -0
  931. data/gems/ruby/2.6.0/specifications/fontist-1.2.0.gemspec +51 -0
  932. data/gems/ruby/2.6.0/specifications/isodoc-1.2.1.gemspec +87 -0
  933. data/gems/ruby/2.6.0/specifications/metanorma-cc-1.5.0.gemspec +67 -0
  934. data/gems/ruby/2.6.0/specifications/metanorma-csa-1.6.0.gemspec +85 -0
  935. data/gems/ruby/2.6.0/specifications/metanorma-gb-1.5.1.gemspec +79 -0
  936. data/gems/ruby/2.6.0/specifications/metanorma-generic-1.6.0.gemspec +73 -0
  937. data/gems/ruby/2.6.0/specifications/metanorma-iec-1.2.1.gemspec +72 -0
  938. data/gems/ruby/2.6.0/specifications/metanorma-ietf-2.2.0.gemspec +73 -0
  939. data/gems/ruby/2.6.0/specifications/metanorma-iho-0.2.0.gemspec +73 -0
  940. data/gems/ruby/2.6.0/specifications/metanorma-iso-1.5.1.gemspec +81 -0
  941. data/gems/ruby/2.6.0/specifications/metanorma-itu-1.2.0.gemspec +79 -0
  942. data/gems/ruby/2.6.0/specifications/metanorma-m3aawg-1.5.0.gemspec +73 -0
  943. data/gems/ruby/2.6.0/specifications/metanorma-nist-1.2.0.gemspec +82 -0
  944. data/gems/ruby/2.6.0/specifications/metanorma-ogc-1.2.0.gemspec +70 -0
  945. data/gems/ruby/2.6.0/specifications/metanorma-standoc-1.5.0.gemspec +99 -0
  946. data/gems/ruby/2.6.0/specifications/metanorma-un-0.5.0.gemspec +76 -0
  947. data/gems/ruby/2.6.0/specifications/relaton-cli-1.2.1.gemspec +73 -0
  948. data/lib/metanorma/cli/version.rb +1 -1
  949. data/metanorma-cli.gemspec +18 -18
  950. metadata +981 -34
@@ -0,0 +1,79 @@
1
+ module IsoDoc
2
+ module Gb
3
+ class Cleanup
4
+ def initialize(script, deprecated_lbl)
5
+ @script = script
6
+ @deprecated_lbl = deprecated_lbl
7
+ end
8
+
9
+ def cleanup(docxml)
10
+ terms_cleanup(docxml)
11
+ formula_cleanup(docxml)
12
+ title_cleanup(docxml)
13
+ docxml
14
+ end
15
+
16
+ def formula_cleanup(docxml)
17
+ docxml.xpath("//table[@class = 'dl']//p[not(@class)]").each do |p|
18
+ p["class"] = "dl"
19
+ end
20
+ docxml
21
+ end
22
+
23
+ def example_cleanup(docxml)
24
+ docxml.xpath("//table[@class = 'Note']//p[not(@class)]").each do |p|
25
+ p["class"] = "Note"
26
+ end
27
+ docxml
28
+ end
29
+
30
+ def spaerdruck(x, return_on_br)
31
+ x.traverse do |n|
32
+ n.text? and n.content = n.text.gsub(/(.)/, "\\1\u00a0\u00a0").
33
+ gsub(/\u00a0+$/, "").gsub(/</, "&lt;").gsub(/>/, "&gt;")
34
+ return_on_br and n.element? and n.name == "br" and return
35
+ end
36
+ end
37
+
38
+ def title_cleanup(docxml)
39
+ @script == "Hans" or return
40
+ docxml.xpath("//*[@class = 'zzContents' or @class = 'ForewordTitle' or "\
41
+ "@class = 'IntroTitle'] | "\
42
+ "//h1[@class = 'Sections3']").each do |x|
43
+ spaerdruck(x, false)
44
+ end
45
+ docxml.xpath("//h1[@class = 'Annex']").each do |x|
46
+ spaerdruck(x, true)
47
+ end
48
+ docxml
49
+ end
50
+
51
+ def term_merge(docxml, term_class)
52
+ docxml.xpath("//p[@class = '#{term_class}']").each do |t|
53
+ t1 = t.next_element || next
54
+ if t1.name == "p" && t1["class"] == term_class
55
+ t.add_child("&#x3000;")
56
+ t.add_child(t1.remove.children)
57
+ end
58
+ end
59
+ end
60
+
61
+ def deprecated_single_label(docxml)
62
+ docxml.xpath("//p[@class = 'DeprecatedTerms']").each do |d|
63
+ t1 = d.previous_element
64
+ next unless t1 && t1.name == "p" && t1["class"] == "DeprecatedTerms"
65
+ d.children.first.content =
66
+ d.children.first.content.sub(/^#{@deprecated_lbl}:\s*/, "")
67
+ end
68
+ end
69
+
70
+ def terms_cleanup(docxml)
71
+ term_merge(docxml, "Terms")
72
+ term_merge(docxml, "AltTerms")
73
+ deprecated_single_label(docxml)
74
+ term_merge(docxml, "DeprecatedTerms")
75
+ docxml
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,72 @@
1
+ require "isodoc"
2
+ require_relative "./cleanup.rb"
3
+ require_relative "./metadata.rb"
4
+ require "fileutils"
5
+
6
+ module IsoDoc
7
+ module Gb
8
+ # A {Converter} implementation that generates GB output, and a document
9
+ # schema encapsulation of the document for validation
10
+ class Common < IsoDoc::Common
11
+ attr_accessor :meta
12
+
13
+ def initialize(options)
14
+ @meta = options[:meta]
15
+ @standardlogoimg = options[:standardlogoimg]&.sub(%r{^(?=/|[A-Z]:/)}, "#{@localdir}/")
16
+ @standardclassimg = options[:standardclassimg]&.sub(%r{^(?=/|[A-Z]:/)}, "#{@localdir}/")
17
+ @standardissuerimg = options[:standardissuerimg]&.sub(%r{^(?=/|[A-Z]:/)}, "#{@localdir}/")
18
+ end
19
+
20
+ def fileloc(loc)
21
+ File.expand_path(File.join(File.dirname(__FILE__), loc))
22
+ end
23
+
24
+ def format_agency(agency, format, localdir)
25
+ return "<img class='logo' src='#{@standardissuerimg}' alt='#{agency.join(",")}'></img>" if @standardissuerimg
26
+ return agency unless agency.is_a?(Array)
27
+ if agency == ["中华人民共和国国家质量监督检验检疫总局", "中国国家标准化管理委员会"]
28
+ logo = "gb-issuer-default.gif"
29
+ #FileUtils.cp fileloc(File.join('html/gb-logos', logo)), logo
30
+ return "<img class='logo' src='#{fileloc(File.join('html/gb-logos', logo))}' alt='#{agency.join(",")}'></img>"
31
+ end
32
+ format_agency1(agency, format)
33
+ end
34
+
35
+ def format_agency1(agency, format)
36
+ ret = "<table>"
37
+ agency.each { |a| ret += "<tr><td>#{a}</td></tr>" }
38
+ ret += "</table>"
39
+ ret.gsub!(/<table>/, "<table width='100%'>") if format == :word
40
+ ret
41
+ end
42
+
43
+ def format_logo(prefix, scope, _format, localdir)
44
+ logo = @meta.standard_logo(prefix)
45
+ return format_logo1(logo, prefix, scope, localdir) if @standardlogoimg
46
+ return "" if %w(enterprise social-group).include? scope
47
+ if logo.nil?
48
+ "<span style='font-size:36pt;font-weight:bold'>#{prefix}</span>"
49
+ else
50
+ format_logo1(logo, prefix, scope, localdir)
51
+ end
52
+ end
53
+
54
+ def local_logo_suffix(scope)
55
+ return "" if scope != "local"
56
+ local = @meta.get[:gblocalcode]
57
+ "<span style='font-weight:bold'>#{local}</span>"
58
+ end
59
+
60
+ def format_logo1(logo, prefix, scope, localdir)
61
+ local = local_logo_suffix(scope)
62
+ return "<img class='logo' width='113' height='56' src='#{@standardlogoimg}' alt='#{prefix}'></img>"\
63
+ "#{local}" if @standardlogoimg
64
+ logo += ".gif"
65
+ #FileUtils.cp fileloc(File.join('html/gb-logos', logo)), logo
66
+ #@files_to_delete << logo
67
+ "<img class='logo' width='113' height='56' src='#{fileloc(File.join('html/gb-logos', logo))}' alt='#{prefix}'></img>"\
68
+ "#{local}"
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,3739 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:gb="https://www.metanorma.org/ns/gb" xmlns:mathml="http://www.w3.org/1998/Math/MathML" xmlns:xalan="http://xml.apache.org/xalan" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" xmlns:java="http://xml.apache.org/xalan/java" exclude-result-prefixes="java" version="1.0">
2
+
3
+ <xsl:output method="xml" encoding="UTF-8" indent="no"/>
4
+
5
+ <xsl:param name="svg_images"/>
6
+ <xsl:variable name="images" select="document($svg_images)"/>
7
+
8
+
9
+
10
+ <xsl:key name="kfn" match="gb:p/gb:fn" use="@reference"/>
11
+
12
+
13
+
14
+ <xsl:variable name="debug">false</xsl:variable>
15
+ <xsl:variable name="pageWidth" select="'210mm'"/>
16
+ <xsl:variable name="pageHeight" select="'297mm'"/>
17
+
18
+ <xsl:variable name="part" select="normalize-space(/gb:gb-standard/gb:bibdata/gb:ext/gb:structuredidentifier/gb:project-number/@part)"/>
19
+
20
+ <xsl:variable name="standard-name">
21
+ <xsl:call-template name="capitalize">
22
+ <xsl:with-param name="str" select="/gb:gb-standard/gb:bibdata/gb:ext/gb:gbtype/gb:gbscope"/>
23
+ </xsl:call-template>
24
+ <xsl:text> standard (</xsl:text>
25
+ <xsl:call-template name="capitalize">
26
+ <xsl:with-param name="str" select="/gb:gb-standard/gb:bibdata/gb:ext/gb:gbtype/gb:gbmandate"/>
27
+ </xsl:call-template>
28
+ <xsl:text>)</xsl:text>
29
+ </xsl:variable>
30
+
31
+ <xsl:variable name="language" select="/gb:gb-standard/gb:bibdata/gb:language"/>
32
+
33
+
34
+ <!-- Example:
35
+ <item level="1" id="Foreword" display="true">Foreword</item>
36
+ <item id="term-script" display="false">3.2</item>
37
+ -->
38
+ <xsl:variable name="contents">
39
+ <contents>
40
+ <xsl:apply-templates select="/gb:gb-standard/gb:preface/node()" mode="contents"/>
41
+
42
+ <xsl:apply-templates select="/gb:gb-standard/gb:sections/gb:clause[1]" mode="contents"/> <!-- [@id = '_scope'] -->
43
+
44
+ <!-- Normative references -->
45
+ <xsl:apply-templates select="/gb:gb-standard/gb:bibliography/gb:references[1]" mode="contents"/> <!-- [@id = '_normative_references'] -->
46
+
47
+ <xsl:apply-templates select="/gb:gb-standard/gb:sections/*[position() &gt; 1]" mode="contents"/> <!-- @id != '_scope' -->
48
+
49
+ <xsl:apply-templates select="/gb:gb-standard/gb:annex" mode="contents"/>
50
+
51
+ <!-- Bibliography -->
52
+ <xsl:apply-templates select="/gb:gb-standard/gb:bibliography/gb:references[position() &gt; 1]" mode="contents"/> <!-- @id = '_bibliography' -->
53
+
54
+ </contents>
55
+ </xsl:variable>
56
+
57
+ <xsl:variable name="lang">
58
+ <xsl:call-template name="getLang"/>
59
+ </xsl:variable>
60
+
61
+ <xsl:template match="/">
62
+ <xsl:call-template name="namespaceCheck"/>
63
+ <fo:root font-family="SimSun" font-size="10.5pt" xml:lang="{$lang}"> <!-- -->
64
+ <fo:layout-master-set>
65
+
66
+ <!-- cover page -->
67
+ <fo:simple-page-master master-name="cover" page-width="{$pageWidth}" page-height="{$pageHeight}">
68
+ <fo:region-body margin-top="10mm" margin-bottom="24mm" margin-left="25mm" margin-right="23mm"/>
69
+ <fo:region-before region-name="cover-header" extent="10mm"/>
70
+ <fo:region-after region-name="cover-footer" extent="24mm"/>
71
+ <fo:region-start region-name="cover-left-region" extent="25mm"/>
72
+ <fo:region-end region-name="cover-right-region" extent="23mm"/>
73
+ </fo:simple-page-master>
74
+
75
+ <!-- contents pages -->
76
+ <!-- odd pages -->
77
+ <fo:simple-page-master master-name="odd" page-width="{$pageWidth}" page-height="{$pageHeight}">
78
+ <fo:region-body margin-top="35mm" margin-bottom="20mm" margin-left="25mm" margin-right="20mm"/>
79
+ <fo:region-before region-name="header" extent="35mm"/>
80
+ <fo:region-after region-name="footer-odd" extent="20mm"/>
81
+ <fo:region-start region-name="left-region" extent="25mm"/>
82
+ <fo:region-end region-name="right-region" extent="20mm"/>
83
+ </fo:simple-page-master>
84
+ <!-- even pages -->
85
+ <fo:simple-page-master master-name="even" page-width="{$pageWidth}" page-height="{$pageHeight}">
86
+ <fo:region-body margin-top="35mm" margin-bottom="25mm" margin-left="20mm" margin-right="25mm"/>
87
+ <fo:region-before region-name="header" extent="35mm"/>
88
+ <fo:region-after region-name="footer-even" extent="20mm"/>
89
+ <fo:region-start region-name="left-region" extent="20mm"/>
90
+ <fo:region-end region-name="right-region" extent="25mm"/>
91
+ </fo:simple-page-master>
92
+ <fo:page-sequence-master master-name="preface">
93
+ <fo:repeatable-page-master-alternatives>
94
+ <fo:conditional-page-master-reference odd-or-even="even" master-reference="even"/>
95
+ <fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd"/>
96
+ </fo:repeatable-page-master-alternatives>
97
+ </fo:page-sequence-master>
98
+ <fo:page-sequence-master master-name="document">
99
+ <fo:repeatable-page-master-alternatives>
100
+ <fo:conditional-page-master-reference odd-or-even="even" master-reference="even"/>
101
+ <fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd"/>
102
+ </fo:repeatable-page-master-alternatives>
103
+ </fo:page-sequence-master>
104
+
105
+ <fo:simple-page-master master-name="last-odd" page-width="215.9mm" page-height="279.4mm">
106
+ <fo:region-body margin-top="20mm" margin-bottom="20mm" margin-left="30mm" margin-right="15mm"/>
107
+ <fo:region-before region-name="header" extent="20mm"/>
108
+ <fo:region-after region-name="footer-odd" extent="20mm"/>
109
+ <fo:region-start region-name="left-region" extent="30mm"/>
110
+ <fo:region-end region-name="right-region" extent="15mm"/>
111
+ </fo:simple-page-master>
112
+ <fo:simple-page-master master-name="last-even" page-width="215.9mm" page-height="279.4mm">
113
+ <fo:region-body margin-top="20mm" margin-bottom="20mm" margin-left="15mm" margin-right="30mm"/>
114
+ <fo:region-before region-name="header" extent="20mm"/>
115
+ <fo:region-after region-name="footer-odd" extent="20mm"/>
116
+ <fo:region-start region-name="left-region" extent="15mm"/>
117
+ <fo:region-end region-name="right-region" extent="30mm"/>
118
+ </fo:simple-page-master>
119
+ <fo:page-sequence-master master-name="last">
120
+ <fo:repeatable-page-master-alternatives>
121
+ <fo:conditional-page-master-reference odd-or-even="even" master-reference="last-even"/>
122
+ <fo:conditional-page-master-reference odd-or-even="odd" master-reference="last-odd"/>
123
+ </fo:repeatable-page-master-alternatives>
124
+ </fo:page-sequence-master>
125
+ </fo:layout-master-set>
126
+
127
+ <xsl:call-template name="addPDFUAmeta"/>
128
+
129
+ <fo:page-sequence master-reference="cover" force-page-count="no-force">
130
+ <fo:flow flow-name="xsl-region-body">
131
+ <fo:block-container>
132
+ <xsl:variable name="ccs" select="normalize-space(/gb:gb-standard/gb:bibdata/gb:ext/gb:ccs)"/>
133
+ <fo:block font-weight="bold" line-height="130%">
134
+ <xsl:if test="$ccs != ''">
135
+ <xsl:text>ICS</xsl:text>
136
+ </xsl:if>
137
+ <xsl:text> </xsl:text>
138
+ <xsl:value-of select="$linebreak"/>
139
+ <xsl:value-of select="substring($ccs, 1, 1)"/>
140
+ <xsl:text> </xsl:text>
141
+ <fo:inline font-family="SimHei" font-weight="normal"><xsl:value-of select="substring($ccs, 2)"/></fo:inline>
142
+ <xsl:text> </xsl:text>
143
+ </fo:block>
144
+ </fo:block-container>
145
+ <!-- GB Logo -->
146
+ <fo:block-container position="absolute" top="3mm" left="119mm"> <!-- top="8mm" -->
147
+ <fo:block>
148
+ <xsl:variable name="gbprefix" select="normalize-space(java:toLowerCase(java:java.lang.String.new(/gb:gb-standard/gb:bibdata/gb:ext/gb:gbtype/gb:gbprefix)))"/>
149
+ <xsl:choose>
150
+ <xsl:when test="$gbprefix = 'db' or $gbprefix = '81'">
151
+ <fo:instream-foreign-object fox:alt-text="Logo">
152
+ <svg xmlns="http://www.w3.org/2000/svg" id="图层_1" data-name="图层 1" viewBox="0 0 133.2 66.6"><title>gb-standard-db</title><path d="M56.5,0H0V66.6H56.5A8.5,8.5,0,0,0,65,58.1V8.5A8.5,8.5,0,0,0,56.5,0ZM42.4,56.3a2.9,2.9,0,0,1-2.9,2.9H22.8V7.5H39.5a2.8,2.8,0,0,1,2.9,2.8Z"/><path d="M133.2,24.7V8.5A8.5,8.5,0,0,0,124.7,0H68.2V66.6h56.5a8.5,8.5,0,0,0,8.5-8.5V41.3a8.6,8.6,0,0,0-6.9-8.3A8.6,8.6,0,0,0,133.2,24.7ZM110.6,56.3a2.9,2.9,0,0,1-2.9,2.9H91.1v-22h16.6a2.9,2.9,0,0,1,2.9,2.8Zm0-29.6a2.9,2.9,0,0,1-2.9,2.9H91.1V7.5h16.6a2.8,2.8,0,0,1,2.9,2.8Z"/></svg>
153
+ </fo:instream-foreign-object>
154
+ </xsl:when>
155
+ <xsl:when test="$gbprefix = 'gb'">
156
+ <fo:instream-foreign-object fox:alt-text="Logo">
157
+ <svg xmlns="http://www.w3.org/2000/svg" width="29.9mm" id="图层_1" data-name="图层 1" viewBox="0 0 232.1 117"><defs><style>.cls-1{fill:#fff;}.cls-1,.cls-2,.cls-3{stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.32px;}.cls-3{fill:none;}</style></defs><title>gb-standard-gb</title><path class="cls-1" d="M201.6,36.5c0,5.6-4.3,8.4-8.8,8.4H147.9L136,58.5h55.2c14,0,22.7-9.1,23.7-19.8.7-6.5-.9-14.1-6-19l-9.6,11A7.6,7.6,0,0,1,201.6,36.5Z"/><path class="cls-1" d="M133.6,102.7V14.6h61c6.4,0,11,2,14.3,5.1L218.1,9C212.5,4.1,204.4.7,192.8.7H120.1V116.3l13.6-13.6Z"/><path class="cls-1" d="M216.6,81.1c0-11.9-7.1-16-7.1-16a82,82,0,0,1-9.5,9.5,6.1,6.1,0,0,1,2.3,5c0,3.3-.7,8.9-12.3,8.9H147.9l-14.2,14.2h50.8C203.9,102.7,216.6,95.7,216.6,81.1Z"/><path class="cls-2" d="M223.1,56.7s8.3-11.6,7-23.5c-.8-7.1-3.8-17.2-12-24.2l-9.2,10.7c5.1,4.9,6.7,12.5,6,19-1,10.7-9.7,19.8-23.7,19.8H136l11.9-13.6V28.6h44.9a9.4,9.4,0,0,1,6.5,2.1l9.6-11c-3.3-3.1-7.9-5.1-14.3-5.1h-61v88.1h.1l14.2-14.2V72.8h44.9c3.5,0,5.8.7,7.2,1.8a82,82,0,0,0,9.5-9.5s7.1,4.1,7.1,16c0,14.6-12.7,21.6-32.1,21.6H133.7l-13.6,13.6h72.7c20.6,0,35-13.6,37.4-25.5S232.1,67,223.1,56.7Z"/><line class="cls-3" x1="133.6" y1="14.6" x2="120.1" y2="0.7"/><polygon class="cls-2" points="70.9 59.6 57.8 74.7 85.1 74.7 98.8 59.6 70.9 59.6"/><path class="cls-2" d="M52,15.9c-8.8,0-35,9.3-36,38-.6,16,4.3,28.2,11.3,36.3l10.8-9.8c-5.2-4.8-9.2-12.2-9.2-23.1,0-21.4,21-27.3,28.9-27.3H113L98.8,15.9Z"/><path class="cls-1" d="M49.8,101.6h49v-42L85.1,74.7V88.5H57.8a31,31,0,0,1-19.7-8.1L27.3,90.2C33.8,97.6,42.2,101.6,49.8,101.6Z"/><polygon class="cls-1" points="57.8 45.4 57.8 74.7 70.9 59.6 98.8 59.6 113 45.4 85.1 45.4 57.8 45.4"/><path class="cls-2" d="M98.8,101.6h-49c-7.6,0-16-4-22.5-11.4L17,99.5c9.3,10.1,22.7,16.8,40.8,16.8H113V45.4L98.8,59.6Z"/><path class="cls-1" d="M16,53.9c1-28.7,27.2-38,36-38H98.8L113,30V.7H57.8C34.2.7.7,22,.7,52.9.7,69.8,5.8,87.2,17,99.5l10.3-9.3C20.3,82.1,15.4,69.9,16,53.9Z"/><line class="cls-3" x1="57.8" y1="45.4" x2="70.9" y2="59.6"/><line class="cls-3" x1="85.1" y1="88.5" x2="98.8" y2="101.6"/><line class="cls-3" x1="98.8" y1="15.9" x2="113" y2="0.7"/></svg>
158
+ </fo:instream-foreign-object>
159
+ </xsl:when>
160
+ <xsl:when test="$gbprefix = 'gjb'">
161
+ <fo:instream-foreign-object fox:alt-text="Logo">
162
+ <svg xmlns="http://www.w3.org/2000/svg" id="图层_1" data-name="图层 1" viewBox="0 0 232.2 88.4"><defs><style>.cls-1{fill:#fff;}.cls-1,.cls-2,.cls-3{stroke:#000;stroke-linecap:round;stroke-linejoin:round;}.cls-3{fill:none;}</style></defs><title>gb-standard-gjb</title><path class="cls-1" d="M209.1,27.6c0,4.2-3.3,6.4-6.7,6.4H168.5l-9,10.2h41.7c10.6,0,17.2-6.9,18-14.9.5-4.9-.7-10.7-4.6-14.4l-7.2,8.3A5.9,5.9,0,0,1,209.1,27.6Z"/><path class="cls-1" d="M157.7,77.6V11h46.1a15.4,15.4,0,0,1,10.8,3.9l7-8.1C217.3,3.1,211.2.5,202.4.5H147.5V87.9l10.3-10.3Z"/><path class="cls-1" d="M220.4,61.3c0-9-5.3-12.1-5.3-12.1a70.7,70.7,0,0,1-7.2,7.2,4.5,4.5,0,0,1,1.7,3.7c0,2.5-.5,6.8-9.3,6.8H168.5L157.8,77.6h38.4C210.9,77.6,220.4,72.3,220.4,61.3Z"/><path class="cls-2" d="M225.4,42.9s6.2-8.8,5.2-17.8c-.6-5.4-2.8-13-9-18.3l-7,8.1c3.9,3.7,5.1,9.5,4.6,14.4-.8,8-7.4,14.9-18,14.9H159.5l9-10.2V21.6h33.9a7.5,7.5,0,0,1,5,1.6l7.2-8.3A15.4,15.4,0,0,0,203.8,11H157.7V77.6h.1l10.7-10.7V55h33.9a9.1,9.1,0,0,1,5.5,1.4,70.7,70.7,0,0,0,7.2-7.2s5.3,3.1,5.3,12.1c0,11-9.5,16.3-24.2,16.3H157.8L147.5,87.9h54.9c15.6,0,26.5-10.3,28.3-19.3S232.1,50.6,225.4,42.9Z"/><line class="cls-3" x1="157.7" y1="11" x2="147.5" y2="0.5"/><path class="cls-2" d="M121.4,87.9c10.3,0,20.3-12.1,20.3-24.5V.5h-21V57.6c0,3.9,0,9.3-7.3,9.3H87.7v21h33.7Z"/><path class="cls-1" d="M120.7,57.6c0,3.9,0,9.3-7.3,9.3H87.7v21L98.8,77.4h19.3c8.3,0,13.3-6,13.3-19V11L141.7.5h-21Z"/><line class="cls-3" x1="131.4" y1="11" x2="120.7" y2="0.5"/><line class="cls-3" x1="98.8" y1="77.4" x2="87.7" y2="66.9"/><polygon class="cls-2" points="51.4 45.1 41.5 56.5 62.2 56.5 72.5 45.1 51.4 45.1"/><path class="cls-2" d="M39.3,12c-6.6,0-26.5,7-27.2,28.7-.4,12.1,3.2,21.4,8.5,27.4l8.2-7.3c-3.9-3.7-7-9.3-7-17.5,0-16.2,15.9-20.6,21.9-20.6H83.3L72.6,12Z"/><path class="cls-1" d="M37.6,76.7h35V45.1L62.2,56.5V66.9H43.7a23.8,23.8,0,0,1-14.9-6.1l-8.2,7.3C25.6,73.8,31.9,76.7,37.6,76.7Z"/><polygon class="cls-1" points="41.5 34.3 41.5 56.5 51.4 45.1 72.5 45.1 83.3 34.3 62.2 34.3 41.5 34.3"/><path class="cls-2" d="M72.6,76.7h-35c-5.7,0-12-2.9-17-8.6l-7.7,7.1c7,7.7,17.1,12.7,30.8,12.7H83.3V34.3L72.6,45.1Z"/><path class="cls-1" d="M12.1,40.7C12.8,19,32.7,12,39.3,12H72.6L83.3,22.7V.5H43.7C25.9.5.5,16.6.5,40c0,12.8,3.9,25.9,12.4,35.2l7.7-7.1C15.3,62.1,11.7,52.8,12.1,40.7Z"/><line class="cls-3" x1="41.5" y1="34.3" x2="51.4" y2="45.1"/><line class="cls-3" x1="62.2" y1="66.9" x2="72.6" y2="76.7"/><line class="cls-3" x1="72.6" y1="12" x2="83.3" y2="0.5"/></svg>
163
+ </fo:instream-foreign-object>
164
+ </xsl:when>
165
+ <xsl:when test="$gbprefix = 'gm'">
166
+ <fo:instream-foreign-object fox:alt-text="Logo">
167
+ <svg xmlns="http://www.w3.org/2000/svg" id="图层_1" data-name="图层 1" viewBox="0 0 187.2 95.1"><title>gb-standard-gm</title><polygon points="160 0 141.8 32.9 123.6 0 96.3 0 96.3 11.3 96.3 95.1 123.6 95.1 123.6 60.7 125 63.3 141.8 93.6 158.5 63.3 160 60.7 160 95.1 187.2 95.1 187.2 11.3 187.2 0 160 0"/><path d="M81.3,0H9.9A10,10,0,0,0,0,9.9V85.2a9.9,9.9,0,0,0,9.9,9.9h43a9.9,9.9,0,0,0,6.8-2.7v2.7H91.2V43.2H48.8v9.5H59.7V78.9A5.7,5.7,0,0,1,54,84.5H37.2a5.7,5.7,0,0,1-5.7-5.6V16.3a5.8,5.8,0,0,1,5.7-5.7H54a5.8,5.8,0,0,1,5.7,5.7V31.2H91.2V9.9A10,10,0,0,0,81.3,0Z"/></svg>
168
+ </fo:instream-foreign-object>
169
+ </xsl:when>
170
+ <xsl:when test="$gbprefix = 'jjf'">
171
+ <fo:instream-foreign-object fox:alt-text="Logo">
172
+ <svg xmlns="http://www.w3.org/2000/svg" id="图层_1" data-name="图层 1" viewBox="0 0 226.8 89.6"><defs><style>.cls-1,.cls-2,.cls-3{stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.2px;}.cls-2{fill:#fff;}.cls-3{fill:none;}</style></defs><title>gb-standard-jjf</title><polygon class="cls-1" points="84.3 12.3 75.1 23.9 144.4 23.9 144.4 0.6 133.7 12.3 84.3 12.3"/><polygon class="cls-2" points="75.1 23.9 84.3 12.3 133.7 12.3 144.4 0.6 75.1 0.6 75.1 23.9"/><path class="cls-2" d="M92,73.6c2.6,2.2,6.2,3.4,11.3,3.4,13.4,0,19.1-7.3,19.1-22.2V13.5L110.7,23.7V62s-1,4.6-5.5,4.6a7.5,7.5,0,0,1-3.9-1h0Z" transform="translate(0)"/><path class="cls-1" d="M86.8,57c0,7.1,1.2,13,5.2,16.6l9.3-8h0c-1.9-1.1-2.8-3.3-2.8-6.2V44L86.8,51.7Z" transform="translate(0)"/><path class="cls-1" d="M110.7,12.3V23.7l11.7-10.2V54.8c0,14.9-5.7,22.2-19.1,22.2-5.1,0-8.7-1.2-11.3-3.4l-7.9,6.8c5,4.5,12,7.4,20.8,7.4,19,0,29.1-14.2,29.1-25.8V12.3Z" transform="translate(0)"/><path class="cls-2" d="M86.8,57V51.7L98.5,44H75.1V59.4a28.7,28.7,0,0,0,9,21L92,73.6C88,70,86.8,64.1,86.8,57Z" transform="translate(0)"/><polyline class="cls-3" points="88.4 53.6 86.8 51.7 75.1 44"/><line class="cls-3" x1="84.3" y1="12.3" x2="75.1" y2="0.6"/><polygon class="cls-1" points="9.8 12.3 0.6 23.9 69.9 23.9 69.9 0.6 59.1 12.3 9.8 12.3"/><polygon class="cls-2" points="0.6 23.9 9.8 12.3 59.1 12.3 69.9 0.6 0.6 0.6 0.6 23.9"/><path class="cls-2" d="M17.5,73.6C20,75.8,23.7,77,28.8,77c13.4,0,19-7.3,19-22.2V13.5L36.2,23.7V62s-1.1,4.6-5.5,4.6a8.2,8.2,0,0,1-4-1h0Z" transform="translate(0)"/><path class="cls-1" d="M12.3,57c0,7.1,1.2,13,5.2,16.6l9.2-8h0c-1.8-1.1-2.8-3.3-2.8-6.2V44L12.3,51.7Z" transform="translate(0)"/><path class="cls-1" d="M36.2,12.3V23.7L47.8,13.5V54.8c0,14.9-5.6,22.2-19,22.2-5.1,0-8.8-1.2-11.3-3.4L9.6,80.4c5,4.5,12,7.4,20.7,7.4,19,0,29.2-14.2,29.2-25.8V12.3Z" transform="translate(0)"/><path class="cls-2" d="M12.3,57V51.7L23.9,44H.6V59.4a28.4,28.4,0,0,0,9,21l7.9-6.8C13.5,70,12.3,64.1,12.3,57Z" transform="translate(0)"/><polyline class="cls-3" points="13.9 53.6 12.3 51.7 0.6 44"/><line class="cls-3" x1="9.8" y1="12.3" x2="0.6" y2="0.6"/><polygon class="cls-1" points="226.2 0.6 173.4 0.6 152.4 0.6 149.1 0.6 149.1 89 173.4 89 173.4 24.9 226.2 24.9 226.2 0.6"/><rect class="cls-1" x="161.3" y="36.6" width="64.9" height="24.33"/><polygon class="cls-2" points="162.1 48.8 216.1 48.8 226.2 36.6 173.4 36.6 162.1 48.8"/><polygon class="cls-2" points="152.4 0.6 149.1 0.6 149.1 89 161.3 79.1 161.3 12.3 216.8 12.3 226.2 0.6 173.4 0.6 152.4 0.6"/><line class="cls-3" x1="161.3" y1="12.3" x2="149.1" y2="0.6"/></svg>
173
+ </fo:instream-foreign-object>
174
+ </xsl:when>
175
+ <xsl:when test="$gbprefix = 'zb'">
176
+ <fo:instream-foreign-object fox:alt-text="Logo">
177
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="图层_1" x="0px" y="0px" viewBox="0 0 157.1 81.9" style="enable-background:new 0 0 157.1 81.9;" xml:space="preserve">
178
+ <g>
179
+ <rect x="80.8" width="32.2" height="81.9"/>
180
+ <polygon points="74.9,46.2 42.7,81.9 74.9,81.9 "/>
181
+ <polygon points="33.6,0 0,0 0,37.8 "/>
182
+ <path d="M157.1,61.1c0-8.6-6-17.5-15.4-21c7.7-1.1,14.6-10.4,14.6-21.2c0-10.8-9.5-19-27.7-19h-11.7v81.1 c5.3,0.4,11.4,0.8,17.7,0.8C153,81.9,157.1,69.8,157.1,61.1z"/>
183
+ <polygon points="75.6,0 40.6,0 0,81.9 35,81.9 "/>
184
+ </g>
185
+ </svg>
186
+ </fo:instream-foreign-object>
187
+ </xsl:when>
188
+ <xsl:when test="$gbprefix = 'ls' or $gbprefix = 'abc'">
189
+ <xsl:attribute name="text-align">right</xsl:attribute>
190
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
191
+ <fo:inline font-size="36pt"><xsl:value-of select="/gb:gb-standard/gb:bibdata/gb:ext/gb:gbtype/gb:gbprefix"/></fo:inline>
192
+ </xsl:when>
193
+ <!-- <xsl:when test="$gbprefix = 'gb'">
194
+ <fo:external-graphic src="{concat('data:image/gif;base64,', normalize-space($Image-GB-Logo))}" width="29.9mm" content-height="14.8mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image GB Logo"/>
195
+ </xsl:when> -->
196
+ <xsl:otherwise> </xsl:otherwise>
197
+ </xsl:choose>
198
+ </fo:block>
199
+ </fo:block-container>
200
+ <!-- National standard (Recommended) -->
201
+ <fo:block-container position="absolute" left="0mm" top="28mm" width="170mm" text-align="center">
202
+ <fo:block font-weight="bold" font-size="12pt"> <!-- font-stretch="wider" not supported by FOP-->
203
+ <xsl:call-template name="addLetterSpacing">
204
+ <xsl:with-param name="text" select="$standard-name"/>
205
+ <xsl:with-param name="letter-spacing" select="0.7"/>
206
+ </xsl:call-template>
207
+ </fo:block>
208
+ </fo:block-container>
209
+ <fo:block-container position="absolute" left="0mm" top="43mm" height="46.4mm" width="165mm" text-align="right">
210
+ <fo:block>
211
+ <!-- GB/T/303 80021.1 -->
212
+ <fo:block font-family="SimHei" font-size="14pt">
213
+ <xsl:value-of select="/gb:gb-standard/gb:bibdata/gb:docidentifier[@type = 'gb']"/>
214
+ </fo:block>
215
+ <!-- Partly Supercedes GB/T 88021-2016 -->
216
+ <fo:block margin-top="2.85pt">
217
+ <xsl:variable name="title-partly-supercedes">
218
+ <xsl:call-template name="getTitle">
219
+ <xsl:with-param name="name" select="'title-partly-supercedes'"/>
220
+ </xsl:call-template>
221
+ </xsl:variable>
222
+ <xsl:value-of select="$title-partly-supercedes"/>
223
+ <xsl:value-of select="/gb:gb-standard/gb:bibdata/gb:relation[@type='obsoletes']/gb:bibitem/gb:docidentifier"/>
224
+ </fo:block>
225
+ </fo:block>
226
+ </fo:block-container>
227
+ <fo:block-container position="absolute" left="0mm" top="66mm" height="2mm" width="170mm" border-top="1pt solid black">
228
+ <fo:block> </fo:block>
229
+ </fo:block-container>
230
+ <fo:block-container position="absolute" left="-2.5mm" top="106mm" height="124mm" width="165mm" text-align="center">
231
+ <!-- Cereals and pulses—Specifications and test methods—Part 1: Rice -->
232
+ <fo:block font-size="26pt" line-height="130%">
233
+ <xsl:attribute name="font-family">
234
+ <xsl:choose>
235
+ <xsl:when test="$lang = 'zh'">SimSun</xsl:when>
236
+ <xsl:otherwise>Cambria</xsl:otherwise>
237
+ </xsl:choose>
238
+ </xsl:attribute>
239
+ <xsl:call-template name="insertTitle">
240
+ <xsl:with-param name="lang" select="$language"/>
241
+ </xsl:call-template>
242
+ </fo:block>
243
+ <fo:block font-size="14pt" margin-top="28.35pt" margin-bottom="28.35pt">
244
+ <xsl:variable name="secondlang">
245
+ <xsl:choose>
246
+ <xsl:when test="$language = 'en'">zh</xsl:when>
247
+ <xsl:when test="$language = 'zh'">en</xsl:when>
248
+ </xsl:choose>
249
+ </xsl:variable>
250
+ <xsl:if test="$secondlang = 'en'">
251
+ <xsl:attribute name="font-family">SimHei</xsl:attribute>
252
+ </xsl:if>
253
+ <xsl:call-template name="insertTitle">
254
+ <xsl:with-param name="lang" select="$secondlang"/>
255
+ </xsl:call-template>
256
+ </fo:block>
257
+ <!-- (ISO 17301-1:2016, IDT) -->
258
+ <fo:block font-size="14pt" margin-top="30pt">
259
+ <xsl:text> </xsl:text>
260
+ <xsl:if test="/gb:gb-standard/gb:bibdata/gb:relation[@type='adoptedFrom']/gb:bibitem/gb:docidentifier">
261
+ <xsl:text>(</xsl:text>
262
+ <xsl:value-of select="/gb:gb-standard/gb:bibdata/gb:relation[@type='adoptedFrom']/gb:bibitem/gb:docidentifier"/>
263
+ <xsl:text>, </xsl:text>
264
+ <xsl:text> IDT</xsl:text>
265
+ <xsl:text>)</xsl:text>
266
+ </xsl:if>
267
+ <xsl:text> </xsl:text>
268
+ </fo:block>
269
+ <!-- (CD) -->
270
+ <fo:block font-size="12pt" margin-top="30pt">
271
+ <xsl:text>(</xsl:text>
272
+ <xsl:value-of select="/gb:gb-standard/gb:bibdata/gb:status/gb:stage/@abbreviation"/>
273
+ <xsl:text>)</xsl:text>
274
+ </fo:block>
275
+ <fo:block text-align="justify">
276
+ <!-- When submitting feedback, please attach any relevant patents that you are aware of, together with supporting documents. -->
277
+ <xsl:apply-templates select="/gb:gb-standard/gb:boilerplate/gb:legal-statement"/>
278
+ </fo:block>
279
+ <fo:block margin-top="9.05pt">
280
+ <xsl:text>(</xsl:text>
281
+ <xsl:variable name="title-completion-date">
282
+ <xsl:call-template name="getTitle">
283
+ <xsl:with-param name="name" select="'title-completion-date'"/>
284
+ </xsl:call-template>
285
+ </xsl:variable>
286
+ <xsl:value-of select="$title-completion-date"/>
287
+ <xsl:text>: </xsl:text>
288
+ <xsl:value-of select="/gb:gb-standard/gb:bibdata/gb:version/gb:revision-date"/>
289
+ <xsl:text>)</xsl:text>
290
+ </fo:block>
291
+ </fo:block-container>
292
+ <fo:block-container position="absolute" left="0mm" top="239mm" width="170mm" border-bottom="1pt solid black">
293
+ <fo:block font-family="SimHei" font-size="14pt" text-align-last="justify" margin-bottom="2.5mm">
294
+ <xsl:variable name="title-issuance-date">
295
+ <xsl:call-template name="getTitle">
296
+ <xsl:with-param name="name" select="'title-issuance-date'"/>
297
+ </xsl:call-template>
298
+ </xsl:variable>
299
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($title-issuance-date),'#',/gb:gb-standard/gb:bibdata/gb:date[@type='issued']/gb:on)"/>
300
+
301
+ <fo:inline keep-together.within-line="always">
302
+ <fo:leader leader-pattern="space"/>
303
+ </fo:inline>
304
+
305
+ <xsl:variable name="title-implementation-date">
306
+ <xsl:call-template name="getTitle">
307
+ <xsl:with-param name="name" select="'title-implementation-date'"/>
308
+ </xsl:call-template>
309
+ </xsl:variable>
310
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($title-implementation-date),'#',/gb:gb-standard/gb:bibdata/gb:date[@type='implemented']/gb:on)"/>
311
+
312
+ </fo:block>
313
+ </fo:block-container>
314
+ <fo:block break-after="page"/>
315
+ <fo:block> </fo:block>
316
+ </fo:flow>
317
+ </fo:page-sequence>
318
+
319
+
320
+
321
+ <fo:page-sequence master-reference="preface" format="I" initial-page-number="1" force-page-count="no-force">
322
+ <xsl:call-template name="insertHeaderFooter"/>
323
+ <fo:flow flow-name="xsl-region-body">
324
+ <fo:block-container>
325
+
326
+ <fo:block font-family="SimHei" font-size="16pt" margin-top="6pt" margin-bottom="32pt" text-align="center">
327
+ <xsl:variable name="title-toc">
328
+ <xsl:call-template name="getTitle">
329
+ <xsl:with-param name="name" select="'title-toc'"/>
330
+ </xsl:call-template>
331
+ </xsl:variable>
332
+ <xsl:value-of select="$title-toc"/>
333
+ </fo:block>
334
+
335
+ <xsl:if test="$debug = 'true'">
336
+ <xsl:text disable-output-escaping="yes">&lt;!--</xsl:text>
337
+ DEBUG
338
+ contents=<xsl:copy-of select="xalan:nodeset($contents)"/>
339
+ <xsl:text disable-output-escaping="yes">--&gt;</xsl:text>
340
+ </xsl:if>
341
+
342
+ <fo:block line-height="220%">
343
+ <xsl:variable name="margin-left">12</xsl:variable>
344
+ <xsl:for-each select="xalan:nodeset($contents)//item"><!-- [@display = 'true'][not(@level = 2 and starts-with(@section, '0'))] skip clause from preface -->
345
+ <fo:block text-align-last="justify">
346
+ <xsl:if test="@level =2">
347
+ <xsl:attribute name="margin-left">3.7mm</xsl:attribute>
348
+ </xsl:if>
349
+ <fo:basic-link internal-destination="{@id}" fox:alt-text="{text()}">
350
+ <xsl:if test="normalize-space(@section) != ''">
351
+ <fo:inline>
352
+ <xsl:value-of select="@section"/>
353
+ </fo:inline>
354
+ <xsl:value-of select="$tab_zh"/>
355
+ </xsl:if>
356
+ <xsl:apply-templates/>
357
+ <fo:inline keep-together.within-line="always">
358
+ <fo:leader font-weight="normal" leader-pattern="dots"/>
359
+ <fo:inline><fo:page-number-citation ref-id="{@id}"/></fo:inline>
360
+ </fo:inline>
361
+ </fo:basic-link>
362
+
363
+ </fo:block>
364
+
365
+ </xsl:for-each>
366
+ </fo:block>
367
+ </fo:block-container>
368
+
369
+ <!-- Foreword, Introduction -->
370
+ <fo:block line-height="150%">
371
+ <xsl:apply-templates select="/gb:gb-standard/gb:preface/node()"/>
372
+ </fo:block>
373
+
374
+ </fo:flow>
375
+ </fo:page-sequence>
376
+
377
+ <fo:page-sequence master-reference="document" format="1" initial-page-number="1" force-page-count="no-force">
378
+ <fo:static-content flow-name="xsl-footnote-separator">
379
+ <fo:block margin-left="7.4mm">
380
+ <fo:leader leader-pattern="rule" leader-length="30%"/>
381
+ </fo:block>
382
+ </fo:static-content>
383
+ <xsl:call-template name="insertHeaderFooter"/>
384
+ <fo:flow flow-name="xsl-region-body">
385
+ <fo:block line-height="150%">
386
+
387
+ <!-- Cereals and pulses—Specifications and test methods—Part 1: Rice -->
388
+ <fo:block font-family="SimHei" font-size="16pt" text-align="center" line-height="130%" margin-bottom="18pt">
389
+ <xsl:call-template name="insertTitle">
390
+ <xsl:with-param name="lang" select="$language"/>
391
+ </xsl:call-template>
392
+ </fo:block>
393
+
394
+ <xsl:apply-templates select="/gb:gb-standard/gb:sections/gb:clause[1]"/> <!-- Scope -->
395
+
396
+ <!-- Normative references -->
397
+ <xsl:apply-templates select="/gb:gb-standard/gb:bibliography/gb:references[1]"/>
398
+
399
+ <!-- Main sections -->
400
+ <xsl:apply-templates select="/gb:gb-standard/gb:sections/*[position() &gt; 1]"/>
401
+
402
+ <!-- Annex(s) -->
403
+ <xsl:apply-templates select="/gb:gb-standard/gb:annex"/>
404
+
405
+ <!-- Bibliography -->
406
+ <xsl:apply-templates select="/gb:gb-standard/gb:bibliography/gb:references[position() &gt; 1]"/>
407
+
408
+ </fo:block>
409
+ </fo:flow>
410
+ </fo:page-sequence>
411
+
412
+ <fo:page-sequence master-reference="last" force-page-count="no-force">
413
+ <fo:flow flow-name="xsl-region-body">
414
+ <fo:block-container font-size="12pt">
415
+ <fo:block margin-top="14pt" margin-bottom="14pt">
416
+ <xsl:value-of select="$standard-name"/>
417
+ </fo:block>
418
+ <fo:block margin-top="14pt" margin-bottom="14pt">
419
+ <xsl:value-of select="/gb:gb-standard/gb:bibdata/gb:title[@language = 'zh' and @type = 'title-main']"/>
420
+ </fo:block>
421
+ <fo:block margin-top="14pt" margin-bottom="14pt">
422
+ <xsl:value-of select="/gb:gb-standard/gb:bibdata/gb:docidentifier[@type = 'gb']"/>
423
+ </fo:block>
424
+ </fo:block-container>
425
+ </fo:flow>
426
+ </fo:page-sequence>
427
+
428
+ </fo:root>
429
+ </xsl:template>
430
+
431
+ <xsl:template name="insertTitle">
432
+ <xsl:param name="lang" select="'en'"/>
433
+ <xsl:variable name="delimeter">
434
+ <xsl:choose>
435
+ <xsl:when test="$lang = 'zh'"> </xsl:when>
436
+ <xsl:otherwise>—</xsl:otherwise>
437
+ </xsl:choose>
438
+ </xsl:variable>
439
+
440
+ <xsl:value-of select="/gb:gb-standard/gb:bibdata/gb:title[@language = $lang and @type='title-intro']"/>
441
+ <xsl:variable name="title-main" select="/gb:gb-standard/gb:bibdata/gb:title[@language = $lang and @type = 'title-main']"/>
442
+ <xsl:if test="normalize-space($title-main) != ''">
443
+ <xsl:value-of select="$delimeter"/>
444
+ <xsl:value-of select="$title-main"/>
445
+ </xsl:if>
446
+ <xsl:variable name="title-part" select="/gb:gb-standard/gb:bibdata/gb:title[@language = $lang and @type = 'title-part']"/>
447
+ <xsl:if test="normalize-space($title-part) != ''">
448
+ <xsl:value-of select="$delimeter"/>
449
+ <xsl:if test="$part != ''">
450
+ <xsl:choose>
451
+ <xsl:when test="$lang = 'zh'">
452
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($titles/title-part[@lang='zh']),'#',$part)"/>
453
+ </xsl:when>
454
+ <xsl:otherwise>
455
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($titles/title-part[@lang='en']),'#',$part)"/>
456
+ </xsl:otherwise>
457
+ </xsl:choose>
458
+ </xsl:if>
459
+ <xsl:value-of select="$title-part"/>
460
+ </xsl:if>
461
+ </xsl:template>
462
+
463
+ <xsl:template match="node()">
464
+ <xsl:apply-templates/>
465
+ </xsl:template>
466
+
467
+ <!-- ============================= -->
468
+ <!-- CONTENTS -->
469
+ <!-- ============================= -->
470
+ <xsl:template match="node()" mode="contents">
471
+ <xsl:apply-templates mode="contents"/>
472
+ </xsl:template>
473
+
474
+ <!-- element with title -->
475
+ <xsl:template match="*[gb:title]" mode="contents">
476
+ <xsl:variable name="level">
477
+ <xsl:call-template name="getLevel">
478
+ <xsl:with-param name="depth" select="gb:title/@depth"/>
479
+ </xsl:call-template>
480
+ </xsl:variable>
481
+
482
+ <xsl:variable name="display">
483
+ <xsl:choose>
484
+ <xsl:when test="ancestor-or-self::gb:bibitem">false</xsl:when>
485
+ <xsl:when test="ancestor-or-self::gb:term">false</xsl:when>
486
+ <xsl:when test="$level &lt;= 2">true</xsl:when>
487
+ <xsl:otherwise>false</xsl:otherwise>
488
+ </xsl:choose>
489
+ </xsl:variable>
490
+
491
+ <xsl:if test="$display = 'true'">
492
+
493
+ <xsl:variable name="section">
494
+ <xsl:call-template name="getSection"/>
495
+ </xsl:variable>
496
+
497
+ <xsl:variable name="title">
498
+ <xsl:call-template name="getName"/>
499
+ </xsl:variable>
500
+
501
+ <xsl:variable name="type">
502
+ <xsl:value-of select="local-name()"/>
503
+ </xsl:variable>
504
+
505
+ <item id="{@id}" level="{$level}" section="{$section}" type="{$type}">
506
+ <xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
507
+ </item>
508
+ <xsl:apply-templates mode="contents"/>
509
+ </xsl:if>
510
+
511
+ </xsl:template>
512
+
513
+
514
+ <xsl:template name="getListItemFormat">
515
+ <xsl:choose>
516
+ <xsl:when test="local-name(..) = 'ul'">—</xsl:when> <!-- dash -->
517
+ <xsl:otherwise> <!-- for ordered lists -->
518
+ <xsl:choose>
519
+ <xsl:when test="../@type = 'arabic'">
520
+ <xsl:number format="a)"/>
521
+ </xsl:when>
522
+ <xsl:when test="../@type = 'alphabet'">
523
+ <xsl:number format="a)"/>
524
+ </xsl:when>
525
+ <xsl:otherwise>
526
+ <xsl:number format="1."/>
527
+ </xsl:otherwise>
528
+ </xsl:choose>
529
+ </xsl:otherwise>
530
+ </xsl:choose>
531
+ </xsl:template>
532
+
533
+ <!-- ============================= -->
534
+ <!-- ============================= -->
535
+
536
+ <xsl:template match="*[local-name() = 'tab']" priority="2">
537
+ <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
538
+ </xsl:template>
539
+
540
+ <xsl:template match="gb:license-statement//gb:title">
541
+ <fo:block text-align="center" font-weight="bold">
542
+ <xsl:apply-templates/>
543
+ </fo:block>
544
+ </xsl:template>
545
+
546
+ <xsl:template match="gb:license-statement//gb:p">
547
+ <fo:block margin-left="1.5mm" margin-right="1.5mm">
548
+ <xsl:if test="following-sibling::gb:p">
549
+ <xsl:attribute name="margin-top">6pt</xsl:attribute>
550
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
551
+ </xsl:if>
552
+ <xsl:apply-templates/>
553
+ </fo:block>
554
+ </xsl:template>
555
+
556
+ <!-- <fo:block margin-bottom="12pt">© ISO 2019, Published in Switzerland.</fo:block>
557
+ <fo:block font-size="10pt" margin-bottom="12pt">All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior written permission. Permission can be requested from either ISO at the address below or ISO’s member body in the country of the requester.</fo:block>
558
+ <fo:block font-size="10pt" text-indent="7.1mm">
559
+ <fo:block>ISO copyright office</fo:block>
560
+ <fo:block>Ch. de Blandonnet 8 • CP 401</fo:block>
561
+ <fo:block>CH-1214 Vernier, Geneva, Switzerland</fo:block>
562
+ <fo:block>Tel. + 41 22 749 01 11</fo:block>
563
+ <fo:block>Fax + 41 22 749 09 47</fo:block>
564
+ <fo:block>copyright@iso.org</fo:block>
565
+ <fo:block>www.iso.org</fo:block>
566
+ </fo:block> -->
567
+
568
+ <xsl:template match="gb:copyright-statement//gb:p">
569
+ <fo:block>
570
+ <xsl:if test="preceding-sibling::gb:p">
571
+ <!-- <xsl:attribute name="font-size">10pt</xsl:attribute> -->
572
+ </xsl:if>
573
+ <xsl:if test="following-sibling::gb:p">
574
+ <!-- <xsl:attribute name="margin-bottom">12pt</xsl:attribute> -->
575
+ <xsl:attribute name="margin-bottom">3pt</xsl:attribute>
576
+ </xsl:if>
577
+ <xsl:if test="contains(@id, 'address')"> <!-- not(following-sibling::gb:p) -->
578
+ <!-- <xsl:attribute name="margin-left">7.1mm</xsl:attribute> -->
579
+ <xsl:attribute name="margin-left">4mm</xsl:attribute>
580
+ </xsl:if>
581
+ <xsl:apply-templates/>
582
+ </fo:block>
583
+ </xsl:template>
584
+
585
+
586
+ <!-- ====== -->
587
+ <!-- title -->
588
+ <!-- ====== -->
589
+
590
+ <xsl:template match="gb:annex/gb:title">
591
+ <xsl:variable name="level">
592
+ <xsl:call-template name="getLevel"/>
593
+ </xsl:variable>
594
+ <xsl:variable name="font-family">
595
+ <xsl:choose>
596
+ <xsl:when test="$level &gt;= 3">SimSun</xsl:when>
597
+ <xsl:otherwise>SimHei</xsl:otherwise>
598
+ </xsl:choose>
599
+ </xsl:variable>
600
+ <fo:block font-family="{$font-family}" font-size="10.5pt" text-align="center" margin-bottom="24pt" keep-with-next="always">
601
+ <xsl:apply-templates/>
602
+ </fo:block>
603
+ </xsl:template>
604
+
605
+ <!-- Bibliography -->
606
+ <xsl:template match="gb:references[position() &gt; 1]/gb:title">
607
+ <fo:block font-family="SimHei" text-align="center" margin-top="6pt" margin-bottom="16pt" keep-with-next="always">
608
+ <xsl:apply-templates/>
609
+ </fo:block>
610
+ </xsl:template>
611
+
612
+ <xsl:template match="gb:title">
613
+
614
+ <xsl:variable name="level">
615
+ <xsl:call-template name="getLevel"/>
616
+ </xsl:variable>
617
+
618
+ <xsl:variable name="element-name">
619
+ <xsl:choose>
620
+ <xsl:when test="../@inline-header = 'true'">fo:inline</xsl:when>
621
+ <xsl:otherwise>fo:block</xsl:otherwise>
622
+ </xsl:choose>
623
+ </xsl:variable>
624
+
625
+ <xsl:variable name="font-family">
626
+ <xsl:choose>
627
+ <xsl:when test="ancestor::gb:annex and $level &gt;= 3">SimSun</xsl:when>
628
+ <xsl:when test="$element-name = 'fo:inline'">SimSun</xsl:when>
629
+ <xsl:otherwise>SimHei</xsl:otherwise>
630
+ </xsl:choose>
631
+ </xsl:variable>
632
+
633
+ <xsl:variable name="font-size">
634
+ <xsl:choose>
635
+ <xsl:when test="ancestor::gb:preface">16pt</xsl:when>
636
+ <xsl:otherwise>10.5pt</xsl:otherwise>
637
+ </xsl:choose>
638
+ </xsl:variable>
639
+
640
+
641
+
642
+ <xsl:element name="{$element-name}">
643
+ <xsl:attribute name="font-size"><xsl:value-of select="$font-size"/></xsl:attribute>
644
+ <xsl:attribute name="font-family"><xsl:value-of select="$font-family"/></xsl:attribute>
645
+ <xsl:attribute name="margin-top">
646
+ <xsl:choose>
647
+ <xsl:when test="ancestor::gb:preface">8pt</xsl:when>
648
+ <xsl:when test="$level = 2 and ancestor::gb:annex">10pt</xsl:when>
649
+ <xsl:when test="$level = 1">16pt</xsl:when>
650
+ <xsl:when test="$level = ''">6pt</xsl:when>
651
+ <xsl:when test="$level &gt;= 5">6pt</xsl:when>
652
+ <xsl:otherwise>12pt</xsl:otherwise>
653
+ </xsl:choose>
654
+ </xsl:attribute>
655
+ <xsl:attribute name="margin-bottom">
656
+ <xsl:choose>
657
+ <xsl:when test="ancestor::gb:preface">24pt</xsl:when>
658
+ <xsl:when test="$level = 1">16pt</xsl:when>
659
+ <xsl:when test="$level &gt;= 5">6pt</xsl:when>
660
+ <xsl:otherwise>8pt</xsl:otherwise>
661
+ </xsl:choose>
662
+ </xsl:attribute>
663
+
664
+
665
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
666
+ <xsl:if test="ancestor::gb:preface">
667
+ <xsl:attribute name="text-align">center</xsl:attribute>
668
+ <xsl:attribute name="font-family">SimHei</xsl:attribute>
669
+ </xsl:if>
670
+ <xsl:if test="$element-name = 'fo:inline'">
671
+ <xsl:attribute name="padding-left">7.4mm</xsl:attribute>
672
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
673
+ </xsl:if>
674
+
675
+ <xsl:apply-templates/>
676
+
677
+ <xsl:if test="$element-name = 'fo:inline'">
678
+ <xsl:value-of select="$tab_zh"/>
679
+ </xsl:if>
680
+
681
+ </xsl:element>
682
+
683
+ <xsl:if test="$element-name = 'fo:inline' and not(following-sibling::gb:p)">
684
+ <!-- <fo:block> -->
685
+ <xsl:value-of select="$linebreak"/>
686
+ <!-- </fo:block> -->
687
+ </xsl:if>
688
+
689
+ </xsl:template>
690
+ <!-- ====== -->
691
+ <!-- ====== -->
692
+
693
+
694
+ <xsl:template match="gb:p">
695
+ <xsl:variable name="previous-element" select="local-name(preceding-sibling::*[1])"/>
696
+ <xsl:variable name="element-name">
697
+ <xsl:choose>
698
+ <xsl:when test="../@inline-header = 'true' and $previous-element = 'title'">fo:inline</xsl:when> <!-- first paragraph after inline title -->
699
+ <xsl:otherwise>fo:block</xsl:otherwise>
700
+ </xsl:choose>
701
+ </xsl:variable>
702
+ <xsl:element name="{$element-name}">
703
+ <xsl:attribute name="text-align">
704
+ <xsl:choose>
705
+ <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
706
+ <xsl:when test="ancestor::gb:td/@align"><xsl:value-of select="ancestor::gb:td/@align"/></xsl:when>
707
+ <xsl:when test="ancestor::gb:th/@align"><xsl:value-of select="ancestor::gb:th/@align"/></xsl:when>
708
+ <xsl:otherwise>justify</xsl:otherwise>
709
+ </xsl:choose>
710
+ </xsl:attribute>
711
+ <xsl:attribute name="text-indent">
712
+ <xsl:choose>
713
+ <xsl:when test="parent::gb:li">0mm</xsl:when>
714
+ <xsl:when test="parent::gb:dd">0mm</xsl:when>
715
+ <xsl:otherwise>7.4mm</xsl:otherwise>
716
+ </xsl:choose>
717
+ </xsl:attribute>
718
+ <xsl:if test="parent::gb:dd and ancestor::*[local-name()='formula']">
719
+ <xsl:text>— </xsl:text>
720
+ </xsl:if>
721
+ <xsl:apply-templates/>
722
+ </xsl:element>
723
+ <xsl:if test="$element-name = 'fo:inline' and not(local-name(..) = 'admonition')">
724
+ <xsl:value-of select="$linebreak"/>
725
+ <!-- <xsl:choose>
726
+ <xsl:when test="ancestor::gb:annex">
727
+ <xsl:value-of select="$linebreak"/>
728
+ </xsl:when>
729
+ <xsl:otherwise>
730
+ <fo:block margin-bottom="12pt">
731
+ <xsl:value-of select="$linebreak"/>
732
+ </fo:block>
733
+ </xsl:otherwise>
734
+ </xsl:choose> -->
735
+ </xsl:if>
736
+ </xsl:template>
737
+
738
+ <xsl:template match="gb:li//gb:p//text()">
739
+ <xsl:choose>
740
+ <xsl:when test="contains(., '&#9;')">
741
+ <fo:inline white-space="pre"><xsl:value-of select="."/></fo:inline>
742
+ </xsl:when>
743
+ <xsl:otherwise>
744
+ <xsl:value-of select="."/>
745
+ </xsl:otherwise>
746
+ </xsl:choose>
747
+
748
+ </xsl:template>
749
+
750
+ <!--
751
+ <fn reference="1">
752
+ <p id="_8e5cf917-f75a-4a49-b0aa-1714cb6cf954">Formerly denoted as 15 % (m/m).</p>
753
+ </fn>
754
+ -->
755
+
756
+ <xsl:variable name="p_fn">
757
+ <xsl:for-each select="//gb:p/gb:fn[generate-id(.)=generate-id(key('kfn',@reference)[1])]">
758
+ <!-- copy unique fn -->
759
+ <fn gen_id="{generate-id(.)}">
760
+ <xsl:copy-of select="@*"/>
761
+ <xsl:copy-of select="node()"/>
762
+ </fn>
763
+ </xsl:for-each>
764
+ </xsl:variable>
765
+
766
+ <xsl:template match="gb:p/gb:fn" priority="2">
767
+ <xsl:variable name="gen_id" select="generate-id(.)"/>
768
+ <xsl:variable name="reference" select="@reference"/>
769
+ <xsl:variable name="number">
770
+ <xsl:value-of select="count(xalan:nodeset($p_fn)//fn[@reference = $reference]/preceding-sibling::fn) + 1"/>
771
+ </xsl:variable>
772
+ <xsl:choose>
773
+ <xsl:when test="xalan:nodeset($p_fn)//fn[@gen_id = $gen_id]">
774
+ <fo:footnote>
775
+ <fo:inline font-size="60%" keep-with-previous.within-line="always" vertical-align="super">
776
+ <fo:basic-link internal-destination="footnote_{@reference}_{$number}" fox:alt-text="footnote {@reference} {$number}">
777
+ <!-- <xsl:value-of select="@reference"/> -->
778
+ <xsl:value-of select="$number + count(//gb:bibitem[ancestor::gb:references[@id='_normative_references' or not(preceding-sibling::gb:references)]]/gb:note)"/>
779
+ </fo:basic-link>
780
+ </fo:inline>
781
+ <fo:footnote-body>
782
+ <fo:block font-size="9pt" margin-bottom="12pt">
783
+ <fo:inline font-size="50%" id="footnote_{@reference}_{$number}" keep-with-next.within-line="always" vertical-align="super">
784
+ <xsl:value-of select="$number + count(//gb:bibitem[ancestor::gb:references[@id='_normative_references' or not(preceding-sibling::gb:references)]]/gb:note)"/>
785
+ </fo:inline>
786
+ <xsl:for-each select="gb:p">
787
+ <xsl:apply-templates/>
788
+ </xsl:for-each>
789
+ </fo:block>
790
+ </fo:footnote-body>
791
+ </fo:footnote>
792
+ </xsl:when>
793
+ <xsl:otherwise>
794
+ <fo:inline font-size="50%" keep-with-previous.within-line="always" vertical-align="super">
795
+ <fo:basic-link internal-destination="footnote_{@reference}_{$number}" fox:alt-text="footnote {@reference} {$number}">
796
+ <xsl:value-of select="$number + count(//gb:bibitem/gb:note)"/>
797
+ </fo:basic-link>
798
+ </fo:inline>
799
+ </xsl:otherwise>
800
+ </xsl:choose>
801
+ </xsl:template>
802
+
803
+ <xsl:template match="gb:p/gb:fn/gb:p">
804
+ <xsl:apply-templates/>
805
+ </xsl:template>
806
+
807
+
808
+
809
+ <xsl:template match="gb:bibitem">
810
+ <fo:block id="{@id}" font-size="11pt" margin-bottom="12pt" text-indent="-11.7mm" margin-left="11.7mm"> <!-- 12 pt -->
811
+ <!-- gb:docidentifier -->
812
+ <xsl:if test="gb:docidentifier">
813
+ <xsl:choose>
814
+ <xsl:when test="gb:docidentifier/@type = 'metanorma'"/>
815
+ <xsl:otherwise><fo:inline><xsl:value-of select="gb:docidentifier"/></fo:inline></xsl:otherwise>
816
+ </xsl:choose>
817
+ </xsl:if>
818
+ <xsl:apply-templates select="gb:note"/>
819
+ <xsl:if test="gb:docidentifier">, </xsl:if>
820
+ <fo:inline font-style="italic">
821
+ <xsl:choose>
822
+ <xsl:when test="gb:title[@type = 'main' and @language = 'en']">
823
+ <xsl:value-of select="gb:title[@type = 'main' and @language = 'en']"/>
824
+ </xsl:when>
825
+ <xsl:otherwise>
826
+ <xsl:value-of select="gb:title"/>
827
+ </xsl:otherwise>
828
+ </xsl:choose>
829
+ </fo:inline>
830
+ </fo:block>
831
+ </xsl:template>
832
+
833
+
834
+ <xsl:template match="gb:bibitem/gb:note" priority="2">
835
+ <fo:footnote>
836
+ <xsl:variable name="number">
837
+ <xsl:number level="any" count="gb:bibitem/gb:note"/>
838
+ </xsl:variable>
839
+ <fo:inline font-size="50%" keep-with-previous.within-line="always" baseline-shift="30%">
840
+ <fo:basic-link internal-destination="{generate-id()}" fox:alt-text="footnote {$number}">
841
+ <xsl:value-of select="$number"/>
842
+ </fo:basic-link>
843
+ </fo:inline>
844
+ <fo:footnote-body>
845
+ <fo:block font-size="9pt" margin-bottom="4pt" start-indent="0pt" text-indent="7.4mm">
846
+ <fo:inline font-size="50%" id="{generate-id()}" keep-with-next.within-line="always" baseline-shift="30%"><!-- alignment-baseline="hanging" font-size="60%" -->
847
+ <xsl:value-of select="$number"/>
848
+ </fo:inline>
849
+ <xsl:apply-templates/>
850
+ </fo:block>
851
+ </fo:footnote-body>
852
+ </fo:footnote>
853
+ </xsl:template>
854
+
855
+
856
+
857
+ <xsl:template match="gb:ul | gb:ol">
858
+ <fo:list-block margin-bottom="12pt" margin-left="7.4mm" provisional-distance-between-starts="4mm"> <!-- margin-bottom="8pt" -->
859
+ <xsl:if test="local-name() = 'ol'">
860
+ <xsl:attribute name="provisional-distance-between-starts">7mm</xsl:attribute>
861
+ </xsl:if>
862
+ <xsl:apply-templates/>
863
+ </fo:list-block>
864
+ <xsl:for-each select="./gb:note">
865
+ <xsl:call-template name="note"/>
866
+ </xsl:for-each>
867
+ </xsl:template>
868
+
869
+ <xsl:template match="gb:ul//gb:note | gb:ol//gb:note" priority="2"/>
870
+
871
+ <xsl:template match="gb:li">
872
+ <fo:list-item id="{@id}">
873
+ <fo:list-item-label end-indent="label-end()">
874
+ <fo:block>
875
+ <xsl:call-template name="getListItemFormat"/>
876
+ </fo:block>
877
+ </fo:list-item-label>
878
+ <fo:list-item-body start-indent="body-start()">
879
+ <fo:block>
880
+ <xsl:apply-templates/>
881
+ <xsl:apply-templates select=".//gb:note" mode="process"/>
882
+ </fo:block>
883
+ </fo:list-item-body>
884
+ </fo:list-item>
885
+ </xsl:template>
886
+
887
+
888
+
889
+ <xsl:template match="gb:preferred" priority="2">
890
+
891
+ <fo:inline font-family="SimHei" font-size="11pt">
892
+ <xsl:if test="not(preceding-sibling::*[1][local-name() = 'preferred'])">
893
+ <xsl:attribute name="padding-left">7.4mm</xsl:attribute>
894
+ </xsl:if>
895
+ <xsl:apply-templates/><xsl:value-of select="$tab_zh"/>
896
+ </fo:inline>
897
+
898
+ <xsl:if test="not(following-sibling::*[1][local-name() = 'preferred'])">
899
+ <xsl:value-of select="$linebreak"/>
900
+ </xsl:if>
901
+
902
+ </xsl:template>
903
+
904
+ <xsl:template match="gb:admitted" priority="2">
905
+
906
+ <fo:inline font-size="11pt">
907
+ <xsl:if test="not(preceding-sibling::*[1][local-name() = 'admitted'])">
908
+ <xsl:attribute name="padding-left">7.4mm</xsl:attribute>
909
+ </xsl:if>
910
+ <xsl:apply-templates/><xsl:value-of select="$tab_zh"/>
911
+ </fo:inline>
912
+
913
+ <xsl:if test="not(following-sibling::*[1][local-name() = 'admitted'])">
914
+ <xsl:value-of select="$linebreak"/>
915
+ </xsl:if>
916
+
917
+ </xsl:template>
918
+
919
+
920
+ <xsl:template match="gb:deprecates" priority="2">
921
+ <fo:inline font-size="11pt">
922
+ <xsl:if test="not(preceding-sibling::*[1][local-name() = 'deprecates'])">
923
+ <xsl:attribute name="padding-left">7.4mm</xsl:attribute>
924
+ <xsl:variable name="title-deprecated">
925
+ <xsl:call-template name="getTitle">
926
+ <xsl:with-param name="name" select="'title-deprecated'"/>
927
+ </xsl:call-template>
928
+ </xsl:variable>
929
+ <fo:inline><xsl:value-of select="$title-deprecated"/>: </fo:inline>
930
+ </xsl:if>
931
+ <xsl:apply-templates/>
932
+ </fo:inline>
933
+ <xsl:if test="not(following-sibling::*[1][local-name() = 'deprecates'])">
934
+ <xsl:value-of select="$linebreak"/>
935
+ </xsl:if>
936
+ </xsl:template>
937
+
938
+
939
+
940
+ <xsl:template match="gb:termnote" priority="2">
941
+ <fo:block-container font-size="9pt" margin-left="7.4mm" margin-top="4pt" line-height="125%">
942
+ <fo:block-container margin-left="0mm">
943
+ <fo:table table-layout="fixed" width="100%">
944
+ <fo:table-column column-width="27mm"/>
945
+ <fo:table-column column-width="138mm"/>
946
+ <fo:table-body>
947
+ <fo:table-row>
948
+ <fo:table-cell>
949
+ <fo:block font-family="SimHei">
950
+ <xsl:apply-templates select="gb:name" mode="presentation"/>
951
+ </fo:block>
952
+ </fo:table-cell>
953
+ <fo:table-cell>
954
+ <fo:block>
955
+ <xsl:apply-templates/>
956
+ </fo:block>
957
+ </fo:table-cell>
958
+ </fo:table-row>
959
+ </fo:table-body>
960
+ </fo:table>
961
+ </fo:block-container>
962
+ </fo:block-container>
963
+ </xsl:template>
964
+
965
+
966
+
967
+ <!-- <xsl:template match="gb:references[@id = '_bibliography']"> -->
968
+ <xsl:template match="gb:references[position() &gt; 1]">
969
+ <fo:block break-after="page"/>
970
+ <fo:block id="{@id}">
971
+ <xsl:apply-templates/>
972
+ </fo:block>
973
+ <fo:block-container text-align="center">
974
+ <fo:block-container margin-left="63mm" width="42mm" border-bottom="2pt solid black">
975
+ <fo:block> </fo:block>
976
+ </fo:block-container>
977
+ </fo:block-container>
978
+ </xsl:template>
979
+
980
+
981
+ <!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
982
+ <!-- <xsl:template match="gb:references[@id = '_bibliography']/gb:bibitem"> -->
983
+ <xsl:template match="gb:references[position() &gt; 1]/gb:bibitem">
984
+ <fo:list-block font-size="11pt" margin-bottom="12pt" provisional-distance-between-starts="12mm">
985
+ <fo:list-item>
986
+ <fo:list-item-label end-indent="label-end()">
987
+ <fo:block>
988
+ <fo:inline id="{@id}">
989
+ <xsl:number format="[1]"/>
990
+ </fo:inline>
991
+ </fo:block>
992
+ </fo:list-item-label>
993
+ <fo:list-item-body start-indent="body-start()">
994
+ <fo:block text-align="justify">
995
+ <xsl:variable name="docidentifier">
996
+ <xsl:if test="gb:docidentifier">
997
+ <xsl:choose>
998
+ <xsl:when test="gb:docidentifier/@type = 'metanorma'"/>
999
+ <xsl:otherwise><xsl:value-of select="gb:docidentifier"/></xsl:otherwise>
1000
+ </xsl:choose>
1001
+ </xsl:if>
1002
+ </xsl:variable>
1003
+ <fo:inline><xsl:value-of select="$docidentifier"/></fo:inline>
1004
+ <xsl:apply-templates select="gb:note"/>
1005
+ <xsl:if test="normalize-space($docidentifier) != ''">, </xsl:if>
1006
+ <xsl:choose>
1007
+ <xsl:when test="gb:title[@type = 'main' and @language = 'en']">
1008
+ <xsl:apply-templates select="gb:title[@type = 'main' and @language = 'en']"/>
1009
+ </xsl:when>
1010
+ <xsl:otherwise>
1011
+ <xsl:apply-templates select="gb:title"/>
1012
+ </xsl:otherwise>
1013
+ </xsl:choose>
1014
+ <xsl:apply-templates select="gb:formattedref"/>
1015
+ </fo:block>
1016
+ </fo:list-item-body>
1017
+ </fo:list-item>
1018
+ </fo:list-block>
1019
+ </xsl:template>
1020
+
1021
+ <!-- <xsl:template match="gb:references[@id = '_bibliography']/gb:bibitem" mode="contents"/> -->
1022
+ <xsl:template match="gb:references[position() &gt; 1]/gb:bibitem" mode="contents"/>
1023
+
1024
+ <!-- <xsl:template match="gb:references[@id = '_bibliography']/gb:bibitem/gb:title"> -->
1025
+ <xsl:template match="gb:references[position() &gt; 1]/gb:bibitem/gb:title">
1026
+ <fo:inline font-style="italic">
1027
+ <xsl:apply-templates/>
1028
+ </fo:inline>
1029
+ </xsl:template>
1030
+
1031
+
1032
+ <xsl:template match="mathml:math" priority="2">
1033
+ <fo:inline font-family="Cambria Math">
1034
+ <fo:instream-foreign-object fox:alt-text="Math">
1035
+ <xsl:copy-of select="."/>
1036
+ </fo:instream-foreign-object>
1037
+ </fo:inline>
1038
+ </xsl:template>
1039
+
1040
+
1041
+
1042
+
1043
+ <xsl:template match="gb:admonition">
1044
+ <xsl:variable name="title-caution">
1045
+ <xsl:call-template name="getTitle">
1046
+ <xsl:with-param name="name" select="'title-caution'"/>
1047
+ </xsl:call-template>
1048
+ </xsl:variable>
1049
+ <xsl:variable name="title-warning">
1050
+ <xsl:call-template name="getTitle">
1051
+ <xsl:with-param name="name" select="'title-warning'"/>
1052
+ </xsl:call-template>
1053
+ </xsl:variable>
1054
+ <fo:block font-family="SimHei" text-align="center" margin-bottom="12pt" font-weight="bold">
1055
+ <xsl:choose>
1056
+ <xsl:when test="@type = 'caution'"><xsl:value-of select="$title-caution"/></xsl:when>
1057
+ <xsl:when test="@type = 'warning'"><xsl:value-of select="$title-warning"/></xsl:when>
1058
+ <xsl:otherwise><xsl:value-of select="java:toUpperCase(java:java.lang.String.new(@type))"/></xsl:otherwise>
1059
+ </xsl:choose>
1060
+ </fo:block>
1061
+ <fo:block font-weight="bold">
1062
+ <xsl:apply-templates/>
1063
+ </fo:block>
1064
+ </xsl:template>
1065
+
1066
+
1067
+ <xsl:template match="gb:formula/gb:stem">
1068
+ <fo:block font-size="11pt" margin-top="14pt" margin-bottom="14pt">
1069
+ <fo:table table-layout="fixed" width="170mm">
1070
+ <fo:table-column column-width="165mm"/>
1071
+ <fo:table-column column-width="5mm"/>
1072
+ <fo:table-body>
1073
+ <fo:table-row>
1074
+ <fo:table-cell display-align="center">
1075
+ <fo:block text-align="center">
1076
+ <xsl:apply-templates/>
1077
+ </fo:block>
1078
+ </fo:table-cell>
1079
+ <fo:table-cell display-align="center">
1080
+ <fo:block text-align="left">
1081
+ <xsl:apply-templates select="../gb:name" mode="presentation"/>
1082
+ </fo:block>
1083
+ </fo:table-cell>
1084
+ </fo:table-row>
1085
+ </fo:table-body>
1086
+ </fo:table>
1087
+ </fo:block>
1088
+ </xsl:template>
1089
+
1090
+
1091
+
1092
+ <xsl:template name="insertHeaderFooter">
1093
+ <fo:static-content flow-name="header">
1094
+ <fo:block-container height="30mm" display-align="after">
1095
+ <fo:block font-family="SimHei" font-size="12pt">
1096
+ <xsl:value-of select="/gb:gb-standard/gb:bibdata/gb:docidentifier[@type = 'gb']"/>
1097
+ <xsl:text>—</xsl:text>
1098
+ <xsl:value-of select="/gb:gb-standard/gb:bibdata/gb:copyright/gb:from"/>
1099
+ </fo:block>
1100
+ </fo:block-container>
1101
+ </fo:static-content>
1102
+ <fo:static-content flow-name="footer-odd">
1103
+ <fo:block-container height="100%" display-align="after">
1104
+ <fo:block-container height="14.5mm" display-align="before">
1105
+ <fo:block font-size="9pt" text-align="right" margin-right="3.5mm">
1106
+ <fo:page-number/>
1107
+ </fo:block>
1108
+ </fo:block-container>
1109
+ </fo:block-container>
1110
+ </fo:static-content>
1111
+ <fo:static-content flow-name="footer-even">
1112
+ <fo:block-container height="100%" display-align="after">
1113
+ <fo:block-container height="14.5mm" display-align="before">
1114
+ <fo:block font-size="9pt">
1115
+ <fo:page-number/>
1116
+ </fo:block>
1117
+ </fo:block-container>
1118
+ </fo:block-container>
1119
+ </fo:static-content>
1120
+ </xsl:template>
1121
+
1122
+
1123
+
1124
+ <xsl:template name="addLetterSpacing">
1125
+ <xsl:param name="text"/>
1126
+ <xsl:param name="letter-spacing" select="'0.15'"/>
1127
+ <xsl:if test="string-length($text) &gt; 0">
1128
+ <xsl:variable name="char" select="substring($text, 1, 1)"/>
1129
+ <fo:inline padding-right="{$letter-spacing}mm"><xsl:value-of select="$char"/></fo:inline>
1130
+ <xsl:call-template name="addLetterSpacing">
1131
+ <xsl:with-param name="text" select="substring($text, 2)"/>
1132
+ <xsl:with-param name="letter-spacing" select="$letter-spacing"/>
1133
+ </xsl:call-template>
1134
+ </xsl:if>
1135
+ </xsl:template>
1136
+
1137
+ <xsl:variable name="titles" select="xalan:nodeset($titles_)"/><xsl:variable name="titles_">
1138
+
1139
+ <title-annex lang="en">Annex </title-annex>
1140
+ <title-annex lang="fr">Annexe </title-annex>
1141
+
1142
+
1143
+ <title-annex lang="zh">附件 </title-annex>
1144
+
1145
+
1146
+ <title-edition lang="en">
1147
+
1148
+
1149
+ </title-edition>
1150
+
1151
+
1152
+ <title-toc lang="en">
1153
+
1154
+
1155
+
1156
+ <xsl:text>Table of contents</xsl:text>
1157
+
1158
+ </title-toc>
1159
+ <title-toc lang="fr">Sommaire</title-toc>
1160
+
1161
+
1162
+ <title-toc lang="zh">目次</title-toc>
1163
+
1164
+
1165
+ <title-page lang="en">Page</title-page>
1166
+ <title-page lang="fr">Page</title-page>
1167
+
1168
+ <title-key lang="en">Key</title-key>
1169
+ <title-key lang="fr">Légende</title-key>
1170
+
1171
+ <title-where lang="en">where</title-where>
1172
+ <title-where lang="fr">où</title-where>
1173
+
1174
+ <title-descriptors lang="en">Descriptors</title-descriptors>
1175
+
1176
+ <title-part lang="en">
1177
+
1178
+
1179
+ <xsl:text>Part #: </xsl:text>
1180
+
1181
+ </title-part>
1182
+ <title-part lang="fr">
1183
+
1184
+
1185
+ <xsl:text>Partie #: </xsl:text>
1186
+
1187
+ </title-part>
1188
+ <title-part lang="zh">第 # 部分:</title-part>
1189
+
1190
+ <title-modified lang="en">modified</title-modified>
1191
+ <title-modified lang="fr">modifiée</title-modified>
1192
+
1193
+
1194
+ <title-modified lang="zh">改写</title-modified>
1195
+
1196
+
1197
+ <title-source lang="en">SOURCE</title-source>
1198
+
1199
+ <title-keywords lang="en">Keywords</title-keywords>
1200
+
1201
+ <title-deprecated lang="en">DEPRECATED</title-deprecated>
1202
+ <title-deprecated lang="fr">DEPRECATED</title-deprecated>
1203
+
1204
+ <title-list-tables lang="en">List of Tables</title-list-tables>
1205
+
1206
+ <title-list-figures lang="en">List of Figures</title-list-figures>
1207
+
1208
+ <title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
1209
+
1210
+ <title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
1211
+
1212
+ <title-abstract lang="en">Abstract</title-abstract>
1213
+
1214
+ <title-summary lang="en">Summary</title-summary>
1215
+
1216
+ <title-in lang="en">in </title-in>
1217
+
1218
+ <title-partly-supercedes lang="en">Partly Supercedes </title-partly-supercedes>
1219
+ <title-partly-supercedes lang="zh">部分代替 </title-partly-supercedes>
1220
+
1221
+ <title-completion-date lang="en">Completion date for this manuscript</title-completion-date>
1222
+ <title-completion-date lang="zh">本稿完成日期</title-completion-date>
1223
+
1224
+ <title-issuance-date lang="en">Issuance Date: #</title-issuance-date>
1225
+ <title-issuance-date lang="zh"># 发布</title-issuance-date>
1226
+
1227
+ <title-implementation-date lang="en">Implementation Date: #</title-implementation-date>
1228
+ <title-implementation-date lang="zh"># 实施</title-implementation-date>
1229
+
1230
+ <title-obligation-normative lang="en">normative</title-obligation-normative>
1231
+ <title-obligation-normative lang="zh">规范性附录</title-obligation-normative>
1232
+
1233
+ <title-caution lang="en">CAUTION</title-caution>
1234
+ <title-caution lang="zh">注意</title-caution>
1235
+
1236
+ <title-warning lang="en">WARNING</title-warning>
1237
+ <title-warning lang="zh">警告</title-warning>
1238
+
1239
+ <title-amendment lang="en">AMENDMENT</title-amendment>
1240
+ </xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
1241
+ <xsl:param name="name"/>
1242
+ <xsl:variable name="lang">
1243
+ <xsl:call-template name="getLang"/>
1244
+ </xsl:variable>
1245
+ <xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $lang]"/>
1246
+ <xsl:choose>
1247
+ <xsl:when test="normalize-space($title_) != ''">
1248
+ <xsl:value-of select="$title_"/>
1249
+ </xsl:when>
1250
+ <xsl:otherwise>
1251
+ <xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
1252
+ </xsl:otherwise>
1253
+ </xsl:choose>
1254
+ </xsl:template><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:variable name="linebreak" select="'&#8232;'"/><xsl:attribute-set name="link-style">
1255
+
1256
+
1257
+ </xsl:attribute-set><xsl:attribute-set name="sourcecode-style">
1258
+ <xsl:attribute name="white-space">pre</xsl:attribute>
1259
+ <xsl:attribute name="wrap-option">wrap</xsl:attribute>
1260
+
1261
+ <xsl:attribute name="font-family">Courier</xsl:attribute>
1262
+ <xsl:attribute name="font-size">9pt</xsl:attribute>
1263
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1264
+
1265
+
1266
+
1267
+
1268
+
1269
+
1270
+
1271
+
1272
+ </xsl:attribute-set><xsl:attribute-set name="permission-style">
1273
+
1274
+ </xsl:attribute-set><xsl:attribute-set name="permission-name-style">
1275
+
1276
+ </xsl:attribute-set><xsl:attribute-set name="permission-label-style">
1277
+
1278
+ </xsl:attribute-set><xsl:attribute-set name="requirement-style">
1279
+
1280
+ </xsl:attribute-set><xsl:attribute-set name="requirement-name-style">
1281
+
1282
+ </xsl:attribute-set><xsl:attribute-set name="requirement-label-style">
1283
+
1284
+ </xsl:attribute-set><xsl:attribute-set name="requirement-subject-style">
1285
+ </xsl:attribute-set><xsl:attribute-set name="requirement-inherit-style">
1286
+ </xsl:attribute-set><xsl:attribute-set name="recommendation-style">
1287
+
1288
+
1289
+ </xsl:attribute-set><xsl:attribute-set name="recommendation-name-style">
1290
+
1291
+
1292
+ </xsl:attribute-set><xsl:attribute-set name="recommendation-label-style">
1293
+
1294
+ </xsl:attribute-set><xsl:attribute-set name="termexample-style">
1295
+
1296
+
1297
+
1298
+ <xsl:attribute name="font-size">9pt</xsl:attribute>
1299
+ <xsl:attribute name="margin-top">14pt</xsl:attribute>
1300
+ <xsl:attribute name="margin-bottom">14pt</xsl:attribute>
1301
+ <xsl:attribute name="text-align">justify</xsl:attribute>
1302
+
1303
+
1304
+
1305
+
1306
+
1307
+ </xsl:attribute-set><xsl:attribute-set name="example-style">
1308
+
1309
+
1310
+
1311
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1312
+ <xsl:attribute name="margin-top">8pt</xsl:attribute>
1313
+ <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
1314
+
1315
+
1316
+
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+ </xsl:attribute-set><xsl:attribute-set name="example-body-style">
1323
+
1324
+
1325
+ </xsl:attribute-set><xsl:attribute-set name="example-name-style">
1326
+
1327
+
1328
+
1329
+ <xsl:attribute name="padding-right">5mm</xsl:attribute>
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+ </xsl:attribute-set><xsl:attribute-set name="example-p-style">
1344
+
1345
+
1346
+
1347
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1348
+ <xsl:attribute name="margin-top">8pt</xsl:attribute>
1349
+ <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
1350
+
1351
+
1352
+
1353
+
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+ </xsl:attribute-set><xsl:attribute-set name="termexample-name-style">
1360
+
1361
+
1362
+ <xsl:attribute name="padding-right">1mm</xsl:attribute>
1363
+ <xsl:attribute name="font-family">SimHei</xsl:attribute>
1364
+
1365
+
1366
+
1367
+ </xsl:attribute-set><xsl:attribute-set name="table-name-style">
1368
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
1369
+
1370
+
1371
+ <xsl:attribute name="text-align">center</xsl:attribute>
1372
+ <xsl:attribute name="font-family">SimHei</xsl:attribute>
1373
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
1374
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+ </xsl:attribute-set><xsl:attribute-set name="appendix-style">
1385
+
1386
+ <xsl:attribute name="font-size">12pt</xsl:attribute>
1387
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
1388
+ <xsl:attribute name="margin-top">12pt</xsl:attribute>
1389
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1390
+
1391
+
1392
+
1393
+ </xsl:attribute-set><xsl:attribute-set name="appendix-example-style">
1394
+
1395
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1396
+ <xsl:attribute name="margin-top">8pt</xsl:attribute>
1397
+ <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
1398
+
1399
+
1400
+
1401
+ </xsl:attribute-set><xsl:attribute-set name="xref-style">
1402
+
1403
+
1404
+ </xsl:attribute-set><xsl:attribute-set name="eref-style">
1405
+
1406
+
1407
+
1408
+ </xsl:attribute-set><xsl:attribute-set name="note-style">
1409
+
1410
+
1411
+
1412
+ <xsl:attribute name="font-size">9pt</xsl:attribute>
1413
+ <xsl:attribute name="margin-left">7.4mm</xsl:attribute>
1414
+ <xsl:attribute name="margin-top">4pt</xsl:attribute>
1415
+ <xsl:attribute name="margin-bottom">4pt</xsl:attribute>
1416
+ <xsl:attribute name="line-height">125%</xsl:attribute>
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+
1428
+
1429
+
1430
+ </xsl:attribute-set><xsl:attribute-set name="note-name-style">
1431
+
1432
+
1433
+
1434
+ <xsl:attribute name="font-family">SimHei</xsl:attribute>
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+ </xsl:attribute-set><xsl:attribute-set name="note-p-style">
1444
+
1445
+
1446
+
1447
+ <xsl:attribute name="margin-top">4pt</xsl:attribute>
1448
+ <xsl:attribute name="line-height">125%</xsl:attribute>
1449
+ <xsl:attribute name="text-align">justify</xsl:attribute>
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+ </xsl:attribute-set><xsl:attribute-set name="termnote-style">
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+ </xsl:attribute-set><xsl:attribute-set name="quote-style">
1468
+
1469
+
1470
+ <xsl:attribute name="margin-top">12pt</xsl:attribute>
1471
+ <xsl:attribute name="margin-left">12mm</xsl:attribute>
1472
+ <xsl:attribute name="margin-right">12mm</xsl:attribute>
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+ </xsl:attribute-set><xsl:attribute-set name="quote-source-style">
1479
+
1480
+
1481
+ <xsl:attribute name="text-align">right</xsl:attribute>
1482
+
1483
+
1484
+ </xsl:attribute-set><xsl:attribute-set name="termsource-style">
1485
+
1486
+
1487
+
1488
+ <xsl:attribute name="text-indent">7.4mm</xsl:attribute>
1489
+
1490
+
1491
+
1492
+ </xsl:attribute-set><xsl:attribute-set name="origin-style">
1493
+
1494
+
1495
+ </xsl:attribute-set><xsl:attribute-set name="term-style">
1496
+
1497
+ </xsl:attribute-set><xsl:attribute-set name="figure-name-style">
1498
+
1499
+
1500
+
1501
+
1502
+
1503
+ <xsl:attribute name="font-family">SimHei</xsl:attribute>
1504
+ <xsl:attribute name="text-align">center</xsl:attribute>
1505
+ <xsl:attribute name="margin-top">12pt</xsl:attribute>
1506
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1507
+ <xsl:attribute name="keep-with-previous">always</xsl:attribute>
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+
1514
+
1515
+
1516
+
1517
+
1518
+
1519
+
1520
+ </xsl:attribute-set><xsl:attribute-set name="formula-style">
1521
+
1522
+ </xsl:attribute-set><xsl:attribute-set name="image-style">
1523
+ <xsl:attribute name="text-align">center</xsl:attribute>
1524
+
1525
+
1526
+
1527
+
1528
+
1529
+ </xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
1530
+
1531
+ </xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
1532
+
1533
+
1534
+ <xsl:attribute name="width">100%</xsl:attribute>
1535
+ <xsl:attribute name="content-height">100%</xsl:attribute>
1536
+ <xsl:attribute name="content-width">scale-to-fit</xsl:attribute>
1537
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
1538
+
1539
+
1540
+
1541
+
1542
+ </xsl:attribute-set><xsl:attribute-set name="tt-style">
1543
+
1544
+
1545
+ <xsl:attribute name="font-family">Courier</xsl:attribute>
1546
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1547
+
1548
+ </xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
1549
+ <xsl:attribute name="font-size">11pt</xsl:attribute>
1550
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
1551
+ <xsl:attribute name="text-align">center</xsl:attribute>
1552
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1553
+ </xsl:attribute-set><xsl:attribute-set name="domain-style">
1554
+
1555
+ <xsl:attribute name="padding-left">7.4mm</xsl:attribute>
1556
+
1557
+ </xsl:attribute-set><xsl:attribute-set name="admitted-style">
1558
+
1559
+
1560
+ </xsl:attribute-set><xsl:attribute-set name="deprecates-style">
1561
+
1562
+ </xsl:attribute-set><xsl:attribute-set name="definition-style">
1563
+
1564
+
1565
+ </xsl:attribute-set><xsl:template match="text()">
1566
+ <xsl:value-of select="."/>
1567
+ </xsl:template><xsl:template match="*[local-name()='br']">
1568
+ <xsl:value-of select="$linebreak"/>
1569
+ </xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
1570
+ <!-- <xsl:call-template name="add-zero-spaces"/> -->
1571
+ <xsl:call-template name="add-zero-spaces-java"/>
1572
+ </xsl:template><xsl:template match="*[local-name()='table']">
1573
+
1574
+ <xsl:variable name="simple-table">
1575
+ <xsl:call-template name="getSimpleTable"/>
1576
+ </xsl:variable>
1577
+
1578
+
1579
+
1580
+
1581
+
1582
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
1583
+
1584
+
1585
+
1586
+ <xsl:call-template name="fn_name_display"/>
1587
+
1588
+
1589
+
1590
+ <xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
1591
+
1592
+ <!-- <xsl:variable name="cols-count">
1593
+ <xsl:choose>
1594
+ <xsl:when test="*[local-name()='thead']">
1595
+ <xsl:call-template name="calculate-columns-numbers">
1596
+ <xsl:with-param name="table-row" select="*[local-name()='thead']/*[local-name()='tr'][1]"/>
1597
+ </xsl:call-template>
1598
+ </xsl:when>
1599
+ <xsl:otherwise>
1600
+ <xsl:call-template name="calculate-columns-numbers">
1601
+ <xsl:with-param name="table-row" select="*[local-name()='tbody']/*[local-name()='tr'][1]"/>
1602
+ </xsl:call-template>
1603
+ </xsl:otherwise>
1604
+ </xsl:choose>
1605
+ </xsl:variable> -->
1606
+ <!-- cols-count=<xsl:copy-of select="$cols-count"/> -->
1607
+ <!-- cols-count2=<xsl:copy-of select="$cols-count2"/> -->
1608
+
1609
+
1610
+
1611
+ <xsl:variable name="colwidths">
1612
+ <xsl:call-template name="calculate-column-widths">
1613
+ <xsl:with-param name="cols-count" select="$cols-count"/>
1614
+ <xsl:with-param name="table" select="$simple-table"/>
1615
+ </xsl:call-template>
1616
+ </xsl:variable>
1617
+
1618
+ <!-- <xsl:variable name="colwidths2">
1619
+ <xsl:call-template name="calculate-column-widths">
1620
+ <xsl:with-param name="cols-count" select="$cols-count"/>
1621
+ </xsl:call-template>
1622
+ </xsl:variable> -->
1623
+
1624
+ <!-- cols-count=<xsl:copy-of select="$cols-count"/>
1625
+ colwidthsNew=<xsl:copy-of select="$colwidths"/>
1626
+ colwidthsOld=<xsl:copy-of select="$colwidths2"/>z -->
1627
+
1628
+ <xsl:variable name="margin-left">
1629
+ <xsl:choose>
1630
+ <xsl:when test="sum(xalan:nodeset($colwidths)//column) &gt; 75">15</xsl:when>
1631
+ <xsl:otherwise>0</xsl:otherwise>
1632
+ </xsl:choose>
1633
+ </xsl:variable>
1634
+
1635
+ <fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
1636
+
1637
+
1638
+
1639
+
1640
+
1641
+
1642
+
1643
+
1644
+ <fo:table id="{@id}" table-layout="fixed" width="100%" margin-left="{$margin-left}mm" margin-right="{$margin-left}mm" table-omit-footer-at-break="true">
1645
+
1646
+
1647
+
1648
+
1649
+
1650
+
1651
+
1652
+
1653
+
1654
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1655
+
1656
+
1657
+
1658
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
1659
+ <xsl:choose>
1660
+ <xsl:when test=". = 1 or . = 0">
1661
+ <fo:table-column column-width="proportional-column-width(2)"/>
1662
+ </xsl:when>
1663
+ <xsl:otherwise>
1664
+ <fo:table-column column-width="proportional-column-width({.})"/>
1665
+ </xsl:otherwise>
1666
+ </xsl:choose>
1667
+ </xsl:for-each>
1668
+
1669
+ <xsl:choose>
1670
+ <xsl:when test="not(*[local-name()='tbody']) and *[local-name()='thead']">
1671
+ <xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
1672
+ </xsl:when>
1673
+ <xsl:otherwise>
1674
+ <xsl:apply-templates/>
1675
+ </xsl:otherwise>
1676
+ </xsl:choose>
1677
+
1678
+ </fo:table>
1679
+
1680
+
1681
+ <xsl:apply-templates select="*[local-name()='note']" mode="process"/>
1682
+
1683
+
1684
+
1685
+
1686
+ </fo:block-container>
1687
+ </xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
1688
+ <xsl:if test="normalize-space() != ''">
1689
+ <fo:block xsl:use-attribute-sets="table-name-style">
1690
+ <xsl:apply-templates/>
1691
+ </fo:block>
1692
+ </xsl:if>
1693
+ </xsl:template><xsl:template name="calculate-columns-numbers">
1694
+ <xsl:param name="table-row"/>
1695
+ <xsl:variable name="columns-count" select="count($table-row/*)"/>
1696
+ <xsl:variable name="sum-colspans" select="sum($table-row/*/@colspan)"/>
1697
+ <xsl:variable name="columns-with-colspan" select="count($table-row/*[@colspan])"/>
1698
+ <xsl:value-of select="$columns-count + $sum-colspans - $columns-with-colspan"/>
1699
+ </xsl:template><xsl:template name="calculate-column-widths">
1700
+ <xsl:param name="table"/>
1701
+ <xsl:param name="cols-count"/>
1702
+ <xsl:param name="curr-col" select="1"/>
1703
+ <xsl:param name="width" select="0"/>
1704
+
1705
+ <xsl:if test="$curr-col &lt;= $cols-count">
1706
+ <xsl:variable name="widths">
1707
+ <xsl:choose>
1708
+ <xsl:when test="not($table)"><!-- this branch is not using in production, for debug only -->
1709
+ <xsl:for-each select="*[local-name()='thead']//*[local-name()='tr']">
1710
+ <xsl:variable name="words">
1711
+ <xsl:call-template name="tokenize">
1712
+ <xsl:with-param name="text" select="translate(*[local-name()='th'][$curr-col],'- —:', ' ')"/>
1713
+ </xsl:call-template>
1714
+ </xsl:variable>
1715
+ <xsl:variable name="max_length">
1716
+ <xsl:call-template name="max_length">
1717
+ <xsl:with-param name="words" select="xalan:nodeset($words)"/>
1718
+ </xsl:call-template>
1719
+ </xsl:variable>
1720
+ <width>
1721
+ <xsl:value-of select="$max_length"/>
1722
+ </width>
1723
+ </xsl:for-each>
1724
+ <xsl:for-each select="*[local-name()='tbody']//*[local-name()='tr']">
1725
+ <xsl:variable name="words">
1726
+ <xsl:call-template name="tokenize">
1727
+ <xsl:with-param name="text" select="translate(*[local-name()='td'][$curr-col],'- —:', ' ')"/>
1728
+ </xsl:call-template>
1729
+ </xsl:variable>
1730
+ <xsl:variable name="max_length">
1731
+ <xsl:call-template name="max_length">
1732
+ <xsl:with-param name="words" select="xalan:nodeset($words)"/>
1733
+ </xsl:call-template>
1734
+ </xsl:variable>
1735
+ <width>
1736
+ <xsl:value-of select="$max_length"/>
1737
+ </width>
1738
+
1739
+ </xsl:for-each>
1740
+ </xsl:when>
1741
+ <xsl:otherwise>
1742
+ <xsl:for-each select="xalan:nodeset($table)//tr">
1743
+ <xsl:variable name="td_text">
1744
+ <xsl:apply-templates select="td[$curr-col]" mode="td_text"/>
1745
+ </xsl:variable>
1746
+ <xsl:variable name="words">
1747
+ <xsl:variable name="string_with_added_zerospaces">
1748
+ <xsl:call-template name="add-zero-spaces-java">
1749
+ <xsl:with-param name="text" select="$td_text"/>
1750
+ </xsl:call-template>
1751
+ </xsl:variable>
1752
+ <xsl:call-template name="tokenize">
1753
+ <!-- <xsl:with-param name="text" select="translate(td[$curr-col],'- —:', ' ')"/> -->
1754
+ <!-- 2009 thinspace -->
1755
+ <!-- <xsl:with-param name="text" select="translate(normalize-space($td_text),'- —:', ' ')"/> -->
1756
+ <xsl:with-param name="text" select="normalize-space(translate($string_with_added_zerospaces, '​', ' '))"/>
1757
+ </xsl:call-template>
1758
+ </xsl:variable>
1759
+ <xsl:variable name="max_length">
1760
+ <xsl:call-template name="max_length">
1761
+ <xsl:with-param name="words" select="xalan:nodeset($words)"/>
1762
+ </xsl:call-template>
1763
+ </xsl:variable>
1764
+ <width>
1765
+ <xsl:variable name="divider">
1766
+ <xsl:choose>
1767
+ <xsl:when test="td[$curr-col]/@divide">
1768
+ <xsl:value-of select="td[$curr-col]/@divide"/>
1769
+ </xsl:when>
1770
+ <xsl:otherwise>1</xsl:otherwise>
1771
+ </xsl:choose>
1772
+ </xsl:variable>
1773
+ <xsl:value-of select="$max_length div $divider"/>
1774
+ </width>
1775
+
1776
+ </xsl:for-each>
1777
+
1778
+ </xsl:otherwise>
1779
+ </xsl:choose>
1780
+ </xsl:variable>
1781
+
1782
+
1783
+ <column>
1784
+ <xsl:for-each select="xalan:nodeset($widths)//width">
1785
+ <xsl:sort select="." data-type="number" order="descending"/>
1786
+ <xsl:if test="position()=1">
1787
+ <xsl:value-of select="."/>
1788
+ </xsl:if>
1789
+ </xsl:for-each>
1790
+ </column>
1791
+ <xsl:call-template name="calculate-column-widths">
1792
+ <xsl:with-param name="cols-count" select="$cols-count"/>
1793
+ <xsl:with-param name="curr-col" select="$curr-col +1"/>
1794
+ <xsl:with-param name="table" select="$table"/>
1795
+ </xsl:call-template>
1796
+ </xsl:if>
1797
+ </xsl:template><xsl:template match="text()" mode="td_text">
1798
+ <xsl:variable name="zero-space">​</xsl:variable>
1799
+ <xsl:value-of select="translate(., $zero-space, ' ')"/><xsl:text> </xsl:text>
1800
+ </xsl:template><xsl:template match="*[local-name()='termsource']" mode="td_text">
1801
+ <xsl:value-of select="*[local-name()='origin']/@citeas"/>
1802
+ </xsl:template><xsl:template match="*[local-name()='link']" mode="td_text">
1803
+ <xsl:value-of select="@target"/>
1804
+ </xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
1805
+ <xsl:param name="cols-count"/>
1806
+ <!-- font-weight="bold" -->
1807
+ <fo:table-header>
1808
+
1809
+ <xsl:apply-templates/>
1810
+ </fo:table-header>
1811
+ </xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
1812
+ <fo:table-body>
1813
+ <xsl:apply-templates/>
1814
+ </fo:table-body>
1815
+ </xsl:template><xsl:template match="*[local-name()='tfoot']"/><xsl:template match="*[local-name()='tfoot']" mode="process">
1816
+ <xsl:apply-templates/>
1817
+ </xsl:template><xsl:template name="insertTableFooter">
1818
+ <xsl:param name="cols-count"/>
1819
+ <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
1820
+ <xsl:if test="../*[local-name()='tfoot'] or $isNoteOrFnExist = 'true'">
1821
+
1822
+ <fo:table-footer>
1823
+
1824
+ <xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
1825
+
1826
+ <!-- if there are note(s) or fn(s) then create footer row -->
1827
+ <xsl:if test="$isNoteOrFnExist = 'true'">
1828
+
1829
+
1830
+
1831
+ <fo:table-row>
1832
+ <fo:table-cell border="solid black 1pt" padding-left="1mm" padding-right="1mm" padding-top="1mm" number-columns-spanned="{$cols-count}">
1833
+
1834
+ <xsl:attribute name="border-top">solid black 0pt</xsl:attribute>
1835
+
1836
+
1837
+
1838
+ <!-- fn will be processed inside 'note' processing -->
1839
+
1840
+
1841
+ <!-- except gb -->
1842
+
1843
+
1844
+ <!-- horizontal row separator -->
1845
+
1846
+
1847
+ <!-- fn processing -->
1848
+ <xsl:call-template name="fn_display"/>
1849
+
1850
+ </fo:table-cell>
1851
+ </fo:table-row>
1852
+
1853
+ </xsl:if>
1854
+ </fo:table-footer>
1855
+
1856
+ </xsl:if>
1857
+ </xsl:template><xsl:template match="*[local-name()='tbody']">
1858
+
1859
+ <xsl:variable name="cols-count">
1860
+ <xsl:choose>
1861
+ <xsl:when test="../*[local-name()='thead']">
1862
+ <xsl:call-template name="calculate-columns-numbers">
1863
+ <xsl:with-param name="table-row" select="../*[local-name()='thead']/*[local-name()='tr'][1]"/>
1864
+ </xsl:call-template>
1865
+ </xsl:when>
1866
+ <xsl:otherwise>
1867
+ <xsl:call-template name="calculate-columns-numbers">
1868
+ <xsl:with-param name="table-row" select="./*[local-name()='tr'][1]"/>
1869
+ </xsl:call-template>
1870
+ </xsl:otherwise>
1871
+ </xsl:choose>
1872
+ </xsl:variable>
1873
+
1874
+ <xsl:apply-templates select="../*[local-name()='thead']" mode="process">
1875
+ <xsl:with-param name="cols-count" select="$cols-count"/>
1876
+ </xsl:apply-templates>
1877
+
1878
+ <xsl:call-template name="insertTableFooter">
1879
+ <xsl:with-param name="cols-count" select="$cols-count"/>
1880
+ </xsl:call-template>
1881
+
1882
+ <fo:table-body>
1883
+ <xsl:apply-templates/>
1884
+ <!-- <xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/> -->
1885
+
1886
+ </fo:table-body>
1887
+
1888
+ </xsl:template><xsl:template match="*[local-name()='tr']">
1889
+ <xsl:variable name="parent-name" select="local-name(..)"/>
1890
+ <!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
1891
+ <fo:table-row min-height="4mm">
1892
+ <xsl:if test="$parent-name = 'thead'">
1893
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
1894
+
1895
+
1896
+
1897
+
1898
+
1899
+ </xsl:if>
1900
+ <xsl:if test="$parent-name = 'tfoot'">
1901
+
1902
+
1903
+ </xsl:if>
1904
+
1905
+ <xsl:attribute name="min-height">0mm</xsl:attribute>
1906
+ <xsl:attribute name="line-height">110%</xsl:attribute>
1907
+
1908
+
1909
+ <xsl:apply-templates/>
1910
+ </fo:table-row>
1911
+ </xsl:template><xsl:template match="*[local-name()='th']">
1912
+ <fo:table-cell text-align="{@align}" font-weight="bold" border="solid black 1pt" padding-left="1mm" display-align="center">
1913
+
1914
+
1915
+
1916
+
1917
+
1918
+
1919
+
1920
+
1921
+ <xsl:if test="@colspan">
1922
+ <xsl:attribute name="number-columns-spanned">
1923
+ <xsl:value-of select="@colspan"/>
1924
+ </xsl:attribute>
1925
+ </xsl:if>
1926
+ <xsl:if test="@rowspan">
1927
+ <xsl:attribute name="number-rows-spanned">
1928
+ <xsl:value-of select="@rowspan"/>
1929
+ </xsl:attribute>
1930
+ </xsl:if>
1931
+ <fo:block>
1932
+ <xsl:apply-templates/>
1933
+ </fo:block>
1934
+ </fo:table-cell>
1935
+ </xsl:template><xsl:template match="*[local-name()='td']">
1936
+ <fo:table-cell text-align="{@align}" display-align="center" border="solid black 1pt" padding-left="1mm">
1937
+
1938
+
1939
+
1940
+
1941
+ <xsl:if test="ancestor::*[local-name() = 'tfoot']">
1942
+ <xsl:attribute name="border-bottom">solid black 0</xsl:attribute>
1943
+ </xsl:if>
1944
+
1945
+
1946
+
1947
+
1948
+
1949
+
1950
+ <xsl:if test="@colspan">
1951
+ <xsl:attribute name="number-columns-spanned">
1952
+ <xsl:value-of select="@colspan"/>
1953
+ </xsl:attribute>
1954
+ </xsl:if>
1955
+ <xsl:if test="@rowspan">
1956
+ <xsl:attribute name="number-rows-spanned">
1957
+ <xsl:value-of select="@rowspan"/>
1958
+ </xsl:attribute>
1959
+ </xsl:if>
1960
+ <fo:block>
1961
+
1962
+ <xsl:apply-templates/>
1963
+ </fo:block>
1964
+ </fo:table-cell>
1965
+ </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2"/><xsl:template match="*[local-name()='table']/*[local-name()='note']" mode="process">
1966
+
1967
+
1968
+ <fo:block font-size="10pt" margin-bottom="12pt">
1969
+
1970
+
1971
+ <xsl:attribute name="font-size">9pt</xsl:attribute>
1972
+ <xsl:attribute name="text-align">center</xsl:attribute>
1973
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1974
+
1975
+
1976
+
1977
+ <fo:inline padding-right="2mm">
1978
+
1979
+ <xsl:attribute name="font-family">SimHei</xsl:attribute>
1980
+
1981
+
1982
+
1983
+
1984
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
1985
+
1986
+ </fo:inline>
1987
+ <xsl:apply-templates mode="process"/>
1988
+ </fo:block>
1989
+
1990
+ </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='name']" mode="process"/><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" mode="process">
1991
+ <xsl:apply-templates/>
1992
+ </xsl:template><xsl:template name="fn_display">
1993
+ <xsl:variable name="references">
1994
+ <xsl:for-each select="..//*[local-name()='fn'][local-name(..) != 'name']">
1995
+ <fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
1996
+
1997
+
1998
+ <xsl:apply-templates/>
1999
+ </fn>
2000
+ </xsl:for-each>
2001
+ </xsl:variable>
2002
+ <xsl:for-each select="xalan:nodeset($references)//fn">
2003
+ <xsl:variable name="reference" select="@reference"/>
2004
+ <xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
2005
+ <fo:block margin-bottom="12pt">
2006
+
2007
+
2008
+ <xsl:attribute name="text-indent">7.4mm</xsl:attribute>
2009
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
2010
+ <xsl:attribute name="line-height">130%</xsl:attribute>
2011
+
2012
+
2013
+
2014
+ <fo:inline font-size="80%" padding-right="5mm" id="{@id}">
2015
+
2016
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
2017
+
2018
+
2019
+
2020
+
2021
+ <xsl:attribute name="font-size">50%</xsl:attribute>
2022
+
2023
+
2024
+
2025
+ <xsl:value-of select="@reference"/>
2026
+
2027
+ </fo:inline>
2028
+ <fo:inline>
2029
+
2030
+ <xsl:apply-templates/>
2031
+ </fo:inline>
2032
+ </fo:block>
2033
+ </xsl:if>
2034
+ </xsl:for-each>
2035
+ </xsl:template><xsl:template name="fn_name_display">
2036
+ <!-- <xsl:variable name="references">
2037
+ <xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
2038
+ <fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
2039
+ <xsl:apply-templates />
2040
+ </fn>
2041
+ </xsl:for-each>
2042
+ </xsl:variable>
2043
+ $references=<xsl:copy-of select="$references"/> -->
2044
+ <xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
2045
+ <xsl:variable name="reference" select="@reference"/>
2046
+ <fo:block id="{@reference}_{ancestor::*[@id][1]/@id}"><xsl:value-of select="@reference"/></fo:block>
2047
+ <fo:block margin-bottom="12pt">
2048
+ <xsl:apply-templates/>
2049
+ </fo:block>
2050
+ </xsl:for-each>
2051
+ </xsl:template><xsl:template name="fn_display_figure">
2052
+ <xsl:variable name="key_iso">
2053
+ true <!-- and (not(@class) or @class !='pseudocode') -->
2054
+ </xsl:variable>
2055
+ <xsl:variable name="references">
2056
+ <xsl:for-each select=".//*[local-name()='fn'][not(parent::*[local-name()='name'])]">
2057
+ <fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
2058
+ <xsl:apply-templates/>
2059
+ </fn>
2060
+ </xsl:for-each>
2061
+ </xsl:variable>
2062
+
2063
+ <!-- current hierarchy is 'figure' element -->
2064
+ <xsl:variable name="following_dl_colwidths">
2065
+ <xsl:if test="*[local-name() = 'dl']"><!-- if there is a 'dl', then set the same columns width as for 'dl' -->
2066
+ <xsl:variable name="html-table">
2067
+ <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
2068
+ <xsl:element name="{$ns}:table">
2069
+ <xsl:for-each select="*[local-name() = 'dl'][1]">
2070
+ <tbody>
2071
+ <xsl:apply-templates mode="dl"/>
2072
+ </tbody>
2073
+ </xsl:for-each>
2074
+ </xsl:element>
2075
+ </xsl:variable>
2076
+
2077
+ <xsl:call-template name="calculate-column-widths">
2078
+ <xsl:with-param name="cols-count" select="2"/>
2079
+ <xsl:with-param name="table" select="$html-table"/>
2080
+ </xsl:call-template>
2081
+
2082
+ </xsl:if>
2083
+ </xsl:variable>
2084
+
2085
+
2086
+ <xsl:variable name="maxlength_dt">
2087
+ <xsl:for-each select="*[local-name() = 'dl'][1]">
2088
+ <xsl:call-template name="getMaxLength_dt"/>
2089
+ </xsl:for-each>
2090
+ </xsl:variable>
2091
+
2092
+ <xsl:if test="xalan:nodeset($references)//fn">
2093
+ <fo:block>
2094
+ <fo:table width="95%" table-layout="fixed">
2095
+ <xsl:if test="normalize-space($key_iso) = 'true'">
2096
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
2097
+
2098
+ </xsl:if>
2099
+ <xsl:choose>
2100
+ <!-- if there 'dl', then set same columns width -->
2101
+ <xsl:when test="xalan:nodeset($following_dl_colwidths)//column">
2102
+ <xsl:call-template name="setColumnWidth_dl">
2103
+ <xsl:with-param name="colwidths" select="$following_dl_colwidths"/>
2104
+ <xsl:with-param name="maxlength_dt" select="$maxlength_dt"/>
2105
+ </xsl:call-template>
2106
+ </xsl:when>
2107
+ <xsl:otherwise>
2108
+ <fo:table-column column-width="15%"/>
2109
+ <fo:table-column column-width="85%"/>
2110
+ </xsl:otherwise>
2111
+ </xsl:choose>
2112
+ <fo:table-body>
2113
+ <xsl:for-each select="xalan:nodeset($references)//fn">
2114
+ <xsl:variable name="reference" select="@reference"/>
2115
+ <xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
2116
+ <fo:table-row>
2117
+ <fo:table-cell>
2118
+ <fo:block>
2119
+ <fo:inline font-size="80%" padding-right="5mm" vertical-align="super" id="{@id}">
2120
+
2121
+ <xsl:value-of select="@reference"/>
2122
+ </fo:inline>
2123
+ </fo:block>
2124
+ </fo:table-cell>
2125
+ <fo:table-cell>
2126
+ <fo:block text-align="justify" margin-bottom="12pt">
2127
+
2128
+ <xsl:if test="normalize-space($key_iso) = 'true'">
2129
+ <xsl:attribute name="margin-bottom">0</xsl:attribute>
2130
+ </xsl:if>
2131
+
2132
+ <xsl:apply-templates/>
2133
+ </fo:block>
2134
+ </fo:table-cell>
2135
+ </fo:table-row>
2136
+ </xsl:if>
2137
+ </xsl:for-each>
2138
+ </fo:table-body>
2139
+ </fo:table>
2140
+ </fo:block>
2141
+ </xsl:if>
2142
+
2143
+ </xsl:template><xsl:template match="*[local-name()='fn']">
2144
+ <!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
2145
+ <fo:inline font-size="80%" keep-with-previous.within-line="always">
2146
+
2147
+
2148
+ <xsl:attribute name="font-size">50%</xsl:attribute>
2149
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
2150
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
2151
+
2152
+
2153
+
2154
+ <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
2155
+
2156
+ <xsl:value-of select="@reference"/>
2157
+ </fo:basic-link>
2158
+ </fo:inline>
2159
+ </xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
2160
+ <fo:inline>
2161
+ <xsl:apply-templates/>
2162
+ </fo:inline>
2163
+ </xsl:template><xsl:template match="*[local-name()='dl']">
2164
+ <xsl:variable name="parent" select="local-name(..)"/>
2165
+
2166
+ <xsl:variable name="key_iso">
2167
+
2168
+ <xsl:if test="$parent = 'figure' or $parent = 'formula'">true</xsl:if>
2169
+ <!-- and (not(../@class) or ../@class !='pseudocode') -->
2170
+ </xsl:variable>
2171
+
2172
+ <xsl:choose>
2173
+ <xsl:when test="$parent = 'formula' and count(*[local-name()='dt']) = 1"> <!-- only one component -->
2174
+
2175
+ <fo:block text-align="left">
2176
+
2177
+
2178
+ <xsl:attribute name="margin-left">7.4mm</xsl:attribute>
2179
+
2180
+ <xsl:variable name="title-where">
2181
+ <xsl:call-template name="getTitle">
2182
+ <xsl:with-param name="name" select="'title-where'"/>
2183
+ </xsl:call-template>
2184
+ </xsl:variable>
2185
+ <xsl:value-of select="$title-where"/>
2186
+ </fo:block>
2187
+ <fo:block>
2188
+
2189
+ <xsl:attribute name="text-indent">7.4mm</xsl:attribute>
2190
+
2191
+ <xsl:apply-templates select="*[local-name()='dt']/*"/>
2192
+
2193
+ <xsl:text> </xsl:text>
2194
+ <xsl:apply-templates select="*[local-name()='dd']/*" mode="inline"/>
2195
+ </fo:block>
2196
+
2197
+
2198
+ </xsl:when>
2199
+ <xsl:when test="$parent = 'formula'"> <!-- a few components -->
2200
+ <fo:block margin-bottom="12pt" text-align="left">
2201
+
2202
+
2203
+
2204
+
2205
+ <xsl:attribute name="margin-left">7.4mm</xsl:attribute>
2206
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
2207
+
2208
+ <xsl:variable name="title-where">
2209
+ <xsl:call-template name="getTitle">
2210
+ <xsl:with-param name="name" select="'title-where'"/>
2211
+ </xsl:call-template>
2212
+ </xsl:variable>
2213
+ <xsl:value-of select="$title-where"/>
2214
+ </fo:block>
2215
+ </xsl:when>
2216
+ <xsl:when test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')">
2217
+ <fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">
2218
+
2219
+
2220
+
2221
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
2222
+ <xsl:attribute name="text-indent">7.4mm</xsl:attribute>
2223
+
2224
+ <xsl:variable name="title-key">
2225
+ <xsl:call-template name="getTitle">
2226
+ <xsl:with-param name="name" select="'title-key'"/>
2227
+ </xsl:call-template>
2228
+ </xsl:variable>
2229
+ <xsl:value-of select="$title-key"/>
2230
+ </fo:block>
2231
+ </xsl:when>
2232
+ </xsl:choose>
2233
+
2234
+ <!-- a few components -->
2235
+ <xsl:if test="not($parent = 'formula' and count(*[local-name()='dt']) = 1)">
2236
+ <fo:block>
2237
+
2238
+
2239
+
2240
+
2241
+ <fo:block>
2242
+
2243
+
2244
+ <xsl:attribute name="margin-left">7.4mm</xsl:attribute>
2245
+ <xsl:if test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')">
2246
+ <xsl:attribute name="margin-left">15mm</xsl:attribute>
2247
+ </xsl:if>
2248
+
2249
+
2250
+
2251
+ <fo:table width="95%" table-layout="fixed">
2252
+
2253
+ <xsl:attribute name="margin-left">-3.7mm</xsl:attribute>
2254
+
2255
+ <xsl:choose>
2256
+ <xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'">
2257
+ <!-- <xsl:attribute name="font-size">11pt</xsl:attribute> -->
2258
+ </xsl:when>
2259
+ <xsl:when test="normalize-space($key_iso) = 'true'">
2260
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
2261
+
2262
+ </xsl:when>
2263
+ </xsl:choose>
2264
+ <!-- create virtual html table for dl/[dt and dd] -->
2265
+ <xsl:variable name="html-table">
2266
+ <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
2267
+ <xsl:element name="{$ns}:table">
2268
+ <tbody>
2269
+ <xsl:apply-templates mode="dl"/>
2270
+ </tbody>
2271
+ </xsl:element>
2272
+ </xsl:variable>
2273
+ <!-- html-table<xsl:copy-of select="$html-table"/> -->
2274
+ <xsl:variable name="colwidths">
2275
+ <xsl:call-template name="calculate-column-widths">
2276
+ <xsl:with-param name="cols-count" select="2"/>
2277
+ <xsl:with-param name="table" select="$html-table"/>
2278
+ </xsl:call-template>
2279
+ </xsl:variable>
2280
+ <!-- colwidths=<xsl:value-of select="$colwidths"/> -->
2281
+ <xsl:variable name="maxlength_dt">
2282
+ <xsl:call-template name="getMaxLength_dt"/>
2283
+ </xsl:variable>
2284
+ <xsl:call-template name="setColumnWidth_dl">
2285
+ <xsl:with-param name="colwidths" select="$colwidths"/>
2286
+ <xsl:with-param name="maxlength_dt" select="$maxlength_dt"/>
2287
+ </xsl:call-template>
2288
+ <fo:table-body>
2289
+ <xsl:apply-templates>
2290
+ <xsl:with-param name="key_iso" select="normalize-space($key_iso)"/>
2291
+ </xsl:apply-templates>
2292
+ </fo:table-body>
2293
+ </fo:table>
2294
+ </fo:block>
2295
+ </fo:block>
2296
+ </xsl:if>
2297
+ </xsl:template><xsl:template name="setColumnWidth_dl">
2298
+ <xsl:param name="colwidths"/>
2299
+ <xsl:param name="maxlength_dt"/>
2300
+ <xsl:choose>
2301
+ <xsl:when test="ancestor::*[local-name()='dl']"><!-- second level, i.e. inlined table -->
2302
+ <fo:table-column column-width="50%"/>
2303
+ <fo:table-column column-width="50%"/>
2304
+ </xsl:when>
2305
+ <xsl:otherwise>
2306
+ <xsl:choose>
2307
+ <xsl:when test="normalize-space($maxlength_dt) != '' and number($maxlength_dt) &lt;= 2"> <!-- if dt contains short text like t90, a, etc -->
2308
+ <fo:table-column column-width="5%"/>
2309
+ <fo:table-column column-width="95%"/>
2310
+ </xsl:when>
2311
+ <xsl:when test="normalize-space($maxlength_dt) != '' and number($maxlength_dt) &lt;= 5"> <!-- if dt contains short text like t90, a, etc -->
2312
+ <fo:table-column column-width="10%"/>
2313
+ <fo:table-column column-width="90%"/>
2314
+ </xsl:when>
2315
+ <!-- <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 1.7">
2316
+ <fo:table-column column-width="60%"/>
2317
+ <fo:table-column column-width="40%"/>
2318
+ </xsl:when> -->
2319
+ <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 1.3">
2320
+ <fo:table-column column-width="50%"/>
2321
+ <fo:table-column column-width="50%"/>
2322
+ </xsl:when>
2323
+ <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 0.5">
2324
+ <fo:table-column column-width="40%"/>
2325
+ <fo:table-column column-width="60%"/>
2326
+ </xsl:when>
2327
+ <xsl:otherwise>
2328
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
2329
+ <xsl:choose>
2330
+ <xsl:when test=". = 1 or . = 0">
2331
+ <fo:table-column column-width="proportional-column-width(2)"/>
2332
+ </xsl:when>
2333
+ <xsl:otherwise>
2334
+ <fo:table-column column-width="proportional-column-width({.})"/>
2335
+ </xsl:otherwise>
2336
+ </xsl:choose>
2337
+ </xsl:for-each>
2338
+ </xsl:otherwise>
2339
+ </xsl:choose>
2340
+ <!-- <fo:table-column column-width="15%"/>
2341
+ <fo:table-column column-width="85%"/> -->
2342
+ </xsl:otherwise>
2343
+ </xsl:choose>
2344
+ </xsl:template><xsl:template name="getMaxLength_dt">
2345
+ <xsl:for-each select="*[local-name()='dt']">
2346
+ <xsl:sort select="string-length(normalize-space(.))" data-type="number" order="descending"/>
2347
+ <xsl:if test="position() = 1">
2348
+ <xsl:value-of select="string-length(normalize-space(.))"/>
2349
+ </xsl:if>
2350
+ </xsl:for-each>
2351
+ </xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']" priority="2">
2352
+ <xsl:param name="key_iso"/>
2353
+
2354
+ <!-- <tr>
2355
+ <td>NOTE</td>
2356
+ <td>
2357
+ <xsl:apply-templates />
2358
+ </td>
2359
+ </tr>
2360
+ -->
2361
+ <fo:table-row>
2362
+ <fo:table-cell>
2363
+ <fo:block margin-top="6pt">
2364
+ <xsl:if test="normalize-space($key_iso) = 'true'">
2365
+ <xsl:attribute name="margin-top">0</xsl:attribute>
2366
+ </xsl:if>
2367
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
2368
+ </fo:block>
2369
+ </fo:table-cell>
2370
+ <fo:table-cell>
2371
+ <fo:block>
2372
+ <xsl:apply-templates/>
2373
+ </fo:block>
2374
+ </fo:table-cell>
2375
+ </fo:table-row>
2376
+ </xsl:template><xsl:template match="*[local-name()='dt']" mode="dl">
2377
+ <tr>
2378
+ <td>
2379
+ <xsl:apply-templates/>
2380
+ </td>
2381
+ <td>
2382
+
2383
+
2384
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
2385
+
2386
+ </td>
2387
+ </tr>
2388
+
2389
+ </xsl:template><xsl:template match="*[local-name()='dt']">
2390
+ <xsl:param name="key_iso"/>
2391
+
2392
+ <fo:table-row>
2393
+ <fo:table-cell>
2394
+
2395
+ <fo:block margin-top="6pt">
2396
+
2397
+
2398
+ <xsl:if test="normalize-space($key_iso) = 'true'">
2399
+ <xsl:attribute name="margin-top">0</xsl:attribute>
2400
+
2401
+ </xsl:if>
2402
+
2403
+
2404
+
2405
+
2406
+
2407
+ <xsl:apply-templates/>
2408
+ <!-- <xsl:if test="$namespace = 'gb'">
2409
+ <xsl:if test="ancestor::*[local-name()='formula']">
2410
+ <xsl:text>—</xsl:text>
2411
+ </xsl:if>
2412
+ </xsl:if> -->
2413
+ </fo:block>
2414
+ </fo:table-cell>
2415
+ <fo:table-cell>
2416
+ <fo:block>
2417
+
2418
+
2419
+
2420
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
2421
+
2422
+ </fo:block>
2423
+ </fo:table-cell>
2424
+ </fo:table-row>
2425
+
2426
+ </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
2427
+ <xsl:apply-templates/>
2428
+ </xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
2429
+ <xsl:apply-templates/>
2430
+ </xsl:template><xsl:template match="*[local-name()='dd']/*[local-name()='p']" mode="inline">
2431
+ <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
2432
+ </xsl:template><xsl:template match="*[local-name()='em']">
2433
+ <fo:inline font-style="italic">
2434
+ <xsl:apply-templates/>
2435
+ </fo:inline>
2436
+ </xsl:template><xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
2437
+ <fo:inline font-weight="bold">
2438
+ <xsl:apply-templates/>
2439
+ </fo:inline>
2440
+ </xsl:template><xsl:template match="*[local-name()='sup']">
2441
+ <fo:inline font-size="80%" vertical-align="super">
2442
+ <xsl:apply-templates/>
2443
+ </fo:inline>
2444
+ </xsl:template><xsl:template match="*[local-name()='sub']">
2445
+ <fo:inline font-size="80%" vertical-align="sub">
2446
+ <xsl:apply-templates/>
2447
+ </fo:inline>
2448
+ </xsl:template><xsl:template match="*[local-name()='tt']">
2449
+ <fo:inline xsl:use-attribute-sets="tt-style">
2450
+ <xsl:apply-templates/>
2451
+ </fo:inline>
2452
+ </xsl:template><xsl:template match="*[local-name()='del']">
2453
+ <fo:inline font-size="10pt" color="red" text-decoration="line-through">
2454
+ <xsl:apply-templates/>
2455
+ </fo:inline>
2456
+ </xsl:template><xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
2457
+ <xsl:variable name="text" select="normalize-space(.)"/>
2458
+ <fo:inline font-size="75%">
2459
+ <xsl:if test="string-length($text) &gt; 0">
2460
+ <xsl:call-template name="recursiveSmallCaps">
2461
+ <xsl:with-param name="text" select="$text"/>
2462
+ </xsl:call-template>
2463
+ </xsl:if>
2464
+ </fo:inline>
2465
+ </xsl:template><xsl:template name="recursiveSmallCaps">
2466
+ <xsl:param name="text"/>
2467
+ <xsl:variable name="char" select="substring($text,1,1)"/>
2468
+ <!-- <xsl:variable name="upperCase" select="translate($char, $lower, $upper)"/> -->
2469
+ <xsl:variable name="upperCase" select="java:toUpperCase(java:java.lang.String.new($char))"/>
2470
+ <xsl:choose>
2471
+ <xsl:when test="$char=$upperCase">
2472
+ <fo:inline font-size="{100 div 0.75}%">
2473
+ <xsl:value-of select="$upperCase"/>
2474
+ </fo:inline>
2475
+ </xsl:when>
2476
+ <xsl:otherwise>
2477
+ <xsl:value-of select="$upperCase"/>
2478
+ </xsl:otherwise>
2479
+ </xsl:choose>
2480
+ <xsl:if test="string-length($text) &gt; 1">
2481
+ <xsl:call-template name="recursiveSmallCaps">
2482
+ <xsl:with-param name="text" select="substring($text,2)"/>
2483
+ </xsl:call-template>
2484
+ </xsl:if>
2485
+ </xsl:template><xsl:template name="tokenize">
2486
+ <xsl:param name="text"/>
2487
+ <xsl:param name="separator" select="' '"/>
2488
+ <xsl:choose>
2489
+ <xsl:when test="not(contains($text, $separator))">
2490
+ <word>
2491
+ <xsl:variable name="str_no_en_chars" select="normalize-space(translate($text, $en_chars, ''))"/>
2492
+ <xsl:variable name="len_str_no_en_chars" select="string-length($str_no_en_chars)"/>
2493
+ <xsl:variable name="len_str_tmp" select="string-length(normalize-space($text))"/>
2494
+ <xsl:variable name="len_str">
2495
+ <xsl:choose>
2496
+ <xsl:when test="normalize-space(translate($text, $upper, '')) = ''"> <!-- english word in CAPITAL letters -->
2497
+ <xsl:value-of select="$len_str_tmp * 1.5"/>
2498
+ </xsl:when>
2499
+ <xsl:otherwise>
2500
+ <xsl:value-of select="$len_str_tmp"/>
2501
+ </xsl:otherwise>
2502
+ </xsl:choose>
2503
+ </xsl:variable>
2504
+
2505
+ <!-- <xsl:if test="$len_str_no_en_chars div $len_str &gt; 0.8">
2506
+ <xsl:message>
2507
+ div=<xsl:value-of select="$len_str_no_en_chars div $len_str"/>
2508
+ len_str=<xsl:value-of select="$len_str"/>
2509
+ len_str_no_en_chars=<xsl:value-of select="$len_str_no_en_chars"/>
2510
+ </xsl:message>
2511
+ </xsl:if> -->
2512
+ <!-- <len_str_no_en_chars><xsl:value-of select="$len_str_no_en_chars"/></len_str_no_en_chars>
2513
+ <len_str><xsl:value-of select="$len_str"/></len_str> -->
2514
+ <xsl:choose>
2515
+ <xsl:when test="$len_str_no_en_chars div $len_str &gt; 0.8"> <!-- means non-english string -->
2516
+ <xsl:value-of select="$len_str - $len_str_no_en_chars"/>
2517
+ </xsl:when>
2518
+ <xsl:otherwise>
2519
+ <xsl:value-of select="$len_str"/>
2520
+ </xsl:otherwise>
2521
+ </xsl:choose>
2522
+ </word>
2523
+ </xsl:when>
2524
+ <xsl:otherwise>
2525
+ <word>
2526
+ <xsl:value-of select="string-length(normalize-space(substring-before($text, $separator)))"/>
2527
+ </word>
2528
+ <xsl:call-template name="tokenize">
2529
+ <xsl:with-param name="text" select="substring-after($text, $separator)"/>
2530
+ </xsl:call-template>
2531
+ </xsl:otherwise>
2532
+ </xsl:choose>
2533
+ </xsl:template><xsl:template name="max_length">
2534
+ <xsl:param name="words"/>
2535
+ <xsl:for-each select="$words//word">
2536
+ <xsl:sort select="." data-type="number" order="descending"/>
2537
+ <xsl:if test="position()=1">
2538
+ <xsl:value-of select="."/>
2539
+ </xsl:if>
2540
+ </xsl:for-each>
2541
+ </xsl:template><xsl:template name="add-zero-spaces-java">
2542
+ <xsl:param name="text" select="."/>
2543
+ <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
2544
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| )','$1​')"/>
2545
+ </xsl:template><xsl:template name="add-zero-spaces">
2546
+ <xsl:param name="text" select="."/>
2547
+ <xsl:variable name="zero-space-after-chars">-</xsl:variable>
2548
+ <xsl:variable name="zero-space-after-dot">.</xsl:variable>
2549
+ <xsl:variable name="zero-space-after-colon">:</xsl:variable>
2550
+ <xsl:variable name="zero-space-after-equal">=</xsl:variable>
2551
+ <xsl:variable name="zero-space-after-underscore">_</xsl:variable>
2552
+ <xsl:variable name="zero-space">​</xsl:variable>
2553
+ <xsl:choose>
2554
+ <xsl:when test="contains($text, $zero-space-after-chars)">
2555
+ <xsl:value-of select="substring-before($text, $zero-space-after-chars)"/>
2556
+ <xsl:value-of select="$zero-space-after-chars"/>
2557
+ <xsl:value-of select="$zero-space"/>
2558
+ <xsl:call-template name="add-zero-spaces">
2559
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-chars)"/>
2560
+ </xsl:call-template>
2561
+ </xsl:when>
2562
+ <xsl:when test="contains($text, $zero-space-after-dot)">
2563
+ <xsl:value-of select="substring-before($text, $zero-space-after-dot)"/>
2564
+ <xsl:value-of select="$zero-space-after-dot"/>
2565
+ <xsl:value-of select="$zero-space"/>
2566
+ <xsl:call-template name="add-zero-spaces">
2567
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-dot)"/>
2568
+ </xsl:call-template>
2569
+ </xsl:when>
2570
+ <xsl:when test="contains($text, $zero-space-after-colon)">
2571
+ <xsl:value-of select="substring-before($text, $zero-space-after-colon)"/>
2572
+ <xsl:value-of select="$zero-space-after-colon"/>
2573
+ <xsl:value-of select="$zero-space"/>
2574
+ <xsl:call-template name="add-zero-spaces">
2575
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-colon)"/>
2576
+ </xsl:call-template>
2577
+ </xsl:when>
2578
+ <xsl:when test="contains($text, $zero-space-after-equal)">
2579
+ <xsl:value-of select="substring-before($text, $zero-space-after-equal)"/>
2580
+ <xsl:value-of select="$zero-space-after-equal"/>
2581
+ <xsl:value-of select="$zero-space"/>
2582
+ <xsl:call-template name="add-zero-spaces">
2583
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-equal)"/>
2584
+ </xsl:call-template>
2585
+ </xsl:when>
2586
+ <xsl:when test="contains($text, $zero-space-after-underscore)">
2587
+ <xsl:value-of select="substring-before($text, $zero-space-after-underscore)"/>
2588
+ <xsl:value-of select="$zero-space-after-underscore"/>
2589
+ <xsl:value-of select="$zero-space"/>
2590
+ <xsl:call-template name="add-zero-spaces">
2591
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-underscore)"/>
2592
+ </xsl:call-template>
2593
+ </xsl:when>
2594
+ <xsl:otherwise>
2595
+ <xsl:value-of select="$text"/>
2596
+ </xsl:otherwise>
2597
+ </xsl:choose>
2598
+ </xsl:template><xsl:template name="add-zero-spaces-equal">
2599
+ <xsl:param name="text" select="."/>
2600
+ <xsl:variable name="zero-space-after-equals">==========</xsl:variable>
2601
+ <xsl:variable name="zero-space-after-equal">=</xsl:variable>
2602
+ <xsl:variable name="zero-space">​</xsl:variable>
2603
+ <xsl:choose>
2604
+ <xsl:when test="contains($text, $zero-space-after-equals)">
2605
+ <xsl:value-of select="substring-before($text, $zero-space-after-equals)"/>
2606
+ <xsl:value-of select="$zero-space-after-equals"/>
2607
+ <xsl:value-of select="$zero-space"/>
2608
+ <xsl:call-template name="add-zero-spaces-equal">
2609
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-equals)"/>
2610
+ </xsl:call-template>
2611
+ </xsl:when>
2612
+ <xsl:when test="contains($text, $zero-space-after-equal)">
2613
+ <xsl:value-of select="substring-before($text, $zero-space-after-equal)"/>
2614
+ <xsl:value-of select="$zero-space-after-equal"/>
2615
+ <xsl:value-of select="$zero-space"/>
2616
+ <xsl:call-template name="add-zero-spaces-equal">
2617
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-equal)"/>
2618
+ </xsl:call-template>
2619
+ </xsl:when>
2620
+ <xsl:otherwise>
2621
+ <xsl:value-of select="$text"/>
2622
+ </xsl:otherwise>
2623
+ </xsl:choose>
2624
+ </xsl:template><xsl:template name="getSimpleTable">
2625
+ <xsl:variable name="simple-table">
2626
+
2627
+ <!-- Step 1. colspan processing -->
2628
+ <xsl:variable name="simple-table-colspan">
2629
+ <tbody>
2630
+ <xsl:apply-templates mode="simple-table-colspan"/>
2631
+ </tbody>
2632
+ </xsl:variable>
2633
+
2634
+ <!-- Step 2. rowspan processing -->
2635
+ <xsl:variable name="simple-table-rowspan">
2636
+ <xsl:apply-templates select="xalan:nodeset($simple-table-colspan)" mode="simple-table-rowspan"/>
2637
+ </xsl:variable>
2638
+
2639
+ <xsl:copy-of select="xalan:nodeset($simple-table-rowspan)"/>
2640
+
2641
+ <!-- <xsl:choose>
2642
+ <xsl:when test="current()//*[local-name()='th'][@colspan] or current()//*[local-name()='td'][@colspan] ">
2643
+
2644
+ </xsl:when>
2645
+ <xsl:otherwise>
2646
+ <xsl:copy-of select="current()"/>
2647
+ </xsl:otherwise>
2648
+ </xsl:choose> -->
2649
+ </xsl:variable>
2650
+ <xsl:copy-of select="$simple-table"/>
2651
+ </xsl:template><xsl:template match="*[local-name()='thead'] | *[local-name()='tbody']" mode="simple-table-colspan">
2652
+ <xsl:apply-templates mode="simple-table-colspan"/>
2653
+ </xsl:template><xsl:template match="*[local-name()='fn']" mode="simple-table-colspan"/><xsl:template match="*[local-name()='th'] | *[local-name()='td']" mode="simple-table-colspan">
2654
+ <xsl:choose>
2655
+ <xsl:when test="@colspan">
2656
+ <xsl:variable name="td">
2657
+ <xsl:element name="td">
2658
+ <xsl:attribute name="divide"><xsl:value-of select="@colspan"/></xsl:attribute>
2659
+ <xsl:apply-templates select="@*" mode="simple-table-colspan"/>
2660
+ <xsl:apply-templates mode="simple-table-colspan"/>
2661
+ </xsl:element>
2662
+ </xsl:variable>
2663
+ <xsl:call-template name="repeatNode">
2664
+ <xsl:with-param name="count" select="@colspan"/>
2665
+ <xsl:with-param name="node" select="$td"/>
2666
+ </xsl:call-template>
2667
+ </xsl:when>
2668
+ <xsl:otherwise>
2669
+ <xsl:element name="td">
2670
+ <xsl:apply-templates select="@*" mode="simple-table-colspan"/>
2671
+ <xsl:apply-templates mode="simple-table-colspan"/>
2672
+ </xsl:element>
2673
+ </xsl:otherwise>
2674
+ </xsl:choose>
2675
+ </xsl:template><xsl:template match="@colspan" mode="simple-table-colspan"/><xsl:template match="*[local-name()='tr']" mode="simple-table-colspan">
2676
+ <xsl:element name="tr">
2677
+ <xsl:apply-templates select="@*" mode="simple-table-colspan"/>
2678
+ <xsl:apply-templates mode="simple-table-colspan"/>
2679
+ </xsl:element>
2680
+ </xsl:template><xsl:template match="@*|node()" mode="simple-table-colspan">
2681
+ <xsl:copy>
2682
+ <xsl:apply-templates select="@*|node()" mode="simple-table-colspan"/>
2683
+ </xsl:copy>
2684
+ </xsl:template><xsl:template name="repeatNode">
2685
+ <xsl:param name="count"/>
2686
+ <xsl:param name="node"/>
2687
+
2688
+ <xsl:if test="$count &gt; 0">
2689
+ <xsl:call-template name="repeatNode">
2690
+ <xsl:with-param name="count" select="$count - 1"/>
2691
+ <xsl:with-param name="node" select="$node"/>
2692
+ </xsl:call-template>
2693
+ <xsl:copy-of select="$node"/>
2694
+ </xsl:if>
2695
+ </xsl:template><xsl:template match="@*|node()" mode="simple-table-rowspan">
2696
+ <xsl:copy>
2697
+ <xsl:apply-templates select="@*|node()" mode="simple-table-rowspan"/>
2698
+ </xsl:copy>
2699
+ </xsl:template><xsl:template match="tbody" mode="simple-table-rowspan">
2700
+ <xsl:copy>
2701
+ <xsl:copy-of select="tr[1]"/>
2702
+ <xsl:apply-templates select="tr[2]" mode="simple-table-rowspan">
2703
+ <xsl:with-param name="previousRow" select="tr[1]"/>
2704
+ </xsl:apply-templates>
2705
+ </xsl:copy>
2706
+ </xsl:template><xsl:template match="tr" mode="simple-table-rowspan">
2707
+ <xsl:param name="previousRow"/>
2708
+ <xsl:variable name="currentRow" select="."/>
2709
+
2710
+ <xsl:variable name="normalizedTDs">
2711
+ <xsl:for-each select="xalan:nodeset($previousRow)//td">
2712
+ <xsl:choose>
2713
+ <xsl:when test="@rowspan &gt; 1">
2714
+ <xsl:copy>
2715
+ <xsl:attribute name="rowspan">
2716
+ <xsl:value-of select="@rowspan - 1"/>
2717
+ </xsl:attribute>
2718
+ <xsl:copy-of select="@*[not(name() = 'rowspan')]"/>
2719
+ <xsl:copy-of select="node()"/>
2720
+ </xsl:copy>
2721
+ </xsl:when>
2722
+ <xsl:otherwise>
2723
+ <xsl:copy-of select="$currentRow/td[1 + count(current()/preceding-sibling::td[not(@rowspan) or (@rowspan = 1)])]"/>
2724
+ </xsl:otherwise>
2725
+ </xsl:choose>
2726
+ </xsl:for-each>
2727
+ </xsl:variable>
2728
+
2729
+ <xsl:variable name="newRow">
2730
+ <xsl:copy>
2731
+ <xsl:copy-of select="$currentRow/@*"/>
2732
+ <xsl:copy-of select="xalan:nodeset($normalizedTDs)"/>
2733
+ </xsl:copy>
2734
+ </xsl:variable>
2735
+ <xsl:copy-of select="$newRow"/>
2736
+
2737
+ <xsl:apply-templates select="following-sibling::tr[1]" mode="simple-table-rowspan">
2738
+ <xsl:with-param name="previousRow" select="$newRow"/>
2739
+ </xsl:apply-templates>
2740
+ </xsl:template><xsl:template name="getLang">
2741
+ <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
2742
+ <xsl:choose>
2743
+ <xsl:when test="$language = 'English'">en</xsl:when>
2744
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
2745
+ </xsl:choose>
2746
+ </xsl:template><xsl:template name="capitalizeWords">
2747
+ <xsl:param name="str"/>
2748
+ <xsl:variable name="str2" select="translate($str, '-', ' ')"/>
2749
+ <xsl:choose>
2750
+ <xsl:when test="contains($str2, ' ')">
2751
+ <xsl:variable name="substr" select="substring-before($str2, ' ')"/>
2752
+ <!-- <xsl:value-of select="translate(substring($substr, 1, 1), $lower, $upper)"/>
2753
+ <xsl:value-of select="substring($substr, 2)"/> -->
2754
+ <xsl:call-template name="capitalize">
2755
+ <xsl:with-param name="str" select="$substr"/>
2756
+ </xsl:call-template>
2757
+ <xsl:text> </xsl:text>
2758
+ <xsl:call-template name="capitalizeWords">
2759
+ <xsl:with-param name="str" select="substring-after($str2, ' ')"/>
2760
+ </xsl:call-template>
2761
+ </xsl:when>
2762
+ <xsl:otherwise>
2763
+ <!-- <xsl:value-of select="translate(substring($str2, 1, 1), $lower, $upper)"/>
2764
+ <xsl:value-of select="substring($str2, 2)"/> -->
2765
+ <xsl:call-template name="capitalize">
2766
+ <xsl:with-param name="str" select="$str2"/>
2767
+ </xsl:call-template>
2768
+ </xsl:otherwise>
2769
+ </xsl:choose>
2770
+ </xsl:template><xsl:template name="capitalize">
2771
+ <xsl:param name="str"/>
2772
+ <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring($str, 1, 1)))"/>
2773
+ <xsl:value-of select="substring($str, 2)"/>
2774
+ </xsl:template><xsl:template match="mathml:math">
2775
+ <fo:inline font-family="STIX2Math">
2776
+ <fo:instream-foreign-object fox:alt-text="Math">
2777
+ <xsl:copy-of select="."/>
2778
+ </fo:instream-foreign-object>
2779
+ </fo:inline>
2780
+ </xsl:template><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
2781
+ <xsl:variable name="target">
2782
+ <xsl:choose>
2783
+ <xsl:when test="starts-with(normalize-space(@target), 'mailto:')">
2784
+ <xsl:value-of select="normalize-space(substring-after(@target, 'mailto:'))"/>
2785
+ </xsl:when>
2786
+ <xsl:otherwise>
2787
+ <xsl:value-of select="normalize-space(@target)"/>
2788
+ </xsl:otherwise>
2789
+ </xsl:choose>
2790
+ </xsl:variable>
2791
+ <fo:inline xsl:use-attribute-sets="link-style">
2792
+ <xsl:choose>
2793
+ <xsl:when test="$target = ''">
2794
+ <xsl:apply-templates/>
2795
+ </xsl:when>
2796
+ <xsl:otherwise>
2797
+ <fo:basic-link external-destination="{@target}" fox:alt-text="{@target}">
2798
+ <xsl:choose>
2799
+ <xsl:when test="normalize-space(.) = ''">
2800
+ <xsl:value-of select="$target"/>
2801
+ </xsl:when>
2802
+ <xsl:otherwise>
2803
+ <xsl:apply-templates/>
2804
+ </xsl:otherwise>
2805
+ </xsl:choose>
2806
+ </fo:basic-link>
2807
+ </xsl:otherwise>
2808
+ </xsl:choose>
2809
+ </fo:inline>
2810
+ </xsl:template><xsl:template match="*[local-name()='bookmark']">
2811
+ <fo:inline id="{@id}"/>
2812
+ </xsl:template><xsl:template match="*[local-name()='appendix']">
2813
+ <fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
2814
+ <xsl:apply-templates select="*[local-name()='title']" mode="process"/>
2815
+ </fo:block>
2816
+ <xsl:apply-templates/>
2817
+ </xsl:template><xsl:template match="*[local-name()='appendix']/*[local-name()='title']"/><xsl:template match="*[local-name()='appendix']/*[local-name()='title']" mode="process">
2818
+ <fo:inline><xsl:apply-templates/></fo:inline>
2819
+ </xsl:template><xsl:template match="*[local-name()='appendix']//*[local-name()='example']" priority="2">
2820
+ <fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
2821
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
2822
+ </fo:block>
2823
+ <xsl:apply-templates/>
2824
+ </xsl:template><xsl:template match="*[local-name() = 'callout']">
2825
+ <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}">&lt;<xsl:apply-templates/>&gt;</fo:basic-link>
2826
+ </xsl:template><xsl:template match="*[local-name() = 'annotation']">
2827
+ <xsl:variable name="annotation-id" select="@id"/>
2828
+ <xsl:variable name="callout" select="//*[@target = $annotation-id]/text()"/>
2829
+ <fo:block id="{$annotation-id}" white-space="nowrap">
2830
+ <fo:inline>
2831
+ <xsl:apply-templates>
2832
+ <xsl:with-param name="callout" select="concat('&lt;', $callout, '&gt; ')"/>
2833
+ </xsl:apply-templates>
2834
+ </fo:inline>
2835
+ </fo:block>
2836
+ </xsl:template><xsl:template match="*[local-name() = 'annotation']/*[local-name() = 'p']">
2837
+ <xsl:param name="callout"/>
2838
+ <fo:inline id="{@id}">
2839
+ <!-- for first p in annotation, put <x> -->
2840
+ <xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
2841
+ <xsl:apply-templates/>
2842
+ </fo:inline>
2843
+ </xsl:template><xsl:template match="*[local-name() = 'modification']">
2844
+ <xsl:variable name="title-modified">
2845
+ <xsl:call-template name="getTitle">
2846
+ <xsl:with-param name="name" select="'title-modified'"/>
2847
+ </xsl:call-template>
2848
+ </xsl:variable>
2849
+ <xsl:choose>
2850
+ <xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:text>—</xsl:text></xsl:when>
2851
+ <xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:text> — </xsl:text></xsl:otherwise>
2852
+ </xsl:choose>
2853
+ <xsl:apply-templates/>
2854
+ </xsl:template><xsl:template match="*[local-name() = 'xref']">
2855
+ <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
2856
+
2857
+ <xsl:apply-templates/>
2858
+ </fo:basic-link>
2859
+ </xsl:template><xsl:template match="*[local-name() = 'formula']" name="formula">
2860
+ <fo:block id="{@id}" xsl:use-attribute-sets="formula-style">
2861
+ <xsl:apply-templates/>
2862
+ </fo:block>
2863
+ </xsl:template><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'dt']/*[local-name() = 'stem']">
2864
+ <fo:inline>
2865
+ <xsl:apply-templates/>
2866
+ </fo:inline>
2867
+ </xsl:template><xsl:template match="*[local-name() = 'admitted']/*[local-name() = 'stem']">
2868
+ <fo:inline>
2869
+ <xsl:apply-templates/>
2870
+ </fo:inline>
2871
+ </xsl:template><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']" mode="presentation">
2872
+ <xsl:if test="normalize-space() != ''">
2873
+ <xsl:text>(</xsl:text><xsl:apply-templates/><xsl:text>)</xsl:text>
2874
+ </xsl:if>
2875
+ </xsl:template><xsl:template match="*[local-name() = 'note']" name="note">
2876
+
2877
+ <fo:block-container id="{@id}" xsl:use-attribute-sets="note-style">
2878
+
2879
+
2880
+
2881
+
2882
+ <fo:block-container margin-left="0mm">
2883
+
2884
+ <fo:table table-layout="fixed" width="100%">
2885
+ <fo:table-column column-width="10mm"/>
2886
+ <fo:table-column column-width="155mm"/>
2887
+ <fo:table-body>
2888
+ <fo:table-row>
2889
+ <fo:table-cell>
2890
+ <fo:block font-family="SimHei" xsl:use-attribute-sets="note-name-style">
2891
+ <xsl:apply-templates select="gb:name" mode="presentation"/>
2892
+ </fo:block>
2893
+ </fo:table-cell>
2894
+ <fo:table-cell>
2895
+ <fo:block text-align="justify">
2896
+ <xsl:apply-templates/>
2897
+ </fo:block>
2898
+ </fo:table-cell>
2899
+ </fo:table-row>
2900
+ </fo:table-body>
2901
+ </fo:table>
2902
+
2903
+
2904
+
2905
+
2906
+
2907
+
2908
+
2909
+
2910
+
2911
+ </fo:block-container>
2912
+ </fo:block-container>
2913
+
2914
+ </xsl:template><xsl:template match="*[local-name() = 'note']/*[local-name() = 'p']">
2915
+ <xsl:variable name="num"><xsl:number/></xsl:variable>
2916
+ <xsl:choose>
2917
+ <xsl:when test="$num = 1">
2918
+ <fo:inline xsl:use-attribute-sets="note-p-style">
2919
+ <xsl:apply-templates/>
2920
+ </fo:inline>
2921
+ </xsl:when>
2922
+ <xsl:otherwise>
2923
+ <fo:block xsl:use-attribute-sets="note-p-style">
2924
+ <xsl:apply-templates/>
2925
+ </fo:block>
2926
+ </xsl:otherwise>
2927
+ </xsl:choose>
2928
+ </xsl:template><xsl:template match="*[local-name() = 'termnote']">
2929
+ <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
2930
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
2931
+ <xsl:apply-templates/>
2932
+ </fo:block>
2933
+ </xsl:template><xsl:template match="*[local-name() = 'note']/*[local-name() = 'name'] | *[local-name() = 'termnote']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'note']/*[local-name() = 'name']" mode="presentation">
2934
+ <xsl:param name="sfx"/>
2935
+ <xsl:variable name="suffix">
2936
+ <xsl:choose>
2937
+ <xsl:when test="$sfx != ''">
2938
+ <xsl:value-of select="$sfx"/>
2939
+ </xsl:when>
2940
+ <xsl:otherwise>
2941
+
2942
+ <xsl:text>:</xsl:text>
2943
+
2944
+
2945
+ </xsl:otherwise>
2946
+ </xsl:choose>
2947
+ </xsl:variable>
2948
+ <xsl:if test="normalize-space() != ''">
2949
+ <xsl:apply-templates/>
2950
+ <xsl:value-of select="$suffix"/>
2951
+ </xsl:if>
2952
+ </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'name']" mode="presentation">
2953
+ <xsl:param name="sfx"/>
2954
+ <xsl:variable name="suffix">
2955
+ <xsl:choose>
2956
+ <xsl:when test="$sfx != ''">
2957
+ <xsl:value-of select="$sfx"/>
2958
+ </xsl:when>
2959
+ <xsl:otherwise>
2960
+
2961
+ <xsl:text>:</xsl:text>
2962
+
2963
+
2964
+ </xsl:otherwise>
2965
+ </xsl:choose>
2966
+ </xsl:variable>
2967
+ <xsl:if test="normalize-space() != ''">
2968
+ <xsl:apply-templates/>
2969
+ <xsl:value-of select="$suffix"/>
2970
+ </xsl:if>
2971
+ </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
2972
+ <fo:inline><xsl:apply-templates/></fo:inline>
2973
+ </xsl:template><xsl:template match="*[local-name() = 'terms']">
2974
+ <fo:block id="{@id}">
2975
+ <xsl:apply-templates/>
2976
+ </fo:block>
2977
+ </xsl:template><xsl:template match="*[local-name() = 'term']">
2978
+ <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
2979
+
2980
+ <fo:block font-family="SimHei" font-size="11pt" keep-with-next="always" margin-top="10pt" margin-bottom="8pt" line-height="1.1">
2981
+ <xsl:apply-templates select="gb:name" mode="presentation"/>
2982
+ </fo:block>
2983
+
2984
+
2985
+
2986
+ <xsl:apply-templates/>
2987
+ </fo:block>
2988
+ </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
2989
+ <xsl:if test="normalize-space() != ''">
2990
+ <fo:inline>
2991
+ <xsl:apply-templates/>
2992
+ <!-- <xsl:if test="$namespace = 'gb' or $namespace = 'ogc'">
2993
+ <xsl:text>.</xsl:text>
2994
+ </xsl:if> -->
2995
+ </fo:inline>
2996
+ </xsl:if>
2997
+ </xsl:template><xsl:template match="*[local-name() = 'figure']">
2998
+ <fo:block-container id="{@id}">
2999
+ <fo:block>
3000
+ <xsl:apply-templates/>
3001
+ </fo:block>
3002
+ <xsl:call-template name="fn_display_figure"/>
3003
+ <xsl:for-each select="*[local-name() = 'note']">
3004
+ <xsl:call-template name="note"/>
3005
+ </xsl:for-each>
3006
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
3007
+ </fo:block-container>
3008
+ </xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
3009
+ <fo:block id="{@id}">
3010
+ <xsl:apply-templates/>
3011
+ </fo:block>
3012
+ </xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']//*[local-name() = 'p']">
3013
+ <fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
3014
+ <xsl:apply-templates/>
3015
+ </fo:block>
3016
+ </xsl:template><xsl:template match="*[local-name() = 'image']">
3017
+ <fo:block xsl:use-attribute-sets="image-style">
3018
+
3019
+
3020
+ <xsl:variable name="src">
3021
+ <xsl:choose>
3022
+ <xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
3023
+ <xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
3024
+ </xsl:when>
3025
+ <xsl:otherwise>
3026
+ <xsl:value-of select="@src"/>
3027
+ </xsl:otherwise>
3028
+ </xsl:choose>
3029
+ </xsl:variable>
3030
+
3031
+ <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
3032
+ </fo:block>
3033
+ </xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
3034
+ <xsl:apply-templates mode="contents"/>
3035
+ <xsl:text> </xsl:text>
3036
+ </xsl:template><xsl:template match="text()" mode="contents">
3037
+ <xsl:value-of select="."/>
3038
+ </xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'image']/*[local-name() = 'name']" mode="presentation">
3039
+ <xsl:if test="normalize-space() != ''">
3040
+ <fo:block xsl:use-attribute-sets="figure-name-style">
3041
+
3042
+ <xsl:apply-templates/>
3043
+ </fo:block>
3044
+ </xsl:if>
3045
+ </xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note']"/><xsl:template match="*[local-name() = 'title']" mode="contents_item">
3046
+ <xsl:apply-templates mode="contents_item"/>
3047
+ <!-- <xsl:text> </xsl:text> -->
3048
+ </xsl:template><xsl:template name="getSection">
3049
+ <xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
3050
+ </xsl:template><xsl:template name="getName">
3051
+ <xsl:choose>
3052
+ <xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
3053
+ <xsl:copy-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/following-sibling::node()"/>
3054
+ </xsl:when>
3055
+ <xsl:otherwise>
3056
+ <xsl:copy-of select="*[local-name() = 'title']/node()"/>
3057
+ </xsl:otherwise>
3058
+ </xsl:choose>
3059
+ </xsl:template><xsl:template name="insertTitleAsListItem">
3060
+ <xsl:param name="provisional-distance-between-starts" select="'9.5mm'"/>
3061
+ <xsl:variable name="section">
3062
+ <xsl:for-each select="..">
3063
+ <xsl:call-template name="getSection"/>
3064
+ </xsl:for-each>
3065
+ </xsl:variable>
3066
+ <fo:list-block provisional-distance-between-starts="{$provisional-distance-between-starts}">
3067
+ <fo:list-item>
3068
+ <fo:list-item-label end-indent="label-end()">
3069
+ <fo:block>
3070
+ <xsl:value-of select="$section"/>
3071
+ </fo:block>
3072
+ </fo:list-item-label>
3073
+ <fo:list-item-body start-indent="body-start()">
3074
+ <fo:block>
3075
+ <xsl:choose>
3076
+ <xsl:when test="*[local-name() = 'tab']">
3077
+ <xsl:apply-templates select="*[local-name() = 'tab'][1]/following-sibling::node()"/>
3078
+ </xsl:when>
3079
+ <xsl:otherwise>
3080
+ <xsl:apply-templates/>
3081
+ </xsl:otherwise>
3082
+ </xsl:choose>
3083
+ </fo:block>
3084
+ </fo:list-item-body>
3085
+ </fo:list-item>
3086
+ </fo:list-block>
3087
+ </xsl:template><xsl:template name="extractTitle">
3088
+ <xsl:choose>
3089
+ <xsl:when test="*[local-name() = 'tab']">
3090
+ <xsl:apply-templates select="*[local-name() = 'tab'][1]/following-sibling::node()"/>
3091
+ </xsl:when>
3092
+ <xsl:otherwise>
3093
+ <xsl:apply-templates/>
3094
+ </xsl:otherwise>
3095
+ </xsl:choose>
3096
+ </xsl:template><xsl:template match="*[local-name() = 'fn']" mode="contents"/><xsl:template match="*[local-name() = 'fn']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
3097
+ <xsl:text> </xsl:text>
3098
+ </xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
3099
+ <xsl:copy>
3100
+ <xsl:apply-templates mode="contents_item"/>
3101
+ </xsl:copy>
3102
+ </xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
3103
+ <xsl:text> </xsl:text>
3104
+ </xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
3105
+ <fo:block xsl:use-attribute-sets="sourcecode-style">
3106
+ <xsl:apply-templates/>
3107
+ </fo:block>
3108
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
3109
+ </xsl:template><xsl:template match="*[local-name()='sourcecode']/text()">
3110
+ <xsl:variable name="text">
3111
+ <xsl:call-template name="add-zero-spaces-equal"/>
3112
+ </xsl:variable>
3113
+ <xsl:call-template name="add-zero-spaces">
3114
+ <xsl:with-param name="text" select="$text"/>
3115
+ </xsl:call-template>
3116
+ </xsl:template><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']" mode="presentation">
3117
+ <xsl:if test="normalize-space() != ''">
3118
+ <fo:block xsl:use-attribute-sets="sourcecode-name-style">
3119
+
3120
+ <xsl:apply-templates/>
3121
+ </fo:block>
3122
+ </xsl:if>
3123
+ </xsl:template><xsl:template match="*[local-name() = 'permission']">
3124
+ <fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
3125
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
3126
+ <xsl:apply-templates/>
3127
+ </fo:block>
3128
+ </xsl:template><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']" mode="presentation">
3129
+ <xsl:if test="normalize-space() != ''">
3130
+ <fo:block xsl:use-attribute-sets="permission-name-style">
3131
+ <xsl:apply-templates/>
3132
+
3133
+ </fo:block>
3134
+ </xsl:if>
3135
+ </xsl:template><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'label']">
3136
+ <fo:block xsl:use-attribute-sets="permission-label-style">
3137
+ <xsl:apply-templates/>
3138
+ </fo:block>
3139
+ </xsl:template><xsl:template match="*[local-name() = 'requirement']">
3140
+ <fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
3141
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
3142
+ <xsl:apply-templates select="*[local-name()='label']" mode="presentation"/>
3143
+ <xsl:apply-templates select="@obligation" mode="presentation"/>
3144
+ <xsl:apply-templates select="*[local-name()='subject']" mode="presentation"/>
3145
+ <xsl:apply-templates/>
3146
+ </fo:block>
3147
+ </xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']" mode="presentation">
3148
+ <xsl:if test="normalize-space() != ''">
3149
+ <fo:block xsl:use-attribute-sets="requirement-name-style">
3150
+
3151
+ <xsl:apply-templates/>
3152
+
3153
+ </fo:block>
3154
+ </xsl:if>
3155
+ </xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'label']"/><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'label']" mode="presentation">
3156
+ <fo:block xsl:use-attribute-sets="requirement-label-style">
3157
+ <xsl:apply-templates/>
3158
+ </fo:block>
3159
+ </xsl:template><xsl:template match="*[local-name() = 'requirement']/@obligation" mode="presentation">
3160
+ <fo:block>
3161
+ <fo:inline padding-right="3mm">Obligation</fo:inline><xsl:value-of select="."/>
3162
+ </fo:block>
3163
+ </xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'subject']"/><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'subject']" mode="presentation">
3164
+ <fo:block xsl:use-attribute-sets="requirement-subject-style">
3165
+ <xsl:text>Target Type </xsl:text><xsl:apply-templates/>
3166
+ </fo:block>
3167
+ </xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'inherit']">
3168
+ <fo:block xsl:use-attribute-sets="requirement-inherit-style">
3169
+ <xsl:text>Dependency </xsl:text><xsl:apply-templates/>
3170
+ </fo:block>
3171
+ </xsl:template><xsl:template match="*[local-name() = 'recommendation']">
3172
+ <fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
3173
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
3174
+ <xsl:apply-templates/>
3175
+ </fo:block>
3176
+ </xsl:template><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']" mode="presentation">
3177
+ <xsl:if test="normalize-space() != ''">
3178
+ <fo:block xsl:use-attribute-sets="recommendation-name-style">
3179
+ <xsl:apply-templates/>
3180
+
3181
+ </fo:block>
3182
+ </xsl:if>
3183
+ </xsl:template><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'label']">
3184
+ <fo:block xsl:use-attribute-sets="recommendation-label-style">
3185
+ <xsl:apply-templates/>
3186
+ </fo:block>
3187
+ </xsl:template><xsl:template match="*[local-name() = 'termexample']">
3188
+ <fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
3189
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
3190
+ <xsl:apply-templates/>
3191
+ </fo:block>
3192
+ </xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'name']" mode="presentation">
3193
+ <xsl:if test="normalize-space() != ''">
3194
+ <fo:inline xsl:use-attribute-sets="termexample-name-style">
3195
+ <xsl:apply-templates/>
3196
+ </fo:inline>
3197
+ </xsl:if>
3198
+ </xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
3199
+ <fo:inline><xsl:apply-templates/></fo:inline>
3200
+ </xsl:template><xsl:template match="*[local-name() = 'example']">
3201
+ <fo:block id="{@id}" xsl:use-attribute-sets="example-style">
3202
+
3203
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
3204
+
3205
+ <xsl:variable name="element">
3206
+ block
3207
+
3208
+ </xsl:variable>
3209
+
3210
+ <xsl:choose>
3211
+ <xsl:when test="normalize-space($element) = 'block'">
3212
+ <fo:block xsl:use-attribute-sets="example-body-style">
3213
+ <xsl:apply-templates/>
3214
+ </fo:block>
3215
+ </xsl:when>
3216
+ <xsl:otherwise>
3217
+ <fo:inline>
3218
+ <xsl:apply-templates/>
3219
+ </fo:inline>
3220
+ </xsl:otherwise>
3221
+ </xsl:choose>
3222
+
3223
+ </fo:block>
3224
+ </xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'example']/*[local-name() = 'name']" mode="presentation">
3225
+
3226
+ <xsl:variable name="element">
3227
+
3228
+ inline
3229
+ </xsl:variable>
3230
+ <xsl:choose>
3231
+ <xsl:when test="ancestor::*[local-name() = 'appendix']">
3232
+ <fo:inline>
3233
+ <xsl:apply-templates/>
3234
+ </fo:inline>
3235
+ </xsl:when>
3236
+ <xsl:when test="normalize-space($element) = 'block'">
3237
+ <fo:block xsl:use-attribute-sets="example-name-style">
3238
+ <xsl:apply-templates/>
3239
+ </fo:block>
3240
+ </xsl:when>
3241
+ <xsl:otherwise>
3242
+ <fo:inline xsl:use-attribute-sets="example-name-style">
3243
+ <xsl:apply-templates/>
3244
+ </fo:inline>
3245
+ </xsl:otherwise>
3246
+ </xsl:choose>
3247
+
3248
+ </xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
3249
+ <fo:block xsl:use-attribute-sets="example-p-style">
3250
+
3251
+ <xsl:apply-templates/>
3252
+ </fo:block>
3253
+ </xsl:template><xsl:template match="*[local-name() = 'termsource']">
3254
+ <fo:block xsl:use-attribute-sets="termsource-style">
3255
+ <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
3256
+ <xsl:variable name="termsource_text">
3257
+ <xsl:apply-templates/>
3258
+ </xsl:variable>
3259
+ <xsl:choose>
3260
+ <xsl:when test="starts-with(normalize-space($termsource_text), '[')">
3261
+ <xsl:apply-templates/>
3262
+ </xsl:when>
3263
+ <xsl:otherwise>
3264
+ <xsl:text>[</xsl:text>
3265
+ <xsl:apply-templates/>
3266
+ <xsl:text>]</xsl:text>
3267
+ </xsl:otherwise>
3268
+ </xsl:choose>
3269
+ </fo:block>
3270
+ </xsl:template><xsl:template match="*[local-name() = 'termsource']/text()">
3271
+ <xsl:if test="normalize-space() != ''">
3272
+ <xsl:value-of select="."/>
3273
+ </xsl:if>
3274
+ </xsl:template><xsl:template match="*[local-name() = 'origin']">
3275
+ <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
3276
+
3277
+ <fo:inline xsl:use-attribute-sets="origin-style">
3278
+ <xsl:apply-templates/>
3279
+ </fo:inline>
3280
+ </fo:basic-link>
3281
+ </xsl:template><xsl:template match="*[local-name() = 'modification']/*[local-name() = 'p']">
3282
+ <fo:inline><xsl:apply-templates/></fo:inline>
3283
+ </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
3284
+ <xsl:if test="normalize-space() != ''">
3285
+ <xsl:value-of select="."/>
3286
+ </xsl:if>
3287
+ </xsl:template><xsl:template match="*[local-name() = 'quote']">
3288
+
3289
+ <fo:block xsl:use-attribute-sets="quote-style">
3290
+ <xsl:apply-templates select=".//*[local-name() = 'p']"/>
3291
+ </fo:block>
3292
+ <xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
3293
+ <fo:block xsl:use-attribute-sets="quote-source-style">
3294
+ <!-- — ISO, ISO 7301:2011, Clause 1 -->
3295
+ <xsl:apply-templates select="*[local-name() = 'author']"/>
3296
+ <xsl:apply-templates select="*[local-name() = 'source']"/>
3297
+ </fo:block>
3298
+ </xsl:if>
3299
+ </xsl:template><xsl:template match="*[local-name() = 'source']">
3300
+ <xsl:if test="../*[local-name() = 'author']">
3301
+ <xsl:text>, </xsl:text>
3302
+ </xsl:if>
3303
+ <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
3304
+ <xsl:apply-templates/>
3305
+ </fo:basic-link>
3306
+ </xsl:template><xsl:template match="*[local-name() = 'author']">
3307
+ <xsl:text>— </xsl:text>
3308
+ <xsl:apply-templates/>
3309
+ </xsl:template><xsl:template match="*[local-name() = 'eref']">
3310
+ <fo:inline xsl:use-attribute-sets="eref-style">
3311
+ <xsl:if test="@type = 'footnote'">
3312
+
3313
+
3314
+ <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
3315
+ <xsl:attribute name="font-size">50%</xsl:attribute>
3316
+ <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
3317
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
3318
+
3319
+ </xsl:if>
3320
+
3321
+ <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
3322
+
3323
+ <xsl:if test="@type = 'inline'">
3324
+
3325
+
3326
+ </xsl:if>
3327
+
3328
+
3329
+ <xsl:apply-templates/>
3330
+ </fo:basic-link>
3331
+ </fo:inline>
3332
+ </xsl:template><xsl:template match="*[local-name() = 'tab']">
3333
+ <!-- zero-space char -->
3334
+ <xsl:variable name="depth">
3335
+ <xsl:call-template name="getLevel">
3336
+ <xsl:with-param name="depth" select="../@depth"/>
3337
+ </xsl:call-template>
3338
+ </xsl:variable>
3339
+
3340
+ <xsl:variable name="padding">
3341
+
3342
+
3343
+ 3
3344
+
3345
+
3346
+
3347
+
3348
+
3349
+
3350
+
3351
+
3352
+
3353
+
3354
+
3355
+
3356
+
3357
+
3358
+ </xsl:variable>
3359
+
3360
+ <xsl:variable name="padding-right">
3361
+ <xsl:choose>
3362
+ <xsl:when test="normalize-space($padding) = ''">0</xsl:when>
3363
+ <xsl:otherwise>
3364
+ <xsl:value-of select="normalize-space($padding)"/>
3365
+ </xsl:otherwise>
3366
+ </xsl:choose>
3367
+ </xsl:variable>
3368
+
3369
+ <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
3370
+
3371
+ <xsl:choose>
3372
+ <xsl:when test="$language = 'zh'">
3373
+ <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
3374
+ </xsl:when>
3375
+ <xsl:when test="../../@inline-header = 'true'">
3376
+ <fo:inline font-size="90%">
3377
+ <xsl:call-template name="insertNonBreakSpaces">
3378
+ <xsl:with-param name="count" select="$padding-right"/>
3379
+ </xsl:call-template>
3380
+ </fo:inline>
3381
+ </xsl:when>
3382
+ <xsl:otherwise>
3383
+ <fo:inline padding-right="{$padding-right}mm">​</fo:inline>
3384
+ </xsl:otherwise>
3385
+ </xsl:choose>
3386
+
3387
+ </xsl:template><xsl:template name="insertNonBreakSpaces">
3388
+ <xsl:param name="count"/>
3389
+ <xsl:if test="$count &gt; 0">
3390
+ <xsl:text> </xsl:text>
3391
+ <xsl:call-template name="insertNonBreakSpaces">
3392
+ <xsl:with-param name="count" select="$count - 1"/>
3393
+ </xsl:call-template>
3394
+ </xsl:if>
3395
+ </xsl:template><xsl:template match="*[local-name() = 'domain']">
3396
+ <fo:inline xsl:use-attribute-sets="domain-style">&lt;<xsl:apply-templates/>&gt;</fo:inline>
3397
+ <xsl:text> </xsl:text>
3398
+ </xsl:template><xsl:template match="*[local-name() = 'admitted']">
3399
+ <fo:block xsl:use-attribute-sets="admitted-style">
3400
+ <xsl:apply-templates/>
3401
+ </fo:block>
3402
+ </xsl:template><xsl:template match="*[local-name() = 'deprecates']">
3403
+ <xsl:variable name="title-deprecated">
3404
+ <xsl:call-template name="getTitle">
3405
+ <xsl:with-param name="name" select="'title-deprecated'"/>
3406
+ </xsl:call-template>
3407
+ </xsl:variable>
3408
+ <fo:block xsl:use-attribute-sets="deprecates-style">
3409
+ <xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
3410
+ </fo:block>
3411
+ </xsl:template><xsl:template match="*[local-name() = 'definition']">
3412
+ <fo:block xsl:use-attribute-sets="definition-style">
3413
+ <xsl:apply-templates/>
3414
+ </fo:block>
3415
+ </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
3416
+ <xsl:apply-templates/>
3417
+ </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p']">
3418
+ <fo:inline> <xsl:apply-templates/></fo:inline>
3419
+ <fo:block> </fo:block>
3420
+ </xsl:template><xsl:template match="/*/*[local-name() = 'sections']/*" priority="2">
3421
+
3422
+ <fo:block>
3423
+ <xsl:call-template name="setId"/>
3424
+
3425
+
3426
+
3427
+ <xsl:variable name="pos"><xsl:number count="gb:sections/gb:clause | gb:sections/gb:terms"/></xsl:variable>
3428
+ <xsl:if test="$pos &gt;= 2">
3429
+ <xsl:attribute name="space-before">18pt</xsl:attribute>
3430
+ </xsl:if>
3431
+
3432
+
3433
+
3434
+
3435
+
3436
+
3437
+
3438
+
3439
+ <xsl:apply-templates/>
3440
+ </fo:block>
3441
+
3442
+
3443
+
3444
+ </xsl:template><xsl:template match="/*/*[local-name() = 'preface']/*" priority="2">
3445
+ <fo:block break-after="page"/>
3446
+ <fo:block>
3447
+ <xsl:call-template name="setId"/>
3448
+ <xsl:apply-templates/>
3449
+ </fo:block>
3450
+ </xsl:template><xsl:template match="*[local-name() = 'clause']">
3451
+ <fo:block>
3452
+ <xsl:call-template name="setId"/>
3453
+ <xsl:apply-templates/>
3454
+ </fo:block>
3455
+ </xsl:template><xsl:template match="*[local-name() = 'definitions']">
3456
+ <fo:block id="{@id}">
3457
+ <xsl:apply-templates/>
3458
+ </fo:block>
3459
+ </xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@id = '_normative_references' or @id = '_references']">
3460
+
3461
+ <fo:block id="{@id}">
3462
+ <xsl:apply-templates/>
3463
+ </fo:block>
3464
+ </xsl:template><xsl:template match="*[local-name() = 'annex']">
3465
+ <fo:block break-after="page"/>
3466
+ <fo:block id="{@id}">
3467
+
3468
+ </fo:block>
3469
+ <xsl:apply-templates/>
3470
+ </xsl:template><xsl:template match="*[local-name() = 'review']">
3471
+ <!-- comment 2019-11-29 -->
3472
+ <!-- <fo:block font-weight="bold">Review:</fo:block>
3473
+ <xsl:apply-templates /> -->
3474
+ </xsl:template><xsl:template match="*[local-name() = 'name']/text()">
3475
+ <!-- 0xA0 to space replacement -->
3476
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
3477
+ </xsl:template><xsl:template match="*[local-name() = 'errata']">
3478
+ <!-- <row>
3479
+ <date>05-07-2013</date>
3480
+ <type>Editorial</type>
3481
+ <change>Changed CA-9 Priority Code from P1 to P2 in <xref target="tabled2"/>.</change>
3482
+ <pages>D-3</pages>
3483
+ </row>
3484
+ -->
3485
+ <fo:table table-layout="fixed" width="100%" font-size="10pt" border="1pt solid black">
3486
+ <fo:table-column column-width="20mm"/>
3487
+ <fo:table-column column-width="23mm"/>
3488
+ <fo:table-column column-width="107mm"/>
3489
+ <fo:table-column column-width="15mm"/>
3490
+ <fo:table-body>
3491
+ <fo:table-row font-family="Arial" text-align="center" font-weight="bold" background-color="black" color="white">
3492
+ <fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
3493
+ <fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
3494
+ <fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
3495
+ <fo:table-cell border="1pt solid black"><fo:block>Pages</fo:block></fo:table-cell>
3496
+ </fo:table-row>
3497
+ <xsl:apply-templates/>
3498
+ </fo:table-body>
3499
+ </fo:table>
3500
+ </xsl:template><xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']">
3501
+ <fo:table-row>
3502
+ <xsl:apply-templates/>
3503
+ </fo:table-row>
3504
+ </xsl:template><xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
3505
+ <fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
3506
+ <fo:block><xsl:apply-templates/></fo:block>
3507
+ </fo:table-cell>
3508
+ </xsl:template><xsl:template name="convertDate">
3509
+ <xsl:param name="date"/>
3510
+ <xsl:param name="format" select="'short'"/>
3511
+ <xsl:variable name="year" select="substring($date, 1, 4)"/>
3512
+ <xsl:variable name="month" select="substring($date, 6, 2)"/>
3513
+ <xsl:variable name="day" select="substring($date, 9, 2)"/>
3514
+ <xsl:variable name="monthStr">
3515
+ <xsl:choose>
3516
+ <xsl:when test="$month = '01'">January</xsl:when>
3517
+ <xsl:when test="$month = '02'">February</xsl:when>
3518
+ <xsl:when test="$month = '03'">March</xsl:when>
3519
+ <xsl:when test="$month = '04'">April</xsl:when>
3520
+ <xsl:when test="$month = '05'">May</xsl:when>
3521
+ <xsl:when test="$month = '06'">June</xsl:when>
3522
+ <xsl:when test="$month = '07'">July</xsl:when>
3523
+ <xsl:when test="$month = '08'">August</xsl:when>
3524
+ <xsl:when test="$month = '09'">September</xsl:when>
3525
+ <xsl:when test="$month = '10'">October</xsl:when>
3526
+ <xsl:when test="$month = '11'">November</xsl:when>
3527
+ <xsl:when test="$month = '12'">December</xsl:when>
3528
+ </xsl:choose>
3529
+ </xsl:variable>
3530
+ <xsl:variable name="result">
3531
+ <xsl:choose>
3532
+ <xsl:when test="$format = 'short' or $day = ''">
3533
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
3534
+ </xsl:when>
3535
+ <xsl:otherwise>
3536
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ', $day, ', ' , $year))"/>
3537
+ </xsl:otherwise>
3538
+ </xsl:choose>
3539
+ </xsl:variable>
3540
+ <xsl:value-of select="$result"/>
3541
+ </xsl:template><xsl:template name="insertKeywords">
3542
+ <xsl:param name="sorting" select="'true'"/>
3543
+ <xsl:param name="charAtEnd" select="'.'"/>
3544
+ <xsl:param name="charDelim" select="', '"/>
3545
+ <xsl:choose>
3546
+ <xsl:when test="$sorting = 'true' or $sorting = 'yes'">
3547
+ <xsl:for-each select="/*/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
3548
+ <xsl:sort data-type="text" order="ascending"/>
3549
+ <xsl:call-template name="insertKeyword">
3550
+ <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
3551
+ <xsl:with-param name="charDelim" select="$charDelim"/>
3552
+ </xsl:call-template>
3553
+ </xsl:for-each>
3554
+ </xsl:when>
3555
+ <xsl:otherwise>
3556
+ <xsl:for-each select="/*/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
3557
+ <xsl:call-template name="insertKeyword">
3558
+ <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
3559
+ <xsl:with-param name="charDelim" select="$charDelim"/>
3560
+ </xsl:call-template>
3561
+ </xsl:for-each>
3562
+ </xsl:otherwise>
3563
+ </xsl:choose>
3564
+ </xsl:template><xsl:template name="insertKeyword">
3565
+ <xsl:param name="charAtEnd"/>
3566
+ <xsl:param name="charDelim"/>
3567
+ <xsl:apply-templates/>
3568
+ <xsl:choose>
3569
+ <xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
3570
+ <xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
3571
+ </xsl:choose>
3572
+ </xsl:template><xsl:template name="addPDFUAmeta">
3573
+ <fo:declarations>
3574
+ <pdf:catalog xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
3575
+ <pdf:dictionary type="normal" key="ViewerPreferences">
3576
+ <pdf:boolean key="DisplayDocTitle">true</pdf:boolean>
3577
+ </pdf:dictionary>
3578
+ </pdf:catalog>
3579
+ <x:xmpmeta xmlns:x="adobe:ns:meta/">
3580
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
3581
+ <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
3582
+ <!-- Dublin Core properties go here -->
3583
+ <dc:title>
3584
+ <xsl:variable name="title">
3585
+
3586
+ <xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'title'][@language = 'en' and @type = 'main']"/>
3587
+
3588
+
3589
+
3590
+
3591
+ </xsl:variable>
3592
+ <xsl:choose>
3593
+ <xsl:when test="normalize-space($title) != ''">
3594
+ <xsl:value-of select="$title"/>
3595
+ </xsl:when>
3596
+ <xsl:otherwise>
3597
+ <xsl:text> </xsl:text>
3598
+ </xsl:otherwise>
3599
+ </xsl:choose>
3600
+ </dc:title>
3601
+ <dc:creator>
3602
+
3603
+ <xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']/*[local-name() = 'organization']/*[local-name() = 'name']"/>
3604
+
3605
+
3606
+ </dc:creator>
3607
+ <dc:description>
3608
+ <xsl:variable name="abstract">
3609
+
3610
+ <xsl:copy-of select="/*/*[local-name() = 'bibliography']/*[local-name() = 'references']/*[local-name() = 'bibitem']/*[local-name() = 'abstract']//text()"/>
3611
+
3612
+
3613
+
3614
+
3615
+ </xsl:variable>
3616
+ <xsl:value-of select="normalize-space($abstract)"/>
3617
+ </dc:description>
3618
+ <pdf:Keywords>
3619
+ <xsl:call-template name="insertKeywords"/>
3620
+ </pdf:Keywords>
3621
+ </rdf:Description>
3622
+ <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
3623
+ <!-- XMP properties go here -->
3624
+ <xmp:CreatorTool/>
3625
+ </rdf:Description>
3626
+ </rdf:RDF>
3627
+ </x:xmpmeta>
3628
+ </fo:declarations>
3629
+ </xsl:template><xsl:template name="getId">
3630
+ <xsl:choose>
3631
+ <xsl:when test="../@id">
3632
+ <xsl:value-of select="../@id"/>
3633
+ </xsl:when>
3634
+ <xsl:otherwise>
3635
+ <!-- <xsl:value-of select="concat(local-name(..), '_', text())"/> -->
3636
+ <xsl:value-of select="concat(generate-id(..), '_', text())"/>
3637
+ </xsl:otherwise>
3638
+ </xsl:choose>
3639
+ </xsl:template><xsl:template name="getLevel">
3640
+ <xsl:param name="depth"/>
3641
+ <xsl:choose>
3642
+ <xsl:when test="normalize-space(@depth) != ''">
3643
+ <xsl:value-of select="@depth"/>
3644
+ </xsl:when>
3645
+ <xsl:when test="normalize-space($depth) != ''">
3646
+ <xsl:value-of select="$depth"/>
3647
+ </xsl:when>
3648
+ <xsl:otherwise>
3649
+ <xsl:variable name="level_total" select="count(ancestor::*)"/>
3650
+ <xsl:variable name="level">
3651
+ <xsl:choose>
3652
+ <xsl:when test="parent::*[local-name() = 'preface']">
3653
+ <xsl:value-of select="$level_total - 1"/>
3654
+ </xsl:when>
3655
+ <xsl:when test="ancestor::*[local-name() = 'preface']">
3656
+ <xsl:value-of select="$level_total - 2"/>
3657
+ </xsl:when>
3658
+ <!-- <xsl:when test="parent::*[local-name() = 'sections']">
3659
+ <xsl:value-of select="$level_total - 1"/>
3660
+ </xsl:when> -->
3661
+ <xsl:when test="ancestor::*[local-name() = 'sections']">
3662
+ <xsl:value-of select="$level_total - 1"/>
3663
+ </xsl:when>
3664
+ <xsl:when test="ancestor::*[local-name() = 'bibliography']">
3665
+ <xsl:value-of select="$level_total - 1"/>
3666
+ </xsl:when>
3667
+ <xsl:when test="parent::*[local-name() = 'annex']">
3668
+ <xsl:value-of select="$level_total - 1"/>
3669
+ </xsl:when>
3670
+ <xsl:when test="ancestor::*[local-name() = 'annex']">
3671
+ <xsl:value-of select="$level_total"/>
3672
+ </xsl:when>
3673
+ <xsl:when test="local-name() = 'annex'">1</xsl:when>
3674
+ <xsl:when test="local-name(ancestor::*[1]) = 'annex'">1</xsl:when>
3675
+ <xsl:otherwise>
3676
+ <xsl:value-of select="$level_total - 1"/>
3677
+ </xsl:otherwise>
3678
+ </xsl:choose>
3679
+ </xsl:variable>
3680
+ <xsl:value-of select="$level"/>
3681
+ </xsl:otherwise>
3682
+ </xsl:choose>
3683
+ </xsl:template><xsl:template name="split">
3684
+ <xsl:param name="pText" select="."/>
3685
+ <xsl:param name="sep" select="','"/>
3686
+ <xsl:if test="string-length($pText) &gt;0">
3687
+ <item>
3688
+ <xsl:value-of select="normalize-space(substring-before(concat($pText, ','), $sep))"/>
3689
+ </item>
3690
+ <xsl:call-template name="split">
3691
+ <xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
3692
+ <xsl:with-param name="sep" select="$sep"/>
3693
+ </xsl:call-template>
3694
+ </xsl:if>
3695
+ </xsl:template><xsl:template name="getDocumentId">
3696
+ <xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
3697
+ </xsl:template><xsl:template name="namespaceCheck">
3698
+ <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
3699
+ <xsl:variable name="XSLNS">
3700
+
3701
+
3702
+
3703
+
3704
+
3705
+
3706
+
3707
+
3708
+
3709
+
3710
+
3711
+
3712
+ <xsl:value-of select="document('')//*/namespace::gb"/>
3713
+
3714
+ </xsl:variable>
3715
+ <xsl:if test="$documentNS != $XSLNS">
3716
+ <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
3717
+ </xsl:if>
3718
+ </xsl:template><xsl:template name="getLanguage">
3719
+ <xsl:param name="lang"/>
3720
+ <xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
3721
+ <xsl:choose>
3722
+ <xsl:when test="$language = 'en'">English</xsl:when>
3723
+ <xsl:when test="$language = 'fr'">French</xsl:when>
3724
+ <xsl:when test="$language = 'de'">Deutsch</xsl:when>
3725
+ <xsl:when test="$language = 'cn'">Chinese</xsl:when>
3726
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
3727
+ </xsl:choose>
3728
+ </xsl:template><xsl:template name="setId">
3729
+ <xsl:attribute name="id">
3730
+ <xsl:choose>
3731
+ <xsl:when test="@id">
3732
+ <xsl:value-of select="@id"/>
3733
+ </xsl:when>
3734
+ <xsl:otherwise>
3735
+ <xsl:value-of select="generate-id()"/>
3736
+ </xsl:otherwise>
3737
+ </xsl:choose>
3738
+ </xsl:attribute>
3739
+ </xsl:template></xsl:stylesheet>