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,194 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
+ <!--
4
+ Presupposes isodoc.rnc, is included in it
5
+ include "isodoc.rnc" { }
6
+ -->
7
+ <define name="requirement">
8
+ <element name="requirement">
9
+ <ref name="RequirementType"/>
10
+ </element>
11
+ </define>
12
+ <define name="recommendation">
13
+ <element name="recommendation">
14
+ <ref name="RequirementType"/>
15
+ </element>
16
+ </define>
17
+ <define name="permission">
18
+ <element name="permission">
19
+ <ref name="RequirementType"/>
20
+ </element>
21
+ </define>
22
+ <define name="RequirementType">
23
+ <optional>
24
+ <attribute name="obligation">
25
+ <ref name="ObligationType"/>
26
+ </attribute>
27
+ </optional>
28
+ <optional>
29
+ <attribute name="unnumbered">
30
+ <data type="boolean"/>
31
+ </attribute>
32
+ </optional>
33
+ <optional>
34
+ <attribute name="number"/>
35
+ </optional>
36
+ <optional>
37
+ <attribute name="subsequence"/>
38
+ </optional>
39
+ <optional>
40
+ <attribute name="keep-with-next">
41
+ <data type="boolean"/>
42
+ </attribute>
43
+ </optional>
44
+ <optional>
45
+ <attribute name="keep-lines-together">
46
+ <data type="boolean"/>
47
+ </attribute>
48
+ </optional>
49
+ <attribute name="id">
50
+ <data type="ID"/>
51
+ </attribute>
52
+ <optional>
53
+ <attribute name="filename"/>
54
+ </optional>
55
+ <optional>
56
+ <attribute name="model"/>
57
+ </optional>
58
+ <optional>
59
+ <attribute name="type"/>
60
+ </optional>
61
+ <optional>
62
+ <ref name="reqtitle"/>
63
+ </optional>
64
+ <optional>
65
+ <ref name="label"/>
66
+ </optional>
67
+ <optional>
68
+ <ref name="subject"/>
69
+ </optional>
70
+ <zeroOrMore>
71
+ <ref name="reqinherit"/>
72
+ </zeroOrMore>
73
+ <zeroOrMore>
74
+ <ref name="classification"/>
75
+ </zeroOrMore>
76
+ <zeroOrMore>
77
+ <choice>
78
+ <ref name="measurementtarget"/>
79
+ <ref name="specification"/>
80
+ <ref name="verification"/>
81
+ <ref name="import"/>
82
+ <ref name="description"/>
83
+ </choice>
84
+ </zeroOrMore>
85
+ <optional>
86
+ <ref name="reqt_references"/>
87
+ </optional>
88
+ <zeroOrMore>
89
+ <choice>
90
+ <ref name="requirement"/>
91
+ <ref name="recommendation"/>
92
+ <ref name="permission"/>
93
+ </choice>
94
+ </zeroOrMore>
95
+ </define>
96
+ <define name="reqtitle">
97
+ <element name="title">
98
+ <ref name="FormattedString"/>
99
+ </element>
100
+ </define>
101
+ <define name="label">
102
+ <element name="label">
103
+ <text/>
104
+ </element>
105
+ </define>
106
+ <define name="subject">
107
+ <element name="subject">
108
+ <text/>
109
+ </element>
110
+ </define>
111
+ <define name="reqinherit">
112
+ <element name="inherit">
113
+ <text/>
114
+ </element>
115
+ </define>
116
+ <define name="measurementtarget">
117
+ <element name="measurement-target">
118
+ <ref name="RequirementSubpart"/>
119
+ </element>
120
+ </define>
121
+ <define name="specification">
122
+ <element name="specification">
123
+ <ref name="RequirementSubpart"/>
124
+ </element>
125
+ </define>
126
+ <define name="verification">
127
+ <element name="verification">
128
+ <ref name="RequirementSubpart"/>
129
+ </element>
130
+ </define>
131
+ <define name="import">
132
+ <element name="import">
133
+ <ref name="RequirementSubpart"/>
134
+ </element>
135
+ </define>
136
+ <define name="description">
137
+ <element name="description">
138
+ <ref name="RequirementSubpart"/>
139
+ </element>
140
+ </define>
141
+ <define name="reqt_references">
142
+ <element name="references">
143
+ <oneOrMore>
144
+ <ref name="bibitem"/>
145
+ </oneOrMore>
146
+ </element>
147
+ </define>
148
+ <define name="RequirementSubpart">
149
+ <optional>
150
+ <attribute name="type"/>
151
+ </optional>
152
+ <optional>
153
+ <attribute name="exclude">
154
+ <data type="boolean"/>
155
+ </attribute>
156
+ </optional>
157
+ <optional>
158
+ <attribute name="keep-with-next">
159
+ <data type="boolean"/>
160
+ </attribute>
161
+ </optional>
162
+ <optional>
163
+ <attribute name="keep-lines-together">
164
+ <data type="boolean"/>
165
+ </attribute>
166
+ </optional>
167
+ <oneOrMore>
168
+ <ref name="BasicBlock"/>
169
+ </oneOrMore>
170
+ </define>
171
+ <define name="ObligationType">
172
+ <choice>
173
+ <value>requirement</value>
174
+ <value>recommendation</value>
175
+ <value>permission</value>
176
+ </choice>
177
+ </define>
178
+ <define name="classification">
179
+ <element name="classification">
180
+ <ref name="classification_tag"/>
181
+ <ref name="classification_value"/>
182
+ </element>
183
+ </define>
184
+ <define name="classification_tag">
185
+ <element name="tag">
186
+ <text/>
187
+ </element>
188
+ </define>
189
+ <define name="classification_value">
190
+ <element name="value">
191
+ <text/>
192
+ </element>
193
+ </define>
194
+ </grammar>
@@ -0,0 +1,29 @@
1
+ module Asciidoctor
2
+ module CC
3
+ class Converter < Standoc::Converter
4
+ def content_validate(doc)
5
+ super
6
+ bibdata_validate(doc.root)
7
+ end
8
+
9
+ def bibdata_validate(doc)
10
+ doctype_validate(doc)
11
+ stage_validate(doc)
12
+ end
13
+
14
+ def doctype_validate(xmldoc)
15
+ doctype = xmldoc&.at("//bibdata/ext/doctype")&.text
16
+ %w(directive guide specification standard report administrative amendment
17
+ technical-corrigendum advisory).include?(doctype) or
18
+ @log.add("Document Attributes", nil, "#{doctype} is not a recognised document type")
19
+ end
20
+
21
+ def stage_validate(xmldoc)
22
+ stage = xmldoc&.at("//bibdata/status/stage")&.text
23
+ %w(proposal working-draft committee-draft draft-standard final-draft
24
+ published withdrawn).include?(stage) or
25
+ @log.add("Document Attributes", nil, "#{stage} is not a recognised status")
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,124 @@
1
+ require "nokogiri"
2
+
3
+ module Asciidoctor
4
+ module CC
5
+ class Converter < Standoc::Converter
6
+ def section_validate(doc)
7
+ advisory = doc.root.at("//bibdata/ext[doctype = 'advisory']")
8
+ symbols_validate(doc.root) unless advisory
9
+ sections_sequence_validate(doc.root) unless advisory
10
+ super
11
+ end
12
+
13
+ ONE_SYMBOLS_WARNING = "Only one Symbols and Abbreviated "\
14
+ "Terms section in the standard".freeze
15
+
16
+ NON_DL_SYMBOLS_WARNING = "Symbols and Abbreviated Terms can "\
17
+ "only contain a definition list".freeze
18
+
19
+ def symbols_validate(root)
20
+ f = root.xpath("//definitions")
21
+ f.empty? && return
22
+ (f.size == 1) || @log.add("Style", f.first, ONE_SYMBOLS_WARNING)
23
+ f.first.elements.each do |e|
24
+ unless e.name == "dl"
25
+ @log.add("Style", f.first, NON_DL_SYMBOLS_WARNING)
26
+ return
27
+ end
28
+ end
29
+ end
30
+
31
+ def seqcheck(names, msg, accepted)
32
+ n = names.shift
33
+ return [] if n.nil?
34
+ test = accepted.map { |a| n.at(a) }
35
+ if test.all? { |a| a.nil? }
36
+ @log.add("Style", nil, msg)
37
+ end
38
+ names
39
+ end
40
+
41
+ # spec of permissible section sequence
42
+ # we skip normative references, it goes to end of list
43
+ SEQ =
44
+ [
45
+ {
46
+ msg: "Initial section must be (content) Foreword",
47
+ val: ["./self::foreword"]
48
+ },
49
+ {
50
+ msg: "Prefatory material must be followed by (clause) Scope",
51
+ val: ["./self::introduction", "./self::clause[@type = 'scope']" ]
52
+ },
53
+ {
54
+ msg: "Prefatory material must be followed by (clause) Scope",
55
+ val: ["./self::clause[@type = 'scope']" ]
56
+ },
57
+ {
58
+ msg: "Normative References must be followed by "\
59
+ "Terms and Definitions",
60
+ val: ["./self::terms | .//terms"]
61
+ },
62
+ ].freeze
63
+
64
+ SECTIONS_XPATH =
65
+ "//foreword | //introduction | //sections/terms | .//annex | "\
66
+ "//sections/definitions | //sections/clause | //references[not(parent::clause)] | "\
67
+ "//clause[descendant::references][not(parent::clause)]".freeze
68
+
69
+ def sections_sequence_validate(root)
70
+ names = root.xpath(SECTIONS_XPATH)
71
+ names = seqcheck(names, SEQ[0][:msg], SEQ[0][:val])
72
+ n = names[0]
73
+ names = seqcheck(names, SEQ[1][:msg], SEQ[1][:val])
74
+ if n&.at("./self::introduction")
75
+ names = seqcheck(names, SEQ[2][:msg], SEQ[2][:val])
76
+ end
77
+ names = seqcheck(names, SEQ[3][:msg], SEQ[3][:val])
78
+ n = names.shift
79
+ if n&.at("./self::definitions")
80
+ n = names.shift
81
+ end
82
+ if n.nil? || n.name != "clause"
83
+ @log.add("Style", nil, "Document must contain at least one clause")
84
+ end
85
+ n&.at("./self::clause") ||
86
+ @log.add("Style", nil, "Document must contain clause after "\
87
+ "Terms and Definitions")
88
+ n&.at("./self::clause[@type = 'scope']") &&
89
+ @log.add("Style", nil, "Scope must occur before Terms and Definitions")
90
+ n = names.shift
91
+ while n&.name == "clause"
92
+ n&.at("./self::clause[@type = 'scope']")
93
+ @log.add("Style", nil, "Scope must occur before Terms and Definitions")
94
+ n = names.shift
95
+ end
96
+ unless %w(annex references).include? n&.name
97
+ @log.add("Style", nil, "Only annexes and references can follow clauses")
98
+ end
99
+ while n&.name == "annex"
100
+ n = names.shift
101
+ if n.nil?
102
+ @log.add("Style", nil, "Document must include (references) "\
103
+ "Normative References")
104
+ end
105
+ end
106
+ n&.at("./self::references[@normative = 'true']") ||
107
+ @log.add("Style", nil, "Document must include (references) "\
108
+ "Normative References")
109
+ n = names&.shift
110
+ n&.at("./self::references[@normative = 'false']") ||
111
+ @log.add("Style", nil, "Final section must be (references) Bibliography")
112
+ names.empty? ||
113
+ @log.add("Style", nil, "There are sections after the final Bibliography")
114
+ end
115
+
116
+ def style_warning(node, msg, text = nil)
117
+ return if @novalid
118
+ w = msg
119
+ w += ": #{text}" if text
120
+ @log.add("Style", node, w)
121
+ end
122
+ end
123
+ end
124
+ end
@@ -0,0 +1,21 @@
1
+ require "isodoc"
2
+
3
+ module IsoDoc
4
+ module CC
5
+ module BaseConvert
6
+ def cleanup(docxml)
7
+ super
8
+ term_cleanup(docxml)
9
+ end
10
+
11
+ def term_cleanup(docxml)
12
+ docxml.xpath("//p[@class = 'Terms']").each do |d|
13
+ h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]")
14
+ h2.add_child("&nbsp;")
15
+ h2.add_child(d.remove)
16
+ end
17
+ docxml
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,3371 @@
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:csd="https://www.metanorma.org/ns/csd" 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 version="1.0" 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
+ <xsl:variable name="pageWidth" select="'210mm'"/>
9
+ <xsl:variable name="pageHeight" select="'297mm'"/>
10
+
11
+
12
+
13
+ <xsl:variable name="debug">false</xsl:variable>
14
+
15
+ <xsl:variable name="copyright">
16
+ <xsl:text>© The Calendaring and Scheduling Consortium, Inc. </xsl:text>
17
+ <xsl:value-of select="/csd:csd-standard/csd:bibdata/csd:copyright/csd:from"/>
18
+ <xsl:text> – All rights reserved</xsl:text>
19
+ </xsl:variable>
20
+
21
+ <xsl:variable name="header">
22
+ <xsl:value-of select="/csd:csd-standard/csd:bibdata/csd:docidentifier[@type = 'csd']"/>
23
+ <xsl:text>:</xsl:text>
24
+ <xsl:value-of select="/csd:csd-standard/csd:bibdata/csd:copyright/csd:from"/>
25
+ </xsl:variable>
26
+
27
+ <xsl:variable name="contents">
28
+ <contents>
29
+ <xsl:apply-templates select="/csd:csd-standard/csd:preface/node()" mode="contents"/>
30
+
31
+ <xsl:apply-templates select="/csd:csd-standard/csd:sections/csd:clause[1]" mode="contents"/> <!-- [@id = '_scope'] -->
32
+
33
+ <!-- Normative references -->
34
+ <xsl:apply-templates select="/csd:csd-standard/csd:bibliography/csd:references[1]" mode="contents"/> <!-- [@id = '_normative_references'] -->
35
+
36
+ <xsl:apply-templates select="/csd:csd-standard/csd:sections/*[position() &gt; 1]" mode="contents"/> <!-- @id != '_scope' -->
37
+
38
+ <xsl:apply-templates select="/csd:csd-standard/csd:annex" mode="contents"/>
39
+
40
+ <!-- Bibliography -->
41
+ <xsl:apply-templates select="/csd:csd-standard/csd:bibliography/csd:references[position() &gt; 1]" mode="contents"/> <!-- @id = '_bibliography' -->
42
+
43
+ </contents>
44
+ </xsl:variable>
45
+
46
+ <xsl:variable name="lang">
47
+ <xsl:call-template name="getLang"/>
48
+ </xsl:variable>
49
+
50
+ <xsl:template match="/">
51
+ <xsl:call-template name="namespaceCheck"/>
52
+ <fo:root font-family="SourceSansPro, STIX2Math, HanSans" font-size="10.5pt" xml:lang="{$lang}">
53
+ <fo:layout-master-set>
54
+ <!-- Cover page -->
55
+ <fo:simple-page-master master-name="cover-page" page-width="{$pageWidth}" page-height="{$pageHeight}">
56
+ <fo:region-body margin-top="23.5mm" margin-bottom="10mm" margin-left="19mm" margin-right="19mm"/>
57
+ <fo:region-before region-name="cover-page-header" extent="23.5mm"/>
58
+ <fo:region-after extent="10mm"/>
59
+ <fo:region-start extent="19mm"/>
60
+ <fo:region-end extent="19mm"/>
61
+ </fo:simple-page-master>
62
+
63
+ <!-- Document pages -->
64
+
65
+ <!-- Preface odd pages -->
66
+ <fo:simple-page-master master-name="odd-preface" page-width="{$pageWidth}" page-height="{$pageHeight}">
67
+ <fo:region-body margin-top="17mm" margin-bottom="10mm" margin-left="19mm" margin-right="19mm"/>
68
+ <fo:region-before region-name="header-odd" extent="17mm"/>
69
+ <fo:region-after region-name="footer-odd" extent="10mm"/>
70
+ <fo:region-start region-name="left-region" extent="19mm"/>
71
+ <fo:region-end region-name="right-region" extent="19mm"/>
72
+ </fo:simple-page-master>
73
+ <!-- Preface even pages -->
74
+ <fo:simple-page-master master-name="even-preface" page-width="{$pageWidth}" page-height="{$pageHeight}">
75
+ <fo:region-body margin-top="17mm" margin-bottom="10mm" margin-left="19mm" margin-right="19mm"/>
76
+ <fo:region-before region-name="header-even" extent="17mm"/>
77
+ <fo:region-after region-name="footer-even" extent="10mm"/>
78
+ <fo:region-start region-name="left-region" extent="19mm"/>
79
+ <fo:region-end region-name="right-region" extent="19mm"/>
80
+ </fo:simple-page-master>
81
+ <fo:simple-page-master master-name="blankpage" page-width="{$pageWidth}" page-height="{$pageHeight}">
82
+ <fo:region-body margin-top="17mm" margin-bottom="10mm" margin-left="19mm" margin-right="19mm"/>
83
+ <fo:region-before region-name="header" extent="17mm"/>
84
+ <fo:region-after region-name="footer" extent="10mm"/>
85
+ <fo:region-start region-name="left" extent="19mm"/>
86
+ <fo:region-end region-name="right" extent="19mm"/>
87
+ </fo:simple-page-master>
88
+ <fo:page-sequence-master master-name="preface">
89
+ <fo:repeatable-page-master-alternatives>
90
+ <fo:conditional-page-master-reference master-reference="blankpage" blank-or-not-blank="blank"/>
91
+ <fo:conditional-page-master-reference odd-or-even="even" master-reference="even-preface"/>
92
+ <fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd-preface"/>
93
+ </fo:repeatable-page-master-alternatives>
94
+ </fo:page-sequence-master>
95
+
96
+ <!-- Document odd pages -->
97
+ <fo:simple-page-master master-name="odd" page-width="{$pageWidth}" page-height="{$pageHeight}">
98
+ <fo:region-body margin-top="20.2mm" margin-bottom="20.3mm" margin-left="19mm" margin-right="19mm"/>
99
+ <fo:region-before region-name="header-odd" extent="20.2mm"/>
100
+ <fo:region-after region-name="footer-odd" extent="20.3mm"/>
101
+ <fo:region-start region-name="left-region" extent="19mm"/>
102
+ <fo:region-end region-name="right-region" extent="19mm"/>
103
+ </fo:simple-page-master>
104
+ <!-- Preface even pages -->
105
+ <fo:simple-page-master master-name="even" page-width="{$pageWidth}" page-height="{$pageHeight}">
106
+ <fo:region-body margin-top="20.2mm" margin-bottom="20.3mm" margin-left="19mm" margin-right="19mm"/>
107
+ <fo:region-before region-name="header-even" extent="20.2mm"/>
108
+ <fo:region-after region-name="footer-even" extent="20.3mm"/>
109
+ <fo:region-start region-name="left-region" extent="19mm"/>
110
+ <fo:region-end region-name="right-region" extent="19mm"/>
111
+ </fo:simple-page-master>
112
+ <fo:page-sequence-master master-name="document">
113
+ <fo:repeatable-page-master-alternatives>
114
+ <fo:conditional-page-master-reference master-reference="blankpage" blank-or-not-blank="blank"/>
115
+ <fo:conditional-page-master-reference odd-or-even="even" master-reference="even"/>
116
+ <fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd"/>
117
+ </fo:repeatable-page-master-alternatives>
118
+ </fo:page-sequence-master>
119
+
120
+ </fo:layout-master-set>
121
+
122
+ <xsl:call-template name="addPDFUAmeta"/>
123
+
124
+
125
+ <!-- Cover Page -->
126
+ <fo:page-sequence master-reference="cover-page" force-page-count="no-force">
127
+ <fo:static-content flow-name="xsl-footnote-separator">
128
+ <fo:block>
129
+ <fo:leader leader-pattern="rule" leader-length="30%"/>
130
+ </fo:block>
131
+ </fo:static-content>
132
+ <fo:static-content flow-name="cover-page-header" font-size="10pt">
133
+ <fo:block-container height="23.5mm" display-align="before">
134
+ <fo:block padding-top="12.5mm">
135
+ <xsl:value-of select="$copyright"/>
136
+ </fo:block>
137
+ </fo:block-container>
138
+ </fo:static-content>
139
+
140
+ <fo:flow flow-name="xsl-region-body">
141
+
142
+ <fo:block text-align="right">
143
+ <!-- CC/FDS 18011:2018 -->
144
+ <fo:block font-size="14pt" font-weight="bold" margin-bottom="10pt">
145
+ <xsl:value-of select="/csd:csd-standard/csd:bibdata/csd:docidentifier[@type = 'csd']"/><xsl:text> </xsl:text>
146
+ </fo:block>
147
+ <fo:block margin-bottom="12pt">
148
+ <xsl:value-of select="/csd:csd-standard/csd:bibdata/csd:copyright/csd:owner/csd:organization/csd:name"/>
149
+ <xsl:text> TC </xsl:text>
150
+ <xsl:value-of select="/csd:csd-standard/csd:bibdata/csd:ext/csd:editorialgroup/csd:technical-committee"/>
151
+ <xsl:text> </xsl:text>
152
+ </fo:block>
153
+ </fo:block>
154
+ <fo:block font-size="24pt" font-weight="bold" text-align="center">
155
+ <xsl:value-of select="/csd:csd-standard/csd:bibdata/csd:title[@language = 'en']"/>
156
+ <xsl:value-of select="$linebreak"/>
157
+ </fo:block>
158
+ <fo:block> </fo:block>
159
+ <fo:block margin-bottom="12pt"> </fo:block>
160
+ <fo:block-container font-size="16pt" text-align="center" border="0.5pt solid black" margin-bottom="12pt" margin-left="-1mm" margin-right="-1mm">
161
+ <fo:block-container margin-left="0mm" margin-right="0mm">
162
+ <fo:block padding-top="1mm">
163
+ <xsl:call-template name="capitalizeWords">
164
+ <!-- ex: final-draft -->
165
+ <xsl:with-param name="str" select="/csd:csd-standard/csd:bibdata/csd:status/csd:stage"/>
166
+ </xsl:call-template>
167
+ <xsl:text> </xsl:text>
168
+ <xsl:call-template name="capitalizeWords">
169
+ <!-- ex: standard -->
170
+ <xsl:with-param name="str" select="/csd:csd-standard/csd:bibdata/csd:ext/csd:doctype"/>
171
+ </xsl:call-template>
172
+ </fo:block>
173
+ </fo:block-container>
174
+ </fo:block-container>
175
+ <fo:block margin-bottom="10pt"> </fo:block>
176
+ <fo:block-container font-size="10pt" border="0.5pt solid black" margin-bottom="12pt" margin-left="-1mm" margin-right="-1mm">
177
+ <fo:block-container margin-left="0mm" margin-right="0mm">
178
+ <fo:block text-align="center" font-weight="bold" padding-top="1mm" margin-bottom="6pt">Warning for drafts</fo:block>
179
+ <fo:block margin-left="2mm" margin-right="2mm">
180
+ <fo:block margin-bottom="6pt">This document is not a CalConnect Standard. It is distributed for review and comment, and is subject to change without notice and may not be referred to as a Standard. Recipients of this draft are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.</fo:block>
181
+ <fo:block margin-bottom="10pt">Recipients of this draft are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.</fo:block>
182
+ </fo:block>
183
+ </fo:block-container>
184
+ </fo:block-container>
185
+ <fo:block text-align="center">
186
+ <xsl:text>The Calendaring and Scheduling Consortium, Inc.  </xsl:text>
187
+ <xsl:value-of select="/csd:csd-standard/csd:bibdata/csd:copyright/csd:from"/>
188
+ </fo:block>
189
+ </fo:flow>
190
+ </fo:page-sequence>
191
+ <!-- End Cover Page -->
192
+
193
+
194
+ <!-- Copyright, Content, Foreword, etc. pages -->
195
+ <fo:page-sequence master-reference="preface" initial-page-number="2" format="i" force-page-count="end-on-even">
196
+ <fo:static-content flow-name="xsl-footnote-separator">
197
+ <fo:block>
198
+ <fo:leader leader-pattern="rule" leader-length="30%"/>
199
+ </fo:block>
200
+ </fo:static-content>
201
+ <xsl:call-template name="insertHeaderFooter"/>
202
+ <fo:flow flow-name="xsl-region-body">
203
+
204
+ <xsl:if test="$debug = 'true'">
205
+ <xsl:text disable-output-escaping="yes">&lt;!--</xsl:text>
206
+ DEBUG
207
+ contents=<xsl:copy-of select="xalan:nodeset($contents)"/>
208
+ <xsl:text disable-output-escaping="yes">--&gt;</xsl:text>
209
+ </xsl:if>
210
+
211
+ <fo:block margin-bottom="15pt"> </fo:block>
212
+ <fo:block margin-bottom="14pt">
213
+ <xsl:text>© </xsl:text>
214
+ <xsl:value-of select="/csd:csd-standard/csd:bibdata/csd:copyright/csd:from"/>
215
+ <xsl:text> </xsl:text>
216
+ <fo:inline>
217
+ <xsl:apply-templates select="/csd:csd-standard/csd:boilerplate/csd:feedback-statement/csd:clause/csd:p[@id = 'boilerplate-name']"/>
218
+ </fo:inline>
219
+ </fo:block>
220
+ <fo:block margin-bottom="12pt">
221
+ <xsl:apply-templates select="/csd:csd-standard/csd:boilerplate/csd:legal-statement"/>
222
+ </fo:block>
223
+ <fo:block margin-bottom="12pt">
224
+ <xsl:apply-templates select="/csd:csd-standard/csd:boilerplate/csd:feedback-statement/csd:clause/csd:p[@id = 'boilerplate-name']"/>
225
+ </fo:block>
226
+ <fo:block>
227
+ <xsl:apply-templates select="/csd:csd-standard/csd:boilerplate/csd:feedback-statement/csd:clause/csd:p[@id = 'boilerplate-address']"/>
228
+ </fo:block>
229
+
230
+ <fo:block break-after="page"/>
231
+
232
+ <fo:block-container font-weight="bold" line-height="115%">
233
+ <xsl:variable name="title-toc">
234
+ <xsl:call-template name="getTitle">
235
+ <xsl:with-param name="name" select="'title-toc'"/>
236
+ </xsl:call-template>
237
+ </xsl:variable>
238
+ <fo:block font-size="14pt" margin-bottom="15.5pt"><xsl:value-of select="$title-toc"/></fo:block>
239
+
240
+ <xsl:for-each select="xalan:nodeset($contents)//item"><!-- [not(@level = 2 and starts-with(@section, '0'))] skip clause from preface -->
241
+
242
+ <fo:block>
243
+ <xsl:if test="@level = 1">
244
+ <xsl:attribute name="margin-top">6pt</xsl:attribute>
245
+ </xsl:if>
246
+
247
+
248
+ <fo:list-block>
249
+ <xsl:attribute name="provisional-distance-between-starts">
250
+ <xsl:choose>
251
+ <!-- skip 0 section without subsections -->
252
+ <xsl:when test="@section != ''">8mm</xsl:when> <!-- and not(@display-section = 'false') -->
253
+ <xsl:otherwise>0mm</xsl:otherwise>
254
+ </xsl:choose>
255
+ </xsl:attribute>
256
+ <fo:list-item>
257
+ <fo:list-item-label end-indent="label-end()">
258
+ <fo:block>
259
+ <xsl:value-of select="@section"/>
260
+ </fo:block>
261
+ </fo:list-item-label>
262
+ <fo:list-item-body start-indent="body-start()">
263
+ <fo:block text-align-last="justify" margin-left="12mm" text-indent="-12mm">
264
+ <fo:basic-link internal-destination="{@id}" fox:alt-text="{text()}">
265
+ <!-- <xsl:if test="@section and @display-section = 'false'">
266
+ <xsl:value-of select="@section"/><xsl:text> </xsl:text>
267
+ </xsl:if>
268
+ <xsl:if test="@addon != ''">
269
+ <xsl:text>(</xsl:text><xsl:value-of select="@addon"/><xsl:text>)</xsl:text>
270
+ </xsl:if>
271
+ <xsl:text> </xsl:text><xsl:value-of select="text()"/> -->
272
+ <xsl:apply-templates/>
273
+ <fo:inline keep-together.within-line="always">
274
+ <fo:leader leader-pattern="dots"/>
275
+ <fo:inline><fo:page-number-citation ref-id="{@id}"/></fo:inline>
276
+ </fo:inline>
277
+ </fo:basic-link>
278
+ </fo:block>
279
+ </fo:list-item-body>
280
+ </fo:list-item>
281
+ </fo:list-block>
282
+ </fo:block>
283
+ </xsl:for-each>
284
+ </fo:block-container>
285
+
286
+ <!-- Foreword, Introduction -->
287
+ <xsl:apply-templates select="/csd:csd-standard/csd:preface/node()"/>
288
+
289
+ </fo:flow>
290
+ </fo:page-sequence>
291
+
292
+
293
+ <!-- Document Pages -->
294
+ <fo:page-sequence master-reference="document" initial-page-number="1" format="1" force-page-count="no-force">
295
+ <fo:static-content flow-name="xsl-footnote-separator">
296
+ <fo:block>
297
+ <fo:leader leader-pattern="rule" leader-length="30%"/>
298
+ </fo:block>
299
+ </fo:static-content>
300
+ <xsl:call-template name="insertHeaderFooter"/>
301
+ <fo:flow flow-name="xsl-region-body">
302
+ <fo:block font-size="16pt" font-weight="bold" margin-bottom="17pt">
303
+ <xsl:value-of select="/csd:csd-standard/csd:bibdata/csd:title[@language = 'en']"/>
304
+ </fo:block>
305
+ <fo:block>
306
+ <xsl:apply-templates select="/csd:csd-standard/csd:sections/csd:clause[1]"/> <!-- Scope -->
307
+
308
+ <!-- Normative references -->
309
+ <xsl:apply-templates select="/csd:csd-standard/csd:bibliography/csd:references[1]"/>
310
+
311
+ <!-- Other Sections -->
312
+ <xsl:apply-templates select="/csd:csd-standard/csd:sections/*[position() &gt; 1]"/>
313
+
314
+ <xsl:apply-templates select="/csd:csd-standard/csd:annex"/>
315
+
316
+ <!-- Bibliography -->
317
+ <xsl:apply-templates select="/csd:csd-standard/csd:bibliography/csd:references[position() &gt; 1]"/>
318
+
319
+ </fo:block>
320
+ </fo:flow>
321
+ </fo:page-sequence>
322
+
323
+ <!-- End Document Pages -->
324
+
325
+ </fo:root>
326
+ </xsl:template>
327
+
328
+ <xsl:template match="node()">
329
+ <xsl:apply-templates/>
330
+ </xsl:template>
331
+
332
+ <!-- ============================= -->
333
+ <!-- CONTENTS -->
334
+ <!-- ============================= -->
335
+ <xsl:template match="node()" mode="contents">
336
+ <xsl:apply-templates mode="contents"/>
337
+ </xsl:template>
338
+
339
+ <!-- element with title -->
340
+ <xsl:template match="*[csd:title]" mode="contents">
341
+ <xsl:variable name="level">
342
+ <xsl:call-template name="getLevel">
343
+ <xsl:with-param name="depth" select="csd:title/@depth"/>
344
+ </xsl:call-template>
345
+ </xsl:variable>
346
+
347
+ <xsl:variable name="display">
348
+ <xsl:choose>
349
+ <xsl:when test="ancestor-or-self::csd:bibitem">false</xsl:when>
350
+ <xsl:when test="ancestor-or-self::csd:term">false</xsl:when>
351
+ <xsl:when test="$level &gt; 2">false</xsl:when>
352
+ <xsl:otherwise>true</xsl:otherwise>
353
+ </xsl:choose>
354
+ </xsl:variable>
355
+
356
+ <xsl:if test="$display = 'true'">
357
+
358
+ <xsl:variable name="section">
359
+ <xsl:call-template name="getSection"/>
360
+ </xsl:variable>
361
+
362
+ <xsl:variable name="title">
363
+ <xsl:call-template name="getName"/>
364
+ </xsl:variable>
365
+
366
+ <item id="{@id}" level="{$level}" section="{$section}">
367
+ <xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
368
+ </item>
369
+ <xsl:apply-templates mode="contents"/>
370
+ </xsl:if>
371
+
372
+ </xsl:template>
373
+
374
+
375
+ <!-- ============================= -->
376
+ <!-- ============================= -->
377
+
378
+
379
+ <xsl:template match="csd:license-statement//csd:title">
380
+ <fo:block text-align="center" font-weight="bold">
381
+ <xsl:apply-templates/>
382
+ </fo:block>
383
+ </xsl:template>
384
+
385
+ <xsl:template match="csd:license-statement//csd:p">
386
+ <fo:block margin-left="1.5mm" margin-right="1.5mm">
387
+ <xsl:if test="following-sibling::csd:p">
388
+ <xsl:attribute name="margin-top">6pt</xsl:attribute>
389
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
390
+ </xsl:if>
391
+ <xsl:apply-templates/>
392
+ </fo:block>
393
+ </xsl:template>
394
+
395
+ <!-- <fo:block margin-bottom="12pt">© ISO 2019, Published in Switzerland.</fo:block>
396
+ <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>
397
+ <fo:block font-size="10pt" text-indent="7.1mm">
398
+ <fo:block>ISO copyright office</fo:block>
399
+ <fo:block>Ch. de Blandonnet 8 • CP 401</fo:block>
400
+ <fo:block>CH-1214 Vernier, Geneva, Switzerland</fo:block>
401
+ <fo:block>Tel. + 41 22 749 01 11</fo:block>
402
+ <fo:block>Fax + 41 22 749 09 47</fo:block>
403
+ <fo:block>copyright@iso.org</fo:block>
404
+ <fo:block>www.iso.org</fo:block>
405
+ </fo:block> -->
406
+
407
+ <xsl:template match="csd:copyright-statement//csd:p">
408
+ <fo:block>
409
+ <xsl:if test="preceding-sibling::csd:p">
410
+ <!-- <xsl:attribute name="font-size">10pt</xsl:attribute> -->
411
+ </xsl:if>
412
+ <xsl:if test="following-sibling::csd:p">
413
+ <!-- <xsl:attribute name="margin-bottom">12pt</xsl:attribute> -->
414
+ <xsl:attribute name="margin-bottom">3pt</xsl:attribute>
415
+ </xsl:if>
416
+ <xsl:if test="not(following-sibling::csd:p)">
417
+ <!-- <xsl:attribute name="margin-left">7.1mm</xsl:attribute> -->
418
+ <xsl:attribute name="margin-left">4mm</xsl:attribute>
419
+ </xsl:if>
420
+ <xsl:apply-templates/>
421
+ </fo:block>
422
+ </xsl:template>
423
+
424
+
425
+
426
+ <xsl:template match="csd:title">
427
+
428
+ <xsl:variable name="level">
429
+ <xsl:call-template name="getLevel"/>
430
+ </xsl:variable>
431
+
432
+ <xsl:variable name="font-size">
433
+ <xsl:choose>
434
+ <xsl:when test="ancestor::csd:preface">13pt</xsl:when>
435
+ <xsl:when test="$level = 1">13pt</xsl:when>
436
+ <xsl:when test="$level = 2">12pt</xsl:when>
437
+ <xsl:when test="$level &gt;= 3">11pt</xsl:when>
438
+ <xsl:otherwise>16pt</xsl:otherwise>
439
+ </xsl:choose>
440
+ </xsl:variable>
441
+
442
+ <xsl:variable name="element-name">
443
+ <xsl:choose>
444
+ <xsl:when test="../@inline-header = 'true'">fo:inline</xsl:when>
445
+ <xsl:otherwise>fo:block</xsl:otherwise>
446
+ </xsl:choose>
447
+ </xsl:variable>
448
+
449
+ <xsl:variable name="color" select="'rgb(14, 26, 133)'"/>
450
+
451
+ <xsl:element name="{$element-name}">
452
+ <xsl:attribute name="font-size"><xsl:value-of select="$font-size"/></xsl:attribute>
453
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
454
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
455
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
456
+ <xsl:attribute name="color"><xsl:value-of select="$color"/></xsl:attribute>
457
+ <xsl:if test="ancestor::csd:sections">
458
+ <xsl:attribute name="margin-top">13.5pt</xsl:attribute>
459
+ </xsl:if>
460
+ <xsl:apply-templates/>
461
+ </xsl:element>
462
+ </xsl:template>
463
+
464
+
465
+ <xsl:template match="csd:p">
466
+ <xsl:param name="inline" select="'false'"/>
467
+ <xsl:variable name="previous-element" select="local-name(preceding-sibling::*[1])"/>
468
+ <xsl:variable name="element-name">
469
+ <xsl:choose>
470
+ <xsl:when test="$inline = 'true'">fo:inline</xsl:when>
471
+ <xsl:when test="../@inline-header = 'true' and $previous-element = 'title'">fo:inline</xsl:when> <!-- first paragraph after inline title -->
472
+ <xsl:when test="local-name(..) = 'admonition'">fo:inline</xsl:when>
473
+ <xsl:when test="@id = 'boilerplate-name'">fo:inline</xsl:when>
474
+ <xsl:otherwise>fo:block</xsl:otherwise>
475
+ </xsl:choose>
476
+ </xsl:variable>
477
+ <xsl:element name="{$element-name}">
478
+ <xsl:attribute name="text-align">
479
+ <xsl:choose>
480
+ <!-- <xsl:when test="ancestor::csd:preface">justify</xsl:when> -->
481
+ <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
482
+ <xsl:otherwise>left</xsl:otherwise><!-- justify -->
483
+ </xsl:choose>
484
+ </xsl:attribute>
485
+ <xsl:attribute name="margin-bottom">
486
+ <xsl:choose>
487
+ <xsl:when test="ancestor::csd:li">0pt</xsl:when>
488
+ <xsl:otherwise>12pt</xsl:otherwise>
489
+ </xsl:choose>
490
+ </xsl:attribute>
491
+ <xsl:attribute name="line-height">115%</xsl:attribute>
492
+ <xsl:apply-templates/>
493
+ </xsl:element>
494
+ <xsl:if test="$element-name = 'fo:inline' and not($inline = 'true') and not(local-name(..) = 'admonition')">
495
+ <fo:block margin-bottom="12pt">
496
+ <xsl:if test="ancestor::csd:annex">
497
+ <xsl:attribute name="margin-bottom">0</xsl:attribute>
498
+ </xsl:if>
499
+ <xsl:value-of select="$linebreak"/>
500
+ </fo:block>
501
+ </xsl:if>
502
+ <xsl:if test="$inline = 'true'">
503
+ <fo:block> </fo:block>
504
+ </xsl:if>
505
+ </xsl:template>
506
+
507
+ <!--
508
+ <fn reference="1">
509
+ <p id="_8e5cf917-f75a-4a49-b0aa-1714cb6cf954">Formerly denoted as 15 % (m/m).</p>
510
+ </fn>
511
+ -->
512
+ <xsl:template match="csd:p/csd:fn">
513
+ <fo:footnote>
514
+ <xsl:variable name="number">
515
+ <xsl:number level="any" count="csd:p/csd:fn"/>
516
+ </xsl:variable>
517
+ <fo:inline font-size="65%" keep-with-previous.within-line="always" vertical-align="super">
518
+ <fo:basic-link internal-destination="footnote_{@reference}" fox:alt-text="footnote {@reference}">
519
+ <!-- <xsl:value-of select="@reference"/> -->
520
+ <xsl:value-of select="$number + count(//csd:bibitem/csd:note)"/><!-- <xsl:text>)</xsl:text> -->
521
+ </fo:basic-link>
522
+ </fo:inline>
523
+ <fo:footnote-body>
524
+ <fo:block font-size="10pt" margin-bottom="12pt">
525
+ <fo:inline id="footnote_{@reference}" keep-with-next.within-line="always" font-size="60%" vertical-align="super"> <!-- baseline-shift="30%" padding-right="3mm" font-size="60%" alignment-baseline="hanging" -->
526
+ <xsl:value-of select="$number + count(//csd:bibitem/csd:note)"/><!-- <xsl:text>)</xsl:text> -->
527
+ </fo:inline>
528
+ <xsl:for-each select="csd:p">
529
+ <xsl:apply-templates/>
530
+ </xsl:for-each>
531
+ </fo:block>
532
+ </fo:footnote-body>
533
+ </fo:footnote>
534
+ </xsl:template>
535
+
536
+ <xsl:template match="csd:p/csd:fn/csd:p">
537
+ <xsl:apply-templates/>
538
+ </xsl:template>
539
+
540
+
541
+ <xsl:template match="csd:bibitem">
542
+ <fo:block id="{@id}" margin-bottom="6pt"> <!-- 12 pt -->
543
+ <xsl:if test=".//csd:fn">
544
+ <xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
545
+ </xsl:if>
546
+ <!-- csd:docidentifier -->
547
+ <xsl:if test="csd:docidentifier">
548
+ <xsl:choose>
549
+ <xsl:when test="csd:docidentifier/@type = 'metanorma'"/>
550
+ <xsl:otherwise>
551
+ <xsl:value-of select="csd:docidentifier"/>
552
+ </xsl:otherwise>
553
+ </xsl:choose>
554
+ </xsl:if>
555
+ <xsl:apply-templates select="csd:note"/>
556
+ <xsl:if test="csd:docidentifier">, </xsl:if>
557
+ <fo:inline font-style="italic">
558
+ <xsl:choose>
559
+ <xsl:when test="csd:title[@type = 'main' and @language = 'en']">
560
+ <xsl:value-of select="csd:title[@type = 'main' and @language = 'en']"/>
561
+ </xsl:when>
562
+ <xsl:otherwise>
563
+ <xsl:value-of select="csd:title"/>
564
+ </xsl:otherwise>
565
+ </xsl:choose>
566
+ </fo:inline>
567
+ </fo:block>
568
+ </xsl:template>
569
+
570
+
571
+ <xsl:template match="csd:bibitem/csd:note" priority="2">
572
+ <fo:footnote>
573
+ <xsl:variable name="number">
574
+ <xsl:choose>
575
+ <xsl:when test="ancestor::csd:references[preceding-sibling::csd:references]">
576
+ <xsl:number level="any" count="csd:references[preceding-sibling::csd:references]//csd:bibitem/csd:note"/>
577
+ </xsl:when>
578
+ <xsl:otherwise>
579
+ <xsl:number level="any" count="csd:bibitem/csd:note"/>
580
+ </xsl:otherwise>
581
+ </xsl:choose>
582
+ </xsl:variable>
583
+ <fo:inline font-size="65%" keep-with-previous.within-line="always" vertical-align="super"> <!-- 60% baseline-shift="35%" -->
584
+ <fo:basic-link internal-destination="{generate-id()}" fox:alt-text="footnote {$number}">
585
+ <xsl:value-of select="$number"/><!-- <xsl:text>)</xsl:text> -->
586
+ </fo:basic-link>
587
+ </fo:inline>
588
+ <fo:footnote-body>
589
+ <fo:block font-size="10pt" margin-bottom="12pt" start-indent="0pt">
590
+ <fo:inline id="{generate-id()}" keep-with-next.within-line="always" font-size="60%" vertical-align="super"><!-- baseline-shift="30%" padding-right="9mm" alignment-baseline="hanging" -->
591
+ <xsl:value-of select="$number"/><!-- <xsl:text>)</xsl:text> -->
592
+ </fo:inline>
593
+ <xsl:apply-templates/>
594
+ </fo:block>
595
+ </fo:footnote-body>
596
+ </fo:footnote>
597
+ </xsl:template>
598
+
599
+
600
+
601
+ <xsl:template match="csd:ul | csd:ol">
602
+ <fo:list-block provisional-distance-between-starts="6.5mm" margin-bottom="12pt">
603
+ <xsl:if test="ancestor::csd:ol">
604
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
605
+ </xsl:if>
606
+ <xsl:apply-templates/>
607
+ </fo:list-block>
608
+ </xsl:template>
609
+
610
+ <xsl:template match="csd:li">
611
+ <fo:list-item>
612
+ <fo:list-item-label end-indent="label-end()">
613
+ <fo:block>
614
+ <xsl:choose>
615
+ <xsl:when test="local-name(..) = 'ul'">—</xsl:when> <!-- dash -->
616
+ <xsl:otherwise> <!-- for ordered lists -->
617
+ <xsl:choose>
618
+ <xsl:when test="../@type = 'arabic'">
619
+ <xsl:number format="a)"/>
620
+ </xsl:when>
621
+ <xsl:when test="../@type = 'alphabet'">
622
+ <xsl:number format="1)"/>
623
+ </xsl:when>
624
+ <xsl:otherwise>
625
+ <xsl:number format="1."/>
626
+ </xsl:otherwise>
627
+ </xsl:choose>
628
+ </xsl:otherwise>
629
+ </xsl:choose>
630
+ </fo:block>
631
+ </fo:list-item-label>
632
+ <fo:list-item-body start-indent="body-start()">
633
+ <fo:block>
634
+ <xsl:apply-templates/>
635
+ </fo:block>
636
+ </fo:list-item-body>
637
+ </fo:list-item>
638
+ </xsl:template>
639
+
640
+
641
+ <xsl:template match="csd:preferred">
642
+ <xsl:variable name="level">
643
+ <xsl:call-template name="getLevel"/>
644
+ </xsl:variable>
645
+ <xsl:variable name="font-size">
646
+ <xsl:choose>
647
+ <xsl:when test="$level &gt;= 3">11pt</xsl:when>
648
+ <xsl:otherwise>12pt</xsl:otherwise>
649
+ </xsl:choose>
650
+ </xsl:variable>
651
+ <fo:block font-size="{$font-size}" line-height="1.1">
652
+ <fo:block font-weight="bold" keep-with-next="always">
653
+ <xsl:apply-templates select="ancestor::csd:term/csd:name" mode="presentation"/>
654
+ </fo:block>
655
+ <fo:block font-weight="bold" keep-with-next="always">
656
+ <xsl:apply-templates/>
657
+ </fo:block>
658
+ </fo:block>
659
+ </xsl:template>
660
+
661
+
662
+
663
+
664
+ <!-- <xsl:template match="csd:references[@id = '_bibliography']"> -->
665
+ <xsl:template match="csd:references[position() &gt; 1]">
666
+ <fo:block break-after="page"/>
667
+ <fo:block id="{@id}">
668
+ <xsl:apply-templates/>
669
+ </fo:block>
670
+ </xsl:template>
671
+
672
+
673
+ <!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
674
+ <!-- <xsl:template match="csd:references[@id = '_bibliography']/csd:bibitem"> -->
675
+ <xsl:template match="csd:references[position() &gt; 1]/csd:bibitem">
676
+ <fo:list-block margin-bottom="12pt" provisional-distance-between-starts="12mm">
677
+ <fo:list-item>
678
+ <fo:list-item-label end-indent="label-end()">
679
+ <fo:block>
680
+ <fo:inline id="{@id}">
681
+ <xsl:number format="[1]"/>
682
+ </fo:inline>
683
+ </fo:block>
684
+ </fo:list-item-label>
685
+ <fo:list-item-body start-indent="body-start()">
686
+ <fo:block>
687
+ <xsl:if test="csd:docidentifier">
688
+ <xsl:choose>
689
+ <xsl:when test="csd:docidentifier/@type = 'metanorma'"/>
690
+ <xsl:otherwise><fo:inline><xsl:value-of select="csd:docidentifier"/><xsl:apply-templates select="csd:note"/>, </fo:inline></xsl:otherwise>
691
+ </xsl:choose>
692
+
693
+ </xsl:if>
694
+ <xsl:choose>
695
+ <xsl:when test="csd:title[@type = 'main' and @language = 'en']">
696
+ <xsl:apply-templates select="csd:title[@type = 'main' and @language = 'en']"/>
697
+ </xsl:when>
698
+ <xsl:otherwise>
699
+ <xsl:apply-templates select="csd:title"/>
700
+ </xsl:otherwise>
701
+ </xsl:choose>
702
+ <xsl:apply-templates select="csd:formattedref"/>
703
+ </fo:block>
704
+ </fo:list-item-body>
705
+ </fo:list-item>
706
+ </fo:list-block>
707
+ </xsl:template>
708
+
709
+ <!-- <xsl:template match="csd:references[@id = '_bibliography']/csd:bibitem" mode="contents"/> -->
710
+ <xsl:template match="csd:references[position() &gt; 1]/csd:bibitem" mode="contents"/>
711
+
712
+ <!-- <xsl:template match="csd:references[@id = '_bibliography']/csd:bibitem/csd:title"> -->
713
+ <xsl:template match="csd:references[position() &gt; 1]/csd:bibitem/csd:title">
714
+ <fo:inline font-style="italic">
715
+ <xsl:apply-templates/>
716
+ </fo:inline>
717
+ </xsl:template>
718
+
719
+
720
+ <xsl:template match="csd:xref" priority="2">
721
+ <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}">
722
+ <xsl:if test="not(starts-with(text(), 'Figure') or starts-with(text(), 'Table'))">
723
+ <xsl:attribute name="color">blue</xsl:attribute>
724
+ <xsl:attribute name="text-decoration">underline</xsl:attribute>
725
+ </xsl:if>
726
+ <xsl:apply-templates/>
727
+ </fo:basic-link>
728
+ </xsl:template>
729
+
730
+
731
+
732
+ <xsl:template match="csd:admonition">
733
+ <fo:block margin-bottom="12pt" font-weight="bold"> <!-- text-align="center" -->
734
+ <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(@type))"/>
735
+ <xsl:text> — </xsl:text>
736
+ <xsl:apply-templates/>
737
+ </fo:block>
738
+ </xsl:template>
739
+
740
+
741
+
742
+ <xsl:template match="csd:formula/csd:stem">
743
+ <fo:block margin-top="6pt" margin-bottom="12pt">
744
+ <fo:table table-layout="fixed" width="100%">
745
+ <fo:table-column column-width="95%"/>
746
+ <fo:table-column column-width="5%"/>
747
+ <fo:table-body>
748
+ <fo:table-row>
749
+ <fo:table-cell display-align="center">
750
+ <fo:block text-align="left" margin-left="5mm">
751
+ <xsl:apply-templates/>
752
+ </fo:block>
753
+ </fo:table-cell>
754
+ <fo:table-cell display-align="center">
755
+ <fo:block text-align="right">
756
+ <xsl:apply-templates select="../csd:name" mode="presentation"/>
757
+ </fo:block>
758
+ </fo:table-cell>
759
+ </fo:table-row>
760
+ </fo:table-body>
761
+ </fo:table>
762
+ </fo:block>
763
+ </xsl:template>
764
+
765
+
766
+
767
+ <xsl:template name="insertHeaderFooter">
768
+ <fo:static-content flow-name="header-even">
769
+ <fo:block-container height="17mm" display-align="before">
770
+ <fo:block padding-top="12.5mm">
771
+ <xsl:value-of select="$header"/>
772
+ </fo:block>
773
+ </fo:block-container>
774
+ </fo:static-content>
775
+ <fo:static-content flow-name="footer-even">
776
+ <fo:block-container font-size="10pt" height="100%" display-align="after">
777
+ <fo:table table-layout="fixed" width="100%">
778
+ <fo:table-column column-width="10%"/>
779
+ <fo:table-column column-width="90%"/>
780
+ <fo:table-body>
781
+ <fo:table-row>
782
+ <fo:table-cell>
783
+ <fo:block padding-bottom="5mm"><fo:page-number/></fo:block>
784
+ </fo:table-cell>
785
+ <fo:table-cell padding-right="2mm">
786
+ <fo:block padding-bottom="5mm" text-align="right"><xsl:value-of select="$copyright"/></fo:block>
787
+ </fo:table-cell>
788
+ </fo:table-row>
789
+ </fo:table-body>
790
+ </fo:table>
791
+ </fo:block-container>
792
+ </fo:static-content>
793
+ <fo:static-content flow-name="header-odd">
794
+ <fo:block-container height="17mm" display-align="before">
795
+ <fo:block text-align="right" padding-top="12.5mm">
796
+ <xsl:value-of select="$header"/>
797
+ </fo:block>
798
+ </fo:block-container>
799
+ </fo:static-content>
800
+ <fo:static-content flow-name="footer-odd">
801
+ <fo:block-container font-size="10pt" height="100%" display-align="after">
802
+ <fo:table table-layout="fixed" width="100%">
803
+ <fo:table-column column-width="90%"/>
804
+ <fo:table-column column-width="10%"/>
805
+ <fo:table-body>
806
+ <fo:table-row>
807
+ <fo:table-cell>
808
+ <fo:block padding-bottom="5mm"><xsl:value-of select="$copyright"/></fo:block>
809
+ </fo:table-cell>
810
+ <fo:table-cell padding-right="2mm">
811
+ <fo:block padding-bottom="5mm" text-align="right"><fo:page-number/></fo:block>
812
+ </fo:table-cell>
813
+ </fo:table-row>
814
+ </fo:table-body>
815
+ </fo:table>
816
+ </fo:block-container>
817
+ </fo:static-content>
818
+ </xsl:template>
819
+
820
+
821
+ <xsl:variable name="titles" select="xalan:nodeset($titles_)"/><xsl:variable name="titles_">
822
+
823
+ <title-annex lang="en">Annex </title-annex>
824
+ <title-annex lang="fr">Annexe </title-annex>
825
+
826
+ <title-annex lang="zh">Annex </title-annex>
827
+
828
+
829
+
830
+ <title-edition lang="en">
831
+
832
+ <xsl:text>Edition </xsl:text>
833
+
834
+
835
+ </title-edition>
836
+
837
+
838
+ <title-toc lang="en">
839
+
840
+ <xsl:text>Contents</xsl:text>
841
+
842
+
843
+
844
+ </title-toc>
845
+ <title-toc lang="fr">Sommaire</title-toc>
846
+
847
+ <title-toc lang="zh">Contents</title-toc>
848
+
849
+
850
+
851
+ <title-page lang="en">Page</title-page>
852
+ <title-page lang="fr">Page</title-page>
853
+
854
+ <title-key lang="en">Key</title-key>
855
+ <title-key lang="fr">Légende</title-key>
856
+
857
+ <title-where lang="en">where</title-where>
858
+ <title-where lang="fr">où</title-where>
859
+
860
+ <title-descriptors lang="en">Descriptors</title-descriptors>
861
+
862
+ <title-part lang="en">
863
+
864
+
865
+ </title-part>
866
+ <title-part lang="fr">
867
+
868
+
869
+ </title-part>
870
+ <title-part lang="zh">第 # 部分:</title-part>
871
+
872
+ <title-modified lang="en">modified</title-modified>
873
+ <title-modified lang="fr">modifiée</title-modified>
874
+
875
+ <title-modified lang="zh">modified</title-modified>
876
+
877
+
878
+
879
+ <title-source lang="en">SOURCE</title-source>
880
+
881
+ <title-keywords lang="en">Keywords</title-keywords>
882
+
883
+ <title-deprecated lang="en">DEPRECATED</title-deprecated>
884
+ <title-deprecated lang="fr">DEPRECATED</title-deprecated>
885
+
886
+ <title-list-tables lang="en">List of Tables</title-list-tables>
887
+
888
+ <title-list-figures lang="en">List of Figures</title-list-figures>
889
+
890
+ <title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
891
+
892
+ <title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
893
+
894
+ <title-abstract lang="en">Abstract</title-abstract>
895
+
896
+ <title-summary lang="en">Summary</title-summary>
897
+
898
+ <title-in lang="en">in </title-in>
899
+
900
+ <title-partly-supercedes lang="en">Partly Supercedes </title-partly-supercedes>
901
+ <title-partly-supercedes lang="zh">部分代替 </title-partly-supercedes>
902
+
903
+ <title-completion-date lang="en">Completion date for this manuscript</title-completion-date>
904
+ <title-completion-date lang="zh">本稿完成日期</title-completion-date>
905
+
906
+ <title-issuance-date lang="en">Issuance Date: #</title-issuance-date>
907
+ <title-issuance-date lang="zh"># 发布</title-issuance-date>
908
+
909
+ <title-implementation-date lang="en">Implementation Date: #</title-implementation-date>
910
+ <title-implementation-date lang="zh"># 实施</title-implementation-date>
911
+
912
+ <title-obligation-normative lang="en">normative</title-obligation-normative>
913
+ <title-obligation-normative lang="zh">规范性附录</title-obligation-normative>
914
+
915
+ <title-caution lang="en">CAUTION</title-caution>
916
+ <title-caution lang="zh">注意</title-caution>
917
+
918
+ <title-warning lang="en">WARNING</title-warning>
919
+ <title-warning lang="zh">警告</title-warning>
920
+
921
+ <title-amendment lang="en">AMENDMENT</title-amendment>
922
+ </xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
923
+ <xsl:param name="name"/>
924
+ <xsl:variable name="lang">
925
+ <xsl:call-template name="getLang"/>
926
+ </xsl:variable>
927
+ <xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $lang]"/>
928
+ <xsl:choose>
929
+ <xsl:when test="normalize-space($title_) != ''">
930
+ <xsl:value-of select="$title_"/>
931
+ </xsl:when>
932
+ <xsl:otherwise>
933
+ <xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
934
+ </xsl:otherwise>
935
+ </xsl:choose>
936
+ </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">
937
+
938
+ <xsl:attribute name="color">blue</xsl:attribute>
939
+ <xsl:attribute name="text-decoration">underline</xsl:attribute>
940
+
941
+
942
+ </xsl:attribute-set><xsl:attribute-set name="sourcecode-style">
943
+ <xsl:attribute name="white-space">pre</xsl:attribute>
944
+ <xsl:attribute name="wrap-option">wrap</xsl:attribute>
945
+
946
+
947
+
948
+ <xsl:attribute name="font-family">SourceCodePro</xsl:attribute>
949
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
950
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
951
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
952
+
953
+
954
+
955
+
956
+
957
+
958
+ </xsl:attribute-set><xsl:attribute-set name="permission-style">
959
+
960
+ </xsl:attribute-set><xsl:attribute-set name="permission-name-style">
961
+
962
+ </xsl:attribute-set><xsl:attribute-set name="permission-label-style">
963
+
964
+ </xsl:attribute-set><xsl:attribute-set name="requirement-style">
965
+
966
+ </xsl:attribute-set><xsl:attribute-set name="requirement-name-style">
967
+
968
+ </xsl:attribute-set><xsl:attribute-set name="requirement-label-style">
969
+
970
+ </xsl:attribute-set><xsl:attribute-set name="requirement-subject-style">
971
+ </xsl:attribute-set><xsl:attribute-set name="requirement-inherit-style">
972
+ </xsl:attribute-set><xsl:attribute-set name="recommendation-style">
973
+
974
+
975
+ </xsl:attribute-set><xsl:attribute-set name="recommendation-name-style">
976
+
977
+
978
+ </xsl:attribute-set><xsl:attribute-set name="recommendation-label-style">
979
+
980
+ </xsl:attribute-set><xsl:attribute-set name="termexample-style">
981
+
982
+
983
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
984
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
985
+
986
+
987
+
988
+
989
+
990
+
991
+ </xsl:attribute-set><xsl:attribute-set name="example-style">
992
+
993
+
994
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+ </xsl:attribute-set><xsl:attribute-set name="example-body-style">
1005
+
1006
+
1007
+ <xsl:attribute name="margin-left">12.5mm</xsl:attribute>
1008
+
1009
+ </xsl:attribute-set><xsl:attribute-set name="example-name-style">
1010
+
1011
+
1012
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1013
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
1014
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
1015
+
1016
+
1017
+
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+ </xsl:attribute-set><xsl:attribute-set name="example-p-style">
1030
+
1031
+
1032
+ <xsl:attribute name="margin-bottom">14pt</xsl:attribute>
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+ </xsl:attribute-set><xsl:attribute-set name="termexample-name-style">
1044
+
1045
+ <xsl:attribute name="padding-right">10mm</xsl:attribute>
1046
+
1047
+
1048
+
1049
+
1050
+ </xsl:attribute-set><xsl:attribute-set name="table-name-style">
1051
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
1052
+
1053
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
1054
+ <xsl:attribute name="text-align">center</xsl:attribute>
1055
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+ </xsl:attribute-set><xsl:attribute-set name="appendix-style">
1067
+
1068
+ <xsl:attribute name="font-size">12pt</xsl:attribute>
1069
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
1070
+ <xsl:attribute name="margin-top">12pt</xsl:attribute>
1071
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1072
+
1073
+
1074
+
1075
+ </xsl:attribute-set><xsl:attribute-set name="appendix-example-style">
1076
+
1077
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1078
+ <xsl:attribute name="margin-top">8pt</xsl:attribute>
1079
+ <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
1080
+
1081
+
1082
+
1083
+ </xsl:attribute-set><xsl:attribute-set name="xref-style">
1084
+
1085
+
1086
+ </xsl:attribute-set><xsl:attribute-set name="eref-style">
1087
+
1088
+
1089
+ <xsl:attribute name="color">blue</xsl:attribute>
1090
+ <xsl:attribute name="text-decoration">underline</xsl:attribute>
1091
+
1092
+
1093
+ </xsl:attribute-set><xsl:attribute-set name="note-style">
1094
+
1095
+
1096
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1097
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+ </xsl:attribute-set><xsl:attribute-set name="note-name-style">
1113
+
1114
+
1115
+ <xsl:attribute name="padding-right">6mm</xsl:attribute>
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+
1125
+ </xsl:attribute-set><xsl:attribute-set name="note-p-style">
1126
+
1127
+
1128
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1129
+
1130
+
1131
+
1132
+
1133
+
1134
+
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+
1141
+ </xsl:attribute-set><xsl:attribute-set name="termnote-style">
1142
+
1143
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1144
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+ </xsl:attribute-set><xsl:attribute-set name="quote-style">
1151
+
1152
+
1153
+ <xsl:attribute name="margin-top">12pt</xsl:attribute>
1154
+ <xsl:attribute name="margin-left">12mm</xsl:attribute>
1155
+ <xsl:attribute name="margin-right">12mm</xsl:attribute>
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+ </xsl:attribute-set><xsl:attribute-set name="quote-source-style">
1162
+
1163
+
1164
+ <xsl:attribute name="text-align">right</xsl:attribute>
1165
+
1166
+
1167
+ </xsl:attribute-set><xsl:attribute-set name="termsource-style">
1168
+
1169
+
1170
+ <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
1171
+ <xsl:attribute name="keep-with-previous">always</xsl:attribute>
1172
+
1173
+
1174
+
1175
+
1176
+ </xsl:attribute-set><xsl:attribute-set name="origin-style">
1177
+
1178
+
1179
+ </xsl:attribute-set><xsl:attribute-set name="term-style">
1180
+
1181
+ </xsl:attribute-set><xsl:attribute-set name="figure-name-style">
1182
+
1183
+
1184
+
1185
+
1186
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
1187
+ <xsl:attribute name="text-align">center</xsl:attribute>
1188
+ <xsl:attribute name="margin-top">12pt</xsl:attribute>
1189
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1190
+ <xsl:attribute name="keep-with-previous">always</xsl:attribute>
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+
1201
+
1202
+
1203
+
1204
+ </xsl:attribute-set><xsl:attribute-set name="formula-style">
1205
+
1206
+ </xsl:attribute-set><xsl:attribute-set name="image-style">
1207
+ <xsl:attribute name="text-align">center</xsl:attribute>
1208
+
1209
+
1210
+
1211
+
1212
+
1213
+ </xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
1214
+
1215
+ </xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
1216
+
1217
+ <xsl:attribute name="width">100%</xsl:attribute>
1218
+ <xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
1219
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+ </xsl:attribute-set><xsl:attribute-set name="tt-style">
1226
+
1227
+ <xsl:attribute name="font-family">SourceCodePro</xsl:attribute>
1228
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1229
+
1230
+
1231
+ </xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
1232
+ <xsl:attribute name="font-size">11pt</xsl:attribute>
1233
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
1234
+ <xsl:attribute name="text-align">center</xsl:attribute>
1235
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1236
+ </xsl:attribute-set><xsl:attribute-set name="domain-style">
1237
+
1238
+ </xsl:attribute-set><xsl:attribute-set name="admitted-style">
1239
+
1240
+
1241
+ </xsl:attribute-set><xsl:attribute-set name="deprecates-style">
1242
+
1243
+ </xsl:attribute-set><xsl:attribute-set name="definition-style">
1244
+
1245
+
1246
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1247
+
1248
+ </xsl:attribute-set><xsl:template match="text()">
1249
+ <xsl:value-of select="."/>
1250
+ </xsl:template><xsl:template match="*[local-name()='br']">
1251
+ <xsl:value-of select="$linebreak"/>
1252
+ </xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
1253
+ <!-- <xsl:call-template name="add-zero-spaces"/> -->
1254
+ <xsl:call-template name="add-zero-spaces-java"/>
1255
+ </xsl:template><xsl:template match="*[local-name()='table']">
1256
+
1257
+ <xsl:variable name="simple-table">
1258
+ <xsl:call-template name="getSimpleTable"/>
1259
+ </xsl:variable>
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
1266
+
1267
+
1268
+
1269
+ <xsl:call-template name="fn_name_display"/>
1270
+
1271
+
1272
+
1273
+ <xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
1274
+
1275
+ <!-- <xsl:variable name="cols-count">
1276
+ <xsl:choose>
1277
+ <xsl:when test="*[local-name()='thead']">
1278
+ <xsl:call-template name="calculate-columns-numbers">
1279
+ <xsl:with-param name="table-row" select="*[local-name()='thead']/*[local-name()='tr'][1]"/>
1280
+ </xsl:call-template>
1281
+ </xsl:when>
1282
+ <xsl:otherwise>
1283
+ <xsl:call-template name="calculate-columns-numbers">
1284
+ <xsl:with-param name="table-row" select="*[local-name()='tbody']/*[local-name()='tr'][1]"/>
1285
+ </xsl:call-template>
1286
+ </xsl:otherwise>
1287
+ </xsl:choose>
1288
+ </xsl:variable> -->
1289
+ <!-- cols-count=<xsl:copy-of select="$cols-count"/> -->
1290
+ <!-- cols-count2=<xsl:copy-of select="$cols-count2"/> -->
1291
+
1292
+
1293
+
1294
+ <xsl:variable name="colwidths">
1295
+ <xsl:call-template name="calculate-column-widths">
1296
+ <xsl:with-param name="cols-count" select="$cols-count"/>
1297
+ <xsl:with-param name="table" select="$simple-table"/>
1298
+ </xsl:call-template>
1299
+ </xsl:variable>
1300
+
1301
+ <!-- <xsl:variable name="colwidths2">
1302
+ <xsl:call-template name="calculate-column-widths">
1303
+ <xsl:with-param name="cols-count" select="$cols-count"/>
1304
+ </xsl:call-template>
1305
+ </xsl:variable> -->
1306
+
1307
+ <!-- cols-count=<xsl:copy-of select="$cols-count"/>
1308
+ colwidthsNew=<xsl:copy-of select="$colwidths"/>
1309
+ colwidthsOld=<xsl:copy-of select="$colwidths2"/>z -->
1310
+
1311
+ <xsl:variable name="margin-left">
1312
+ <xsl:choose>
1313
+ <xsl:when test="sum(xalan:nodeset($colwidths)//column) &gt; 75">15</xsl:when>
1314
+ <xsl:otherwise>0</xsl:otherwise>
1315
+ </xsl:choose>
1316
+ </xsl:variable>
1317
+
1318
+ <fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+ <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">
1328
+
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1338
+
1339
+
1340
+
1341
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
1342
+ <xsl:choose>
1343
+ <xsl:when test=". = 1 or . = 0">
1344
+ <fo:table-column column-width="proportional-column-width(2)"/>
1345
+ </xsl:when>
1346
+ <xsl:otherwise>
1347
+ <fo:table-column column-width="proportional-column-width({.})"/>
1348
+ </xsl:otherwise>
1349
+ </xsl:choose>
1350
+ </xsl:for-each>
1351
+
1352
+ <xsl:choose>
1353
+ <xsl:when test="not(*[local-name()='tbody']) and *[local-name()='thead']">
1354
+ <xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
1355
+ </xsl:when>
1356
+ <xsl:otherwise>
1357
+ <xsl:apply-templates/>
1358
+ </xsl:otherwise>
1359
+ </xsl:choose>
1360
+
1361
+ </fo:table>
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+ </fo:block-container>
1368
+ </xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
1369
+ <xsl:if test="normalize-space() != ''">
1370
+ <fo:block xsl:use-attribute-sets="table-name-style">
1371
+ <xsl:apply-templates/>
1372
+ </fo:block>
1373
+ </xsl:if>
1374
+ </xsl:template><xsl:template name="calculate-columns-numbers">
1375
+ <xsl:param name="table-row"/>
1376
+ <xsl:variable name="columns-count" select="count($table-row/*)"/>
1377
+ <xsl:variable name="sum-colspans" select="sum($table-row/*/@colspan)"/>
1378
+ <xsl:variable name="columns-with-colspan" select="count($table-row/*[@colspan])"/>
1379
+ <xsl:value-of select="$columns-count + $sum-colspans - $columns-with-colspan"/>
1380
+ </xsl:template><xsl:template name="calculate-column-widths">
1381
+ <xsl:param name="table"/>
1382
+ <xsl:param name="cols-count"/>
1383
+ <xsl:param name="curr-col" select="1"/>
1384
+ <xsl:param name="width" select="0"/>
1385
+
1386
+ <xsl:if test="$curr-col &lt;= $cols-count">
1387
+ <xsl:variable name="widths">
1388
+ <xsl:choose>
1389
+ <xsl:when test="not($table)"><!-- this branch is not using in production, for debug only -->
1390
+ <xsl:for-each select="*[local-name()='thead']//*[local-name()='tr']">
1391
+ <xsl:variable name="words">
1392
+ <xsl:call-template name="tokenize">
1393
+ <xsl:with-param name="text" select="translate(*[local-name()='th'][$curr-col],'- —:', ' ')"/>
1394
+ </xsl:call-template>
1395
+ </xsl:variable>
1396
+ <xsl:variable name="max_length">
1397
+ <xsl:call-template name="max_length">
1398
+ <xsl:with-param name="words" select="xalan:nodeset($words)"/>
1399
+ </xsl:call-template>
1400
+ </xsl:variable>
1401
+ <width>
1402
+ <xsl:value-of select="$max_length"/>
1403
+ </width>
1404
+ </xsl:for-each>
1405
+ <xsl:for-each select="*[local-name()='tbody']//*[local-name()='tr']">
1406
+ <xsl:variable name="words">
1407
+ <xsl:call-template name="tokenize">
1408
+ <xsl:with-param name="text" select="translate(*[local-name()='td'][$curr-col],'- —:', ' ')"/>
1409
+ </xsl:call-template>
1410
+ </xsl:variable>
1411
+ <xsl:variable name="max_length">
1412
+ <xsl:call-template name="max_length">
1413
+ <xsl:with-param name="words" select="xalan:nodeset($words)"/>
1414
+ </xsl:call-template>
1415
+ </xsl:variable>
1416
+ <width>
1417
+ <xsl:value-of select="$max_length"/>
1418
+ </width>
1419
+
1420
+ </xsl:for-each>
1421
+ </xsl:when>
1422
+ <xsl:otherwise>
1423
+ <xsl:for-each select="xalan:nodeset($table)//tr">
1424
+ <xsl:variable name="td_text">
1425
+ <xsl:apply-templates select="td[$curr-col]" mode="td_text"/>
1426
+ </xsl:variable>
1427
+ <xsl:variable name="words">
1428
+ <xsl:variable name="string_with_added_zerospaces">
1429
+ <xsl:call-template name="add-zero-spaces-java">
1430
+ <xsl:with-param name="text" select="$td_text"/>
1431
+ </xsl:call-template>
1432
+ </xsl:variable>
1433
+ <xsl:call-template name="tokenize">
1434
+ <!-- <xsl:with-param name="text" select="translate(td[$curr-col],'- —:', ' ')"/> -->
1435
+ <!-- 2009 thinspace -->
1436
+ <!-- <xsl:with-param name="text" select="translate(normalize-space($td_text),'- —:', ' ')"/> -->
1437
+ <xsl:with-param name="text" select="normalize-space(translate($string_with_added_zerospaces, '​', ' '))"/>
1438
+ </xsl:call-template>
1439
+ </xsl:variable>
1440
+ <xsl:variable name="max_length">
1441
+ <xsl:call-template name="max_length">
1442
+ <xsl:with-param name="words" select="xalan:nodeset($words)"/>
1443
+ </xsl:call-template>
1444
+ </xsl:variable>
1445
+ <width>
1446
+ <xsl:variable name="divider">
1447
+ <xsl:choose>
1448
+ <xsl:when test="td[$curr-col]/@divide">
1449
+ <xsl:value-of select="td[$curr-col]/@divide"/>
1450
+ </xsl:when>
1451
+ <xsl:otherwise>1</xsl:otherwise>
1452
+ </xsl:choose>
1453
+ </xsl:variable>
1454
+ <xsl:value-of select="$max_length div $divider"/>
1455
+ </width>
1456
+
1457
+ </xsl:for-each>
1458
+
1459
+ </xsl:otherwise>
1460
+ </xsl:choose>
1461
+ </xsl:variable>
1462
+
1463
+
1464
+ <column>
1465
+ <xsl:for-each select="xalan:nodeset($widths)//width">
1466
+ <xsl:sort select="." data-type="number" order="descending"/>
1467
+ <xsl:if test="position()=1">
1468
+ <xsl:value-of select="."/>
1469
+ </xsl:if>
1470
+ </xsl:for-each>
1471
+ </column>
1472
+ <xsl:call-template name="calculate-column-widths">
1473
+ <xsl:with-param name="cols-count" select="$cols-count"/>
1474
+ <xsl:with-param name="curr-col" select="$curr-col +1"/>
1475
+ <xsl:with-param name="table" select="$table"/>
1476
+ </xsl:call-template>
1477
+ </xsl:if>
1478
+ </xsl:template><xsl:template match="text()" mode="td_text">
1479
+ <xsl:variable name="zero-space">​</xsl:variable>
1480
+ <xsl:value-of select="translate(., $zero-space, ' ')"/><xsl:text> </xsl:text>
1481
+ </xsl:template><xsl:template match="*[local-name()='termsource']" mode="td_text">
1482
+ <xsl:value-of select="*[local-name()='origin']/@citeas"/>
1483
+ </xsl:template><xsl:template match="*[local-name()='link']" mode="td_text">
1484
+ <xsl:value-of select="@target"/>
1485
+ </xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
1486
+ <xsl:param name="cols-count"/>
1487
+ <!-- font-weight="bold" -->
1488
+ <fo:table-header>
1489
+
1490
+ <xsl:apply-templates/>
1491
+ </fo:table-header>
1492
+ </xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
1493
+ <fo:table-body>
1494
+ <xsl:apply-templates/>
1495
+ </fo:table-body>
1496
+ </xsl:template><xsl:template match="*[local-name()='tfoot']"/><xsl:template match="*[local-name()='tfoot']" mode="process">
1497
+ <xsl:apply-templates/>
1498
+ </xsl:template><xsl:template name="insertTableFooter">
1499
+ <xsl:param name="cols-count"/>
1500
+ <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
1501
+ <xsl:if test="../*[local-name()='tfoot'] or $isNoteOrFnExist = 'true'">
1502
+
1503
+ <fo:table-footer>
1504
+
1505
+ <xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
1506
+
1507
+ <!-- if there are note(s) or fn(s) then create footer row -->
1508
+ <xsl:if test="$isNoteOrFnExist = 'true'">
1509
+
1510
+
1511
+
1512
+ <fo:table-row>
1513
+ <fo:table-cell border="solid black 1pt" padding-left="1mm" padding-right="1mm" padding-top="1mm" number-columns-spanned="{$cols-count}">
1514
+
1515
+
1516
+
1517
+ <!-- fn will be processed inside 'note' processing -->
1518
+
1519
+
1520
+ <!-- except gb -->
1521
+
1522
+ <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
1523
+
1524
+
1525
+ <!-- horizontal row separator -->
1526
+
1527
+
1528
+ <!-- fn processing -->
1529
+ <xsl:call-template name="fn_display"/>
1530
+
1531
+ </fo:table-cell>
1532
+ </fo:table-row>
1533
+
1534
+ </xsl:if>
1535
+ </fo:table-footer>
1536
+
1537
+ </xsl:if>
1538
+ </xsl:template><xsl:template match="*[local-name()='tbody']">
1539
+
1540
+ <xsl:variable name="cols-count">
1541
+ <xsl:choose>
1542
+ <xsl:when test="../*[local-name()='thead']">
1543
+ <xsl:call-template name="calculate-columns-numbers">
1544
+ <xsl:with-param name="table-row" select="../*[local-name()='thead']/*[local-name()='tr'][1]"/>
1545
+ </xsl:call-template>
1546
+ </xsl:when>
1547
+ <xsl:otherwise>
1548
+ <xsl:call-template name="calculate-columns-numbers">
1549
+ <xsl:with-param name="table-row" select="./*[local-name()='tr'][1]"/>
1550
+ </xsl:call-template>
1551
+ </xsl:otherwise>
1552
+ </xsl:choose>
1553
+ </xsl:variable>
1554
+
1555
+ <xsl:apply-templates select="../*[local-name()='thead']" mode="process">
1556
+ <xsl:with-param name="cols-count" select="$cols-count"/>
1557
+ </xsl:apply-templates>
1558
+
1559
+ <xsl:call-template name="insertTableFooter">
1560
+ <xsl:with-param name="cols-count" select="$cols-count"/>
1561
+ </xsl:call-template>
1562
+
1563
+ <fo:table-body>
1564
+ <xsl:apply-templates/>
1565
+ <!-- <xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/> -->
1566
+
1567
+ </fo:table-body>
1568
+
1569
+ </xsl:template><xsl:template match="*[local-name()='tr']">
1570
+ <xsl:variable name="parent-name" select="local-name(..)"/>
1571
+ <!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
1572
+ <fo:table-row min-height="4mm">
1573
+ <xsl:if test="$parent-name = 'thead'">
1574
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
1575
+
1576
+
1577
+
1578
+
1579
+
1580
+ </xsl:if>
1581
+ <xsl:if test="$parent-name = 'tfoot'">
1582
+
1583
+
1584
+ </xsl:if>
1585
+
1586
+
1587
+ <xsl:apply-templates/>
1588
+ </fo:table-row>
1589
+ </xsl:template><xsl:template match="*[local-name()='th']">
1590
+ <fo:table-cell text-align="{@align}" font-weight="bold" border="solid black 1pt" padding-left="1mm" display-align="center">
1591
+
1592
+
1593
+
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+ <xsl:if test="@colspan">
1600
+ <xsl:attribute name="number-columns-spanned">
1601
+ <xsl:value-of select="@colspan"/>
1602
+ </xsl:attribute>
1603
+ </xsl:if>
1604
+ <xsl:if test="@rowspan">
1605
+ <xsl:attribute name="number-rows-spanned">
1606
+ <xsl:value-of select="@rowspan"/>
1607
+ </xsl:attribute>
1608
+ </xsl:if>
1609
+ <fo:block>
1610
+ <xsl:apply-templates/>
1611
+ </fo:block>
1612
+ </fo:table-cell>
1613
+ </xsl:template><xsl:template match="*[local-name()='td']">
1614
+ <fo:table-cell text-align="{@align}" display-align="center" border="solid black 1pt" padding-left="1mm">
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+
1621
+
1622
+
1623
+
1624
+ <xsl:if test="@colspan">
1625
+ <xsl:attribute name="number-columns-spanned">
1626
+ <xsl:value-of select="@colspan"/>
1627
+ </xsl:attribute>
1628
+ </xsl:if>
1629
+ <xsl:if test="@rowspan">
1630
+ <xsl:attribute name="number-rows-spanned">
1631
+ <xsl:value-of select="@rowspan"/>
1632
+ </xsl:attribute>
1633
+ </xsl:if>
1634
+ <fo:block>
1635
+
1636
+ <xsl:apply-templates/>
1637
+ </fo:block>
1638
+ </fo:table-cell>
1639
+ </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2"/><xsl:template match="*[local-name()='table']/*[local-name()='note']" mode="process">
1640
+
1641
+
1642
+ <fo:block font-size="10pt" margin-bottom="12pt">
1643
+
1644
+
1645
+
1646
+
1647
+ <fo:inline padding-right="2mm">
1648
+
1649
+
1650
+
1651
+
1652
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
1653
+
1654
+ </fo:inline>
1655
+ <xsl:apply-templates mode="process"/>
1656
+ </fo:block>
1657
+
1658
+ </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">
1659
+ <xsl:apply-templates/>
1660
+ </xsl:template><xsl:template name="fn_display">
1661
+ <xsl:variable name="references">
1662
+ <xsl:for-each select="..//*[local-name()='fn'][local-name(..) != 'name']">
1663
+ <fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
1664
+
1665
+
1666
+ <xsl:apply-templates/>
1667
+ </fn>
1668
+ </xsl:for-each>
1669
+ </xsl:variable>
1670
+ <xsl:for-each select="xalan:nodeset($references)//fn">
1671
+ <xsl:variable name="reference" select="@reference"/>
1672
+ <xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
1673
+ <fo:block margin-bottom="12pt">
1674
+
1675
+
1676
+
1677
+
1678
+ <fo:inline font-size="80%" padding-right="5mm" id="{@id}">
1679
+
1680
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
1681
+
1682
+
1683
+
1684
+
1685
+
1686
+
1687
+ <xsl:value-of select="@reference"/>
1688
+
1689
+ </fo:inline>
1690
+ <fo:inline>
1691
+
1692
+ <xsl:apply-templates/>
1693
+ </fo:inline>
1694
+ </fo:block>
1695
+ </xsl:if>
1696
+ </xsl:for-each>
1697
+ </xsl:template><xsl:template name="fn_name_display">
1698
+ <!-- <xsl:variable name="references">
1699
+ <xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
1700
+ <fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
1701
+ <xsl:apply-templates />
1702
+ </fn>
1703
+ </xsl:for-each>
1704
+ </xsl:variable>
1705
+ $references=<xsl:copy-of select="$references"/> -->
1706
+ <xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
1707
+ <xsl:variable name="reference" select="@reference"/>
1708
+ <fo:block id="{@reference}_{ancestor::*[@id][1]/@id}"><xsl:value-of select="@reference"/></fo:block>
1709
+ <fo:block margin-bottom="12pt">
1710
+ <xsl:apply-templates/>
1711
+ </fo:block>
1712
+ </xsl:for-each>
1713
+ </xsl:template><xsl:template name="fn_display_figure">
1714
+ <xsl:variable name="key_iso">
1715
+ <!-- and (not(@class) or @class !='pseudocode') -->
1716
+ </xsl:variable>
1717
+ <xsl:variable name="references">
1718
+ <xsl:for-each select=".//*[local-name()='fn'][not(parent::*[local-name()='name'])]">
1719
+ <fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
1720
+ <xsl:apply-templates/>
1721
+ </fn>
1722
+ </xsl:for-each>
1723
+ </xsl:variable>
1724
+
1725
+ <!-- current hierarchy is 'figure' element -->
1726
+ <xsl:variable name="following_dl_colwidths">
1727
+ <xsl:if test="*[local-name() = 'dl']"><!-- if there is a 'dl', then set the same columns width as for 'dl' -->
1728
+ <xsl:variable name="html-table">
1729
+ <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
1730
+ <xsl:element name="{$ns}:table">
1731
+ <xsl:for-each select="*[local-name() = 'dl'][1]">
1732
+ <tbody>
1733
+ <xsl:apply-templates mode="dl"/>
1734
+ </tbody>
1735
+ </xsl:for-each>
1736
+ </xsl:element>
1737
+ </xsl:variable>
1738
+
1739
+ <xsl:call-template name="calculate-column-widths">
1740
+ <xsl:with-param name="cols-count" select="2"/>
1741
+ <xsl:with-param name="table" select="$html-table"/>
1742
+ </xsl:call-template>
1743
+
1744
+ </xsl:if>
1745
+ </xsl:variable>
1746
+
1747
+
1748
+ <xsl:variable name="maxlength_dt">
1749
+ <xsl:for-each select="*[local-name() = 'dl'][1]">
1750
+ <xsl:call-template name="getMaxLength_dt"/>
1751
+ </xsl:for-each>
1752
+ </xsl:variable>
1753
+
1754
+ <xsl:if test="xalan:nodeset($references)//fn">
1755
+ <fo:block>
1756
+ <fo:table width="95%" table-layout="fixed">
1757
+ <xsl:if test="normalize-space($key_iso) = 'true'">
1758
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1759
+
1760
+ </xsl:if>
1761
+ <xsl:choose>
1762
+ <!-- if there 'dl', then set same columns width -->
1763
+ <xsl:when test="xalan:nodeset($following_dl_colwidths)//column">
1764
+ <xsl:call-template name="setColumnWidth_dl">
1765
+ <xsl:with-param name="colwidths" select="$following_dl_colwidths"/>
1766
+ <xsl:with-param name="maxlength_dt" select="$maxlength_dt"/>
1767
+ </xsl:call-template>
1768
+ </xsl:when>
1769
+ <xsl:otherwise>
1770
+ <fo:table-column column-width="15%"/>
1771
+ <fo:table-column column-width="85%"/>
1772
+ </xsl:otherwise>
1773
+ </xsl:choose>
1774
+ <fo:table-body>
1775
+ <xsl:for-each select="xalan:nodeset($references)//fn">
1776
+ <xsl:variable name="reference" select="@reference"/>
1777
+ <xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
1778
+ <fo:table-row>
1779
+ <fo:table-cell>
1780
+ <fo:block>
1781
+ <fo:inline font-size="80%" padding-right="5mm" vertical-align="super" id="{@id}">
1782
+
1783
+ <xsl:value-of select="@reference"/>
1784
+ </fo:inline>
1785
+ </fo:block>
1786
+ </fo:table-cell>
1787
+ <fo:table-cell>
1788
+ <fo:block text-align="justify" margin-bottom="12pt">
1789
+
1790
+ <xsl:if test="normalize-space($key_iso) = 'true'">
1791
+ <xsl:attribute name="margin-bottom">0</xsl:attribute>
1792
+ </xsl:if>
1793
+
1794
+ <xsl:apply-templates/>
1795
+ </fo:block>
1796
+ </fo:table-cell>
1797
+ </fo:table-row>
1798
+ </xsl:if>
1799
+ </xsl:for-each>
1800
+ </fo:table-body>
1801
+ </fo:table>
1802
+ </fo:block>
1803
+ </xsl:if>
1804
+
1805
+ </xsl:template><xsl:template match="*[local-name()='fn']">
1806
+ <!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
1807
+ <fo:inline font-size="80%" keep-with-previous.within-line="always">
1808
+
1809
+
1810
+
1811
+
1812
+ <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
1813
+
1814
+ <xsl:value-of select="@reference"/>
1815
+ </fo:basic-link>
1816
+ </fo:inline>
1817
+ </xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
1818
+ <fo:inline>
1819
+ <xsl:apply-templates/>
1820
+ </fo:inline>
1821
+ </xsl:template><xsl:template match="*[local-name()='dl']">
1822
+ <xsl:variable name="parent" select="local-name(..)"/>
1823
+
1824
+ <xsl:variable name="key_iso">
1825
+ <!-- and (not(../@class) or ../@class !='pseudocode') -->
1826
+ </xsl:variable>
1827
+
1828
+ <xsl:choose>
1829
+ <xsl:when test="$parent = 'formula' and count(*[local-name()='dt']) = 1"> <!-- only one component -->
1830
+
1831
+
1832
+ <fo:block margin-bottom="12pt" text-align="left">
1833
+
1834
+ <xsl:variable name="title-where">
1835
+ <xsl:call-template name="getTitle">
1836
+ <xsl:with-param name="name" select="'title-where'"/>
1837
+ </xsl:call-template>
1838
+ </xsl:variable>
1839
+ <xsl:value-of select="$title-where"/><xsl:text> </xsl:text>
1840
+ <xsl:apply-templates select="*[local-name()='dt']/*"/>
1841
+ <xsl:text/>
1842
+ <xsl:apply-templates select="*[local-name()='dd']/*" mode="inline"/>
1843
+ </fo:block>
1844
+
1845
+ </xsl:when>
1846
+ <xsl:when test="$parent = 'formula'"> <!-- a few components -->
1847
+ <fo:block margin-bottom="12pt" text-align="left">
1848
+
1849
+
1850
+
1851
+
1852
+ <xsl:variable name="title-where">
1853
+ <xsl:call-template name="getTitle">
1854
+ <xsl:with-param name="name" select="'title-where'"/>
1855
+ </xsl:call-template>
1856
+ </xsl:variable>
1857
+ <xsl:value-of select="$title-where"/>
1858
+ </fo:block>
1859
+ </xsl:when>
1860
+ <xsl:when test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')">
1861
+ <fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">
1862
+
1863
+
1864
+
1865
+ <xsl:variable name="title-key">
1866
+ <xsl:call-template name="getTitle">
1867
+ <xsl:with-param name="name" select="'title-key'"/>
1868
+ </xsl:call-template>
1869
+ </xsl:variable>
1870
+ <xsl:value-of select="$title-key"/>
1871
+ </fo:block>
1872
+ </xsl:when>
1873
+ </xsl:choose>
1874
+
1875
+ <!-- a few components -->
1876
+ <xsl:if test="not($parent = 'formula' and count(*[local-name()='dt']) = 1)">
1877
+ <fo:block>
1878
+
1879
+
1880
+
1881
+
1882
+ <fo:block>
1883
+
1884
+
1885
+
1886
+
1887
+ <fo:table width="95%" table-layout="fixed">
1888
+
1889
+ <xsl:choose>
1890
+ <xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'">
1891
+ <!-- <xsl:attribute name="font-size">11pt</xsl:attribute> -->
1892
+ </xsl:when>
1893
+ <xsl:when test="normalize-space($key_iso) = 'true'">
1894
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1895
+
1896
+ </xsl:when>
1897
+ </xsl:choose>
1898
+ <!-- create virtual html table for dl/[dt and dd] -->
1899
+ <xsl:variable name="html-table">
1900
+ <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
1901
+ <xsl:element name="{$ns}:table">
1902
+ <tbody>
1903
+ <xsl:apply-templates mode="dl"/>
1904
+ </tbody>
1905
+ </xsl:element>
1906
+ </xsl:variable>
1907
+ <!-- html-table<xsl:copy-of select="$html-table"/> -->
1908
+ <xsl:variable name="colwidths">
1909
+ <xsl:call-template name="calculate-column-widths">
1910
+ <xsl:with-param name="cols-count" select="2"/>
1911
+ <xsl:with-param name="table" select="$html-table"/>
1912
+ </xsl:call-template>
1913
+ </xsl:variable>
1914
+ <!-- colwidths=<xsl:value-of select="$colwidths"/> -->
1915
+ <xsl:variable name="maxlength_dt">
1916
+ <xsl:call-template name="getMaxLength_dt"/>
1917
+ </xsl:variable>
1918
+ <xsl:call-template name="setColumnWidth_dl">
1919
+ <xsl:with-param name="colwidths" select="$colwidths"/>
1920
+ <xsl:with-param name="maxlength_dt" select="$maxlength_dt"/>
1921
+ </xsl:call-template>
1922
+ <fo:table-body>
1923
+ <xsl:apply-templates>
1924
+ <xsl:with-param name="key_iso" select="normalize-space($key_iso)"/>
1925
+ </xsl:apply-templates>
1926
+ </fo:table-body>
1927
+ </fo:table>
1928
+ </fo:block>
1929
+ </fo:block>
1930
+ </xsl:if>
1931
+ </xsl:template><xsl:template name="setColumnWidth_dl">
1932
+ <xsl:param name="colwidths"/>
1933
+ <xsl:param name="maxlength_dt"/>
1934
+ <xsl:choose>
1935
+ <xsl:when test="ancestor::*[local-name()='dl']"><!-- second level, i.e. inlined table -->
1936
+ <fo:table-column column-width="50%"/>
1937
+ <fo:table-column column-width="50%"/>
1938
+ </xsl:when>
1939
+ <xsl:otherwise>
1940
+ <xsl:choose>
1941
+ <xsl:when test="normalize-space($maxlength_dt) != '' and number($maxlength_dt) &lt;= 2"> <!-- if dt contains short text like t90, a, etc -->
1942
+ <fo:table-column column-width="5%"/>
1943
+ <fo:table-column column-width="95%"/>
1944
+ </xsl:when>
1945
+ <xsl:when test="normalize-space($maxlength_dt) != '' and number($maxlength_dt) &lt;= 5"> <!-- if dt contains short text like t90, a, etc -->
1946
+ <fo:table-column column-width="10%"/>
1947
+ <fo:table-column column-width="90%"/>
1948
+ </xsl:when>
1949
+ <!-- <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 1.7">
1950
+ <fo:table-column column-width="60%"/>
1951
+ <fo:table-column column-width="40%"/>
1952
+ </xsl:when> -->
1953
+ <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 1.3">
1954
+ <fo:table-column column-width="50%"/>
1955
+ <fo:table-column column-width="50%"/>
1956
+ </xsl:when>
1957
+ <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 0.5">
1958
+ <fo:table-column column-width="40%"/>
1959
+ <fo:table-column column-width="60%"/>
1960
+ </xsl:when>
1961
+ <xsl:otherwise>
1962
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
1963
+ <xsl:choose>
1964
+ <xsl:when test=". = 1 or . = 0">
1965
+ <fo:table-column column-width="proportional-column-width(2)"/>
1966
+ </xsl:when>
1967
+ <xsl:otherwise>
1968
+ <fo:table-column column-width="proportional-column-width({.})"/>
1969
+ </xsl:otherwise>
1970
+ </xsl:choose>
1971
+ </xsl:for-each>
1972
+ </xsl:otherwise>
1973
+ </xsl:choose>
1974
+ <!-- <fo:table-column column-width="15%"/>
1975
+ <fo:table-column column-width="85%"/> -->
1976
+ </xsl:otherwise>
1977
+ </xsl:choose>
1978
+ </xsl:template><xsl:template name="getMaxLength_dt">
1979
+ <xsl:for-each select="*[local-name()='dt']">
1980
+ <xsl:sort select="string-length(normalize-space(.))" data-type="number" order="descending"/>
1981
+ <xsl:if test="position() = 1">
1982
+ <xsl:value-of select="string-length(normalize-space(.))"/>
1983
+ </xsl:if>
1984
+ </xsl:for-each>
1985
+ </xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']" priority="2">
1986
+ <xsl:param name="key_iso"/>
1987
+
1988
+ <!-- <tr>
1989
+ <td>NOTE</td>
1990
+ <td>
1991
+ <xsl:apply-templates />
1992
+ </td>
1993
+ </tr>
1994
+ -->
1995
+ <fo:table-row>
1996
+ <fo:table-cell>
1997
+ <fo:block margin-top="6pt">
1998
+ <xsl:if test="normalize-space($key_iso) = 'true'">
1999
+ <xsl:attribute name="margin-top">0</xsl:attribute>
2000
+ </xsl:if>
2001
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
2002
+ </fo:block>
2003
+ </fo:table-cell>
2004
+ <fo:table-cell>
2005
+ <fo:block>
2006
+ <xsl:apply-templates/>
2007
+ </fo:block>
2008
+ </fo:table-cell>
2009
+ </fo:table-row>
2010
+ </xsl:template><xsl:template match="*[local-name()='dt']" mode="dl">
2011
+ <tr>
2012
+ <td>
2013
+ <xsl:apply-templates/>
2014
+ </td>
2015
+ <td>
2016
+
2017
+
2018
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
2019
+
2020
+ </td>
2021
+ </tr>
2022
+
2023
+ </xsl:template><xsl:template match="*[local-name()='dt']">
2024
+ <xsl:param name="key_iso"/>
2025
+
2026
+ <fo:table-row>
2027
+ <fo:table-cell>
2028
+
2029
+ <fo:block margin-top="6pt">
2030
+
2031
+
2032
+ <xsl:if test="normalize-space($key_iso) = 'true'">
2033
+ <xsl:attribute name="margin-top">0</xsl:attribute>
2034
+
2035
+ </xsl:if>
2036
+
2037
+
2038
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
2039
+
2040
+
2041
+
2042
+
2043
+ <xsl:apply-templates/>
2044
+ <!-- <xsl:if test="$namespace = 'gb'">
2045
+ <xsl:if test="ancestor::*[local-name()='formula']">
2046
+ <xsl:text>—</xsl:text>
2047
+ </xsl:if>
2048
+ </xsl:if> -->
2049
+ </fo:block>
2050
+ </fo:table-cell>
2051
+ <fo:table-cell>
2052
+ <fo:block>
2053
+
2054
+
2055
+
2056
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
2057
+
2058
+ </fo:block>
2059
+ </fo:table-cell>
2060
+ </fo:table-row>
2061
+
2062
+ </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
2063
+ <xsl:apply-templates/>
2064
+ </xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
2065
+ <xsl:apply-templates/>
2066
+ </xsl:template><xsl:template match="*[local-name()='dd']/*[local-name()='p']" mode="inline">
2067
+ <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
2068
+ </xsl:template><xsl:template match="*[local-name()='em']">
2069
+ <fo:inline font-style="italic">
2070
+ <xsl:apply-templates/>
2071
+ </fo:inline>
2072
+ </xsl:template><xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
2073
+ <fo:inline font-weight="bold">
2074
+ <xsl:apply-templates/>
2075
+ </fo:inline>
2076
+ </xsl:template><xsl:template match="*[local-name()='sup']">
2077
+ <fo:inline font-size="80%" vertical-align="super">
2078
+ <xsl:apply-templates/>
2079
+ </fo:inline>
2080
+ </xsl:template><xsl:template match="*[local-name()='sub']">
2081
+ <fo:inline font-size="80%" vertical-align="sub">
2082
+ <xsl:apply-templates/>
2083
+ </fo:inline>
2084
+ </xsl:template><xsl:template match="*[local-name()='tt']">
2085
+ <fo:inline xsl:use-attribute-sets="tt-style">
2086
+ <xsl:apply-templates/>
2087
+ </fo:inline>
2088
+ </xsl:template><xsl:template match="*[local-name()='del']">
2089
+ <fo:inline font-size="10pt" color="red" text-decoration="line-through">
2090
+ <xsl:apply-templates/>
2091
+ </fo:inline>
2092
+ </xsl:template><xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
2093
+ <xsl:variable name="text" select="normalize-space(.)"/>
2094
+ <fo:inline font-size="75%">
2095
+ <xsl:if test="string-length($text) &gt; 0">
2096
+ <xsl:call-template name="recursiveSmallCaps">
2097
+ <xsl:with-param name="text" select="$text"/>
2098
+ </xsl:call-template>
2099
+ </xsl:if>
2100
+ </fo:inline>
2101
+ </xsl:template><xsl:template name="recursiveSmallCaps">
2102
+ <xsl:param name="text"/>
2103
+ <xsl:variable name="char" select="substring($text,1,1)"/>
2104
+ <!-- <xsl:variable name="upperCase" select="translate($char, $lower, $upper)"/> -->
2105
+ <xsl:variable name="upperCase" select="java:toUpperCase(java:java.lang.String.new($char))"/>
2106
+ <xsl:choose>
2107
+ <xsl:when test="$char=$upperCase">
2108
+ <fo:inline font-size="{100 div 0.75}%">
2109
+ <xsl:value-of select="$upperCase"/>
2110
+ </fo:inline>
2111
+ </xsl:when>
2112
+ <xsl:otherwise>
2113
+ <xsl:value-of select="$upperCase"/>
2114
+ </xsl:otherwise>
2115
+ </xsl:choose>
2116
+ <xsl:if test="string-length($text) &gt; 1">
2117
+ <xsl:call-template name="recursiveSmallCaps">
2118
+ <xsl:with-param name="text" select="substring($text,2)"/>
2119
+ </xsl:call-template>
2120
+ </xsl:if>
2121
+ </xsl:template><xsl:template name="tokenize">
2122
+ <xsl:param name="text"/>
2123
+ <xsl:param name="separator" select="' '"/>
2124
+ <xsl:choose>
2125
+ <xsl:when test="not(contains($text, $separator))">
2126
+ <word>
2127
+ <xsl:variable name="str_no_en_chars" select="normalize-space(translate($text, $en_chars, ''))"/>
2128
+ <xsl:variable name="len_str_no_en_chars" select="string-length($str_no_en_chars)"/>
2129
+ <xsl:variable name="len_str_tmp" select="string-length(normalize-space($text))"/>
2130
+ <xsl:variable name="len_str">
2131
+ <xsl:choose>
2132
+ <xsl:when test="normalize-space(translate($text, $upper, '')) = ''"> <!-- english word in CAPITAL letters -->
2133
+ <xsl:value-of select="$len_str_tmp * 1.5"/>
2134
+ </xsl:when>
2135
+ <xsl:otherwise>
2136
+ <xsl:value-of select="$len_str_tmp"/>
2137
+ </xsl:otherwise>
2138
+ </xsl:choose>
2139
+ </xsl:variable>
2140
+
2141
+ <!-- <xsl:if test="$len_str_no_en_chars div $len_str &gt; 0.8">
2142
+ <xsl:message>
2143
+ div=<xsl:value-of select="$len_str_no_en_chars div $len_str"/>
2144
+ len_str=<xsl:value-of select="$len_str"/>
2145
+ len_str_no_en_chars=<xsl:value-of select="$len_str_no_en_chars"/>
2146
+ </xsl:message>
2147
+ </xsl:if> -->
2148
+ <!-- <len_str_no_en_chars><xsl:value-of select="$len_str_no_en_chars"/></len_str_no_en_chars>
2149
+ <len_str><xsl:value-of select="$len_str"/></len_str> -->
2150
+ <xsl:choose>
2151
+ <xsl:when test="$len_str_no_en_chars div $len_str &gt; 0.8"> <!-- means non-english string -->
2152
+ <xsl:value-of select="$len_str - $len_str_no_en_chars"/>
2153
+ </xsl:when>
2154
+ <xsl:otherwise>
2155
+ <xsl:value-of select="$len_str"/>
2156
+ </xsl:otherwise>
2157
+ </xsl:choose>
2158
+ </word>
2159
+ </xsl:when>
2160
+ <xsl:otherwise>
2161
+ <word>
2162
+ <xsl:value-of select="string-length(normalize-space(substring-before($text, $separator)))"/>
2163
+ </word>
2164
+ <xsl:call-template name="tokenize">
2165
+ <xsl:with-param name="text" select="substring-after($text, $separator)"/>
2166
+ </xsl:call-template>
2167
+ </xsl:otherwise>
2168
+ </xsl:choose>
2169
+ </xsl:template><xsl:template name="max_length">
2170
+ <xsl:param name="words"/>
2171
+ <xsl:for-each select="$words//word">
2172
+ <xsl:sort select="." data-type="number" order="descending"/>
2173
+ <xsl:if test="position()=1">
2174
+ <xsl:value-of select="."/>
2175
+ </xsl:if>
2176
+ </xsl:for-each>
2177
+ </xsl:template><xsl:template name="add-zero-spaces-java">
2178
+ <xsl:param name="text" select="."/>
2179
+ <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
2180
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| )','$1​')"/>
2181
+ </xsl:template><xsl:template name="add-zero-spaces">
2182
+ <xsl:param name="text" select="."/>
2183
+ <xsl:variable name="zero-space-after-chars">-</xsl:variable>
2184
+ <xsl:variable name="zero-space-after-dot">.</xsl:variable>
2185
+ <xsl:variable name="zero-space-after-colon">:</xsl:variable>
2186
+ <xsl:variable name="zero-space-after-equal">=</xsl:variable>
2187
+ <xsl:variable name="zero-space-after-underscore">_</xsl:variable>
2188
+ <xsl:variable name="zero-space">​</xsl:variable>
2189
+ <xsl:choose>
2190
+ <xsl:when test="contains($text, $zero-space-after-chars)">
2191
+ <xsl:value-of select="substring-before($text, $zero-space-after-chars)"/>
2192
+ <xsl:value-of select="$zero-space-after-chars"/>
2193
+ <xsl:value-of select="$zero-space"/>
2194
+ <xsl:call-template name="add-zero-spaces">
2195
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-chars)"/>
2196
+ </xsl:call-template>
2197
+ </xsl:when>
2198
+ <xsl:when test="contains($text, $zero-space-after-dot)">
2199
+ <xsl:value-of select="substring-before($text, $zero-space-after-dot)"/>
2200
+ <xsl:value-of select="$zero-space-after-dot"/>
2201
+ <xsl:value-of select="$zero-space"/>
2202
+ <xsl:call-template name="add-zero-spaces">
2203
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-dot)"/>
2204
+ </xsl:call-template>
2205
+ </xsl:when>
2206
+ <xsl:when test="contains($text, $zero-space-after-colon)">
2207
+ <xsl:value-of select="substring-before($text, $zero-space-after-colon)"/>
2208
+ <xsl:value-of select="$zero-space-after-colon"/>
2209
+ <xsl:value-of select="$zero-space"/>
2210
+ <xsl:call-template name="add-zero-spaces">
2211
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-colon)"/>
2212
+ </xsl:call-template>
2213
+ </xsl:when>
2214
+ <xsl:when test="contains($text, $zero-space-after-equal)">
2215
+ <xsl:value-of select="substring-before($text, $zero-space-after-equal)"/>
2216
+ <xsl:value-of select="$zero-space-after-equal"/>
2217
+ <xsl:value-of select="$zero-space"/>
2218
+ <xsl:call-template name="add-zero-spaces">
2219
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-equal)"/>
2220
+ </xsl:call-template>
2221
+ </xsl:when>
2222
+ <xsl:when test="contains($text, $zero-space-after-underscore)">
2223
+ <xsl:value-of select="substring-before($text, $zero-space-after-underscore)"/>
2224
+ <xsl:value-of select="$zero-space-after-underscore"/>
2225
+ <xsl:value-of select="$zero-space"/>
2226
+ <xsl:call-template name="add-zero-spaces">
2227
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-underscore)"/>
2228
+ </xsl:call-template>
2229
+ </xsl:when>
2230
+ <xsl:otherwise>
2231
+ <xsl:value-of select="$text"/>
2232
+ </xsl:otherwise>
2233
+ </xsl:choose>
2234
+ </xsl:template><xsl:template name="add-zero-spaces-equal">
2235
+ <xsl:param name="text" select="."/>
2236
+ <xsl:variable name="zero-space-after-equals">==========</xsl:variable>
2237
+ <xsl:variable name="zero-space-after-equal">=</xsl:variable>
2238
+ <xsl:variable name="zero-space">​</xsl:variable>
2239
+ <xsl:choose>
2240
+ <xsl:when test="contains($text, $zero-space-after-equals)">
2241
+ <xsl:value-of select="substring-before($text, $zero-space-after-equals)"/>
2242
+ <xsl:value-of select="$zero-space-after-equals"/>
2243
+ <xsl:value-of select="$zero-space"/>
2244
+ <xsl:call-template name="add-zero-spaces-equal">
2245
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-equals)"/>
2246
+ </xsl:call-template>
2247
+ </xsl:when>
2248
+ <xsl:when test="contains($text, $zero-space-after-equal)">
2249
+ <xsl:value-of select="substring-before($text, $zero-space-after-equal)"/>
2250
+ <xsl:value-of select="$zero-space-after-equal"/>
2251
+ <xsl:value-of select="$zero-space"/>
2252
+ <xsl:call-template name="add-zero-spaces-equal">
2253
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-equal)"/>
2254
+ </xsl:call-template>
2255
+ </xsl:when>
2256
+ <xsl:otherwise>
2257
+ <xsl:value-of select="$text"/>
2258
+ </xsl:otherwise>
2259
+ </xsl:choose>
2260
+ </xsl:template><xsl:template name="getSimpleTable">
2261
+ <xsl:variable name="simple-table">
2262
+
2263
+ <!-- Step 1. colspan processing -->
2264
+ <xsl:variable name="simple-table-colspan">
2265
+ <tbody>
2266
+ <xsl:apply-templates mode="simple-table-colspan"/>
2267
+ </tbody>
2268
+ </xsl:variable>
2269
+
2270
+ <!-- Step 2. rowspan processing -->
2271
+ <xsl:variable name="simple-table-rowspan">
2272
+ <xsl:apply-templates select="xalan:nodeset($simple-table-colspan)" mode="simple-table-rowspan"/>
2273
+ </xsl:variable>
2274
+
2275
+ <xsl:copy-of select="xalan:nodeset($simple-table-rowspan)"/>
2276
+
2277
+ <!-- <xsl:choose>
2278
+ <xsl:when test="current()//*[local-name()='th'][@colspan] or current()//*[local-name()='td'][@colspan] ">
2279
+
2280
+ </xsl:when>
2281
+ <xsl:otherwise>
2282
+ <xsl:copy-of select="current()"/>
2283
+ </xsl:otherwise>
2284
+ </xsl:choose> -->
2285
+ </xsl:variable>
2286
+ <xsl:copy-of select="$simple-table"/>
2287
+ </xsl:template><xsl:template match="*[local-name()='thead'] | *[local-name()='tbody']" mode="simple-table-colspan">
2288
+ <xsl:apply-templates mode="simple-table-colspan"/>
2289
+ </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">
2290
+ <xsl:choose>
2291
+ <xsl:when test="@colspan">
2292
+ <xsl:variable name="td">
2293
+ <xsl:element name="td">
2294
+ <xsl:attribute name="divide"><xsl:value-of select="@colspan"/></xsl:attribute>
2295
+ <xsl:apply-templates select="@*" mode="simple-table-colspan"/>
2296
+ <xsl:apply-templates mode="simple-table-colspan"/>
2297
+ </xsl:element>
2298
+ </xsl:variable>
2299
+ <xsl:call-template name="repeatNode">
2300
+ <xsl:with-param name="count" select="@colspan"/>
2301
+ <xsl:with-param name="node" select="$td"/>
2302
+ </xsl:call-template>
2303
+ </xsl:when>
2304
+ <xsl:otherwise>
2305
+ <xsl:element name="td">
2306
+ <xsl:apply-templates select="@*" mode="simple-table-colspan"/>
2307
+ <xsl:apply-templates mode="simple-table-colspan"/>
2308
+ </xsl:element>
2309
+ </xsl:otherwise>
2310
+ </xsl:choose>
2311
+ </xsl:template><xsl:template match="@colspan" mode="simple-table-colspan"/><xsl:template match="*[local-name()='tr']" mode="simple-table-colspan">
2312
+ <xsl:element name="tr">
2313
+ <xsl:apply-templates select="@*" mode="simple-table-colspan"/>
2314
+ <xsl:apply-templates mode="simple-table-colspan"/>
2315
+ </xsl:element>
2316
+ </xsl:template><xsl:template match="@*|node()" mode="simple-table-colspan">
2317
+ <xsl:copy>
2318
+ <xsl:apply-templates select="@*|node()" mode="simple-table-colspan"/>
2319
+ </xsl:copy>
2320
+ </xsl:template><xsl:template name="repeatNode">
2321
+ <xsl:param name="count"/>
2322
+ <xsl:param name="node"/>
2323
+
2324
+ <xsl:if test="$count &gt; 0">
2325
+ <xsl:call-template name="repeatNode">
2326
+ <xsl:with-param name="count" select="$count - 1"/>
2327
+ <xsl:with-param name="node" select="$node"/>
2328
+ </xsl:call-template>
2329
+ <xsl:copy-of select="$node"/>
2330
+ </xsl:if>
2331
+ </xsl:template><xsl:template match="@*|node()" mode="simple-table-rowspan">
2332
+ <xsl:copy>
2333
+ <xsl:apply-templates select="@*|node()" mode="simple-table-rowspan"/>
2334
+ </xsl:copy>
2335
+ </xsl:template><xsl:template match="tbody" mode="simple-table-rowspan">
2336
+ <xsl:copy>
2337
+ <xsl:copy-of select="tr[1]"/>
2338
+ <xsl:apply-templates select="tr[2]" mode="simple-table-rowspan">
2339
+ <xsl:with-param name="previousRow" select="tr[1]"/>
2340
+ </xsl:apply-templates>
2341
+ </xsl:copy>
2342
+ </xsl:template><xsl:template match="tr" mode="simple-table-rowspan">
2343
+ <xsl:param name="previousRow"/>
2344
+ <xsl:variable name="currentRow" select="."/>
2345
+
2346
+ <xsl:variable name="normalizedTDs">
2347
+ <xsl:for-each select="xalan:nodeset($previousRow)//td">
2348
+ <xsl:choose>
2349
+ <xsl:when test="@rowspan &gt; 1">
2350
+ <xsl:copy>
2351
+ <xsl:attribute name="rowspan">
2352
+ <xsl:value-of select="@rowspan - 1"/>
2353
+ </xsl:attribute>
2354
+ <xsl:copy-of select="@*[not(name() = 'rowspan')]"/>
2355
+ <xsl:copy-of select="node()"/>
2356
+ </xsl:copy>
2357
+ </xsl:when>
2358
+ <xsl:otherwise>
2359
+ <xsl:copy-of select="$currentRow/td[1 + count(current()/preceding-sibling::td[not(@rowspan) or (@rowspan = 1)])]"/>
2360
+ </xsl:otherwise>
2361
+ </xsl:choose>
2362
+ </xsl:for-each>
2363
+ </xsl:variable>
2364
+
2365
+ <xsl:variable name="newRow">
2366
+ <xsl:copy>
2367
+ <xsl:copy-of select="$currentRow/@*"/>
2368
+ <xsl:copy-of select="xalan:nodeset($normalizedTDs)"/>
2369
+ </xsl:copy>
2370
+ </xsl:variable>
2371
+ <xsl:copy-of select="$newRow"/>
2372
+
2373
+ <xsl:apply-templates select="following-sibling::tr[1]" mode="simple-table-rowspan">
2374
+ <xsl:with-param name="previousRow" select="$newRow"/>
2375
+ </xsl:apply-templates>
2376
+ </xsl:template><xsl:template name="getLang">
2377
+ <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
2378
+ <xsl:choose>
2379
+ <xsl:when test="$language = 'English'">en</xsl:when>
2380
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
2381
+ </xsl:choose>
2382
+ </xsl:template><xsl:template name="capitalizeWords">
2383
+ <xsl:param name="str"/>
2384
+ <xsl:variable name="str2" select="translate($str, '-', ' ')"/>
2385
+ <xsl:choose>
2386
+ <xsl:when test="contains($str2, ' ')">
2387
+ <xsl:variable name="substr" select="substring-before($str2, ' ')"/>
2388
+ <!-- <xsl:value-of select="translate(substring($substr, 1, 1), $lower, $upper)"/>
2389
+ <xsl:value-of select="substring($substr, 2)"/> -->
2390
+ <xsl:call-template name="capitalize">
2391
+ <xsl:with-param name="str" select="$substr"/>
2392
+ </xsl:call-template>
2393
+ <xsl:text> </xsl:text>
2394
+ <xsl:call-template name="capitalizeWords">
2395
+ <xsl:with-param name="str" select="substring-after($str2, ' ')"/>
2396
+ </xsl:call-template>
2397
+ </xsl:when>
2398
+ <xsl:otherwise>
2399
+ <!-- <xsl:value-of select="translate(substring($str2, 1, 1), $lower, $upper)"/>
2400
+ <xsl:value-of select="substring($str2, 2)"/> -->
2401
+ <xsl:call-template name="capitalize">
2402
+ <xsl:with-param name="str" select="$str2"/>
2403
+ </xsl:call-template>
2404
+ </xsl:otherwise>
2405
+ </xsl:choose>
2406
+ </xsl:template><xsl:template name="capitalize">
2407
+ <xsl:param name="str"/>
2408
+ <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring($str, 1, 1)))"/>
2409
+ <xsl:value-of select="substring($str, 2)"/>
2410
+ </xsl:template><xsl:template match="mathml:math">
2411
+ <fo:inline font-family="STIX2Math">
2412
+ <fo:instream-foreign-object fox:alt-text="Math">
2413
+ <xsl:copy-of select="."/>
2414
+ </fo:instream-foreign-object>
2415
+ </fo:inline>
2416
+ </xsl:template><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
2417
+ <xsl:variable name="target">
2418
+ <xsl:choose>
2419
+ <xsl:when test="starts-with(normalize-space(@target), 'mailto:')">
2420
+ <xsl:value-of select="normalize-space(substring-after(@target, 'mailto:'))"/>
2421
+ </xsl:when>
2422
+ <xsl:otherwise>
2423
+ <xsl:value-of select="normalize-space(@target)"/>
2424
+ </xsl:otherwise>
2425
+ </xsl:choose>
2426
+ </xsl:variable>
2427
+ <fo:inline xsl:use-attribute-sets="link-style">
2428
+ <xsl:choose>
2429
+ <xsl:when test="$target = ''">
2430
+ <xsl:apply-templates/>
2431
+ </xsl:when>
2432
+ <xsl:otherwise>
2433
+ <fo:basic-link external-destination="{@target}" fox:alt-text="{@target}">
2434
+ <xsl:choose>
2435
+ <xsl:when test="normalize-space(.) = ''">
2436
+ <xsl:value-of select="$target"/>
2437
+ </xsl:when>
2438
+ <xsl:otherwise>
2439
+ <xsl:apply-templates/>
2440
+ </xsl:otherwise>
2441
+ </xsl:choose>
2442
+ </fo:basic-link>
2443
+ </xsl:otherwise>
2444
+ </xsl:choose>
2445
+ </fo:inline>
2446
+ </xsl:template><xsl:template match="*[local-name()='bookmark']">
2447
+ <fo:inline id="{@id}"/>
2448
+ </xsl:template><xsl:template match="*[local-name()='appendix']">
2449
+ <fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
2450
+ <xsl:apply-templates select="*[local-name()='title']" mode="process"/>
2451
+ </fo:block>
2452
+ <xsl:apply-templates/>
2453
+ </xsl:template><xsl:template match="*[local-name()='appendix']/*[local-name()='title']"/><xsl:template match="*[local-name()='appendix']/*[local-name()='title']" mode="process">
2454
+ <fo:inline><xsl:apply-templates/></fo:inline>
2455
+ </xsl:template><xsl:template match="*[local-name()='appendix']//*[local-name()='example']" priority="2">
2456
+ <fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
2457
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
2458
+ </fo:block>
2459
+ <xsl:apply-templates/>
2460
+ </xsl:template><xsl:template match="*[local-name() = 'callout']">
2461
+ <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}">&lt;<xsl:apply-templates/>&gt;</fo:basic-link>
2462
+ </xsl:template><xsl:template match="*[local-name() = 'annotation']">
2463
+ <xsl:variable name="annotation-id" select="@id"/>
2464
+ <xsl:variable name="callout" select="//*[@target = $annotation-id]/text()"/>
2465
+ <fo:block id="{$annotation-id}" white-space="nowrap">
2466
+ <fo:inline>
2467
+ <xsl:apply-templates>
2468
+ <xsl:with-param name="callout" select="concat('&lt;', $callout, '&gt; ')"/>
2469
+ </xsl:apply-templates>
2470
+ </fo:inline>
2471
+ </fo:block>
2472
+ </xsl:template><xsl:template match="*[local-name() = 'annotation']/*[local-name() = 'p']">
2473
+ <xsl:param name="callout"/>
2474
+ <fo:inline id="{@id}">
2475
+ <!-- for first p in annotation, put <x> -->
2476
+ <xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
2477
+ <xsl:apply-templates/>
2478
+ </fo:inline>
2479
+ </xsl:template><xsl:template match="*[local-name() = 'modification']">
2480
+ <xsl:variable name="title-modified">
2481
+ <xsl:call-template name="getTitle">
2482
+ <xsl:with-param name="name" select="'title-modified'"/>
2483
+ </xsl:call-template>
2484
+ </xsl:variable>
2485
+ <xsl:choose>
2486
+ <xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:text>—</xsl:text></xsl:when>
2487
+ <xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:text> — </xsl:text></xsl:otherwise>
2488
+ </xsl:choose>
2489
+ <xsl:apply-templates/>
2490
+ </xsl:template><xsl:template match="*[local-name() = 'xref']">
2491
+ <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
2492
+
2493
+ <xsl:apply-templates/>
2494
+ </fo:basic-link>
2495
+ </xsl:template><xsl:template match="*[local-name() = 'formula']" name="formula">
2496
+ <fo:block id="{@id}" xsl:use-attribute-sets="formula-style">
2497
+ <xsl:apply-templates/>
2498
+ </fo:block>
2499
+ </xsl:template><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'dt']/*[local-name() = 'stem']">
2500
+ <fo:inline>
2501
+ <xsl:apply-templates/>
2502
+ </fo:inline>
2503
+ </xsl:template><xsl:template match="*[local-name() = 'admitted']/*[local-name() = 'stem']">
2504
+ <fo:inline>
2505
+ <xsl:apply-templates/>
2506
+ </fo:inline>
2507
+ </xsl:template><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']" mode="presentation">
2508
+ <xsl:if test="normalize-space() != ''">
2509
+ <xsl:text>(</xsl:text><xsl:apply-templates/><xsl:text>)</xsl:text>
2510
+ </xsl:if>
2511
+ </xsl:template><xsl:template match="*[local-name() = 'note']" name="note">
2512
+
2513
+ <fo:block-container id="{@id}" xsl:use-attribute-sets="note-style">
2514
+
2515
+
2516
+
2517
+
2518
+ <fo:block-container margin-left="0mm">
2519
+
2520
+
2521
+
2522
+
2523
+
2524
+
2525
+
2526
+
2527
+ <fo:block>
2528
+
2529
+
2530
+
2531
+
2532
+ <fo:inline xsl:use-attribute-sets="note-name-style">
2533
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
2534
+ </fo:inline>
2535
+ <xsl:apply-templates/>
2536
+ </fo:block>
2537
+
2538
+
2539
+ </fo:block-container>
2540
+ </fo:block-container>
2541
+
2542
+ </xsl:template><xsl:template match="*[local-name() = 'note']/*[local-name() = 'p']">
2543
+ <xsl:variable name="num"><xsl:number/></xsl:variable>
2544
+ <xsl:choose>
2545
+ <xsl:when test="$num = 1">
2546
+ <fo:inline xsl:use-attribute-sets="note-p-style">
2547
+ <xsl:apply-templates/>
2548
+ </fo:inline>
2549
+ </xsl:when>
2550
+ <xsl:otherwise>
2551
+ <fo:block xsl:use-attribute-sets="note-p-style">
2552
+ <xsl:apply-templates/>
2553
+ </fo:block>
2554
+ </xsl:otherwise>
2555
+ </xsl:choose>
2556
+ </xsl:template><xsl:template match="*[local-name() = 'termnote']">
2557
+ <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
2558
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
2559
+ <xsl:apply-templates/>
2560
+ </fo:block>
2561
+ </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">
2562
+ <xsl:param name="sfx"/>
2563
+ <xsl:variable name="suffix">
2564
+ <xsl:choose>
2565
+ <xsl:when test="$sfx != ''">
2566
+ <xsl:value-of select="$sfx"/>
2567
+ </xsl:when>
2568
+ <xsl:otherwise>
2569
+
2570
+
2571
+ </xsl:otherwise>
2572
+ </xsl:choose>
2573
+ </xsl:variable>
2574
+ <xsl:if test="normalize-space() != ''">
2575
+ <xsl:apply-templates/>
2576
+ <xsl:value-of select="$suffix"/>
2577
+ </xsl:if>
2578
+ </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'name']" mode="presentation">
2579
+ <xsl:param name="sfx"/>
2580
+ <xsl:variable name="suffix">
2581
+ <xsl:choose>
2582
+ <xsl:when test="$sfx != ''">
2583
+ <xsl:value-of select="$sfx"/>
2584
+ </xsl:when>
2585
+ <xsl:otherwise>
2586
+
2587
+
2588
+ </xsl:otherwise>
2589
+ </xsl:choose>
2590
+ </xsl:variable>
2591
+ <xsl:if test="normalize-space() != ''">
2592
+ <xsl:apply-templates/>
2593
+ <xsl:value-of select="$suffix"/>
2594
+ </xsl:if>
2595
+ </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
2596
+ <fo:inline><xsl:apply-templates/></fo:inline>
2597
+ </xsl:template><xsl:template match="*[local-name() = 'terms']">
2598
+ <fo:block id="{@id}">
2599
+ <xsl:apply-templates/>
2600
+ </fo:block>
2601
+ </xsl:template><xsl:template match="*[local-name() = 'term']">
2602
+ <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
2603
+
2604
+
2605
+
2606
+ <xsl:apply-templates/>
2607
+ </fo:block>
2608
+ </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
2609
+ <xsl:if test="normalize-space() != ''">
2610
+ <fo:inline>
2611
+ <xsl:apply-templates/>
2612
+ <!-- <xsl:if test="$namespace = 'gb' or $namespace = 'ogc'">
2613
+ <xsl:text>.</xsl:text>
2614
+ </xsl:if> -->
2615
+ </fo:inline>
2616
+ </xsl:if>
2617
+ </xsl:template><xsl:template match="*[local-name() = 'figure']">
2618
+ <fo:block-container id="{@id}">
2619
+ <fo:block>
2620
+ <xsl:apply-templates/>
2621
+ </fo:block>
2622
+ <xsl:call-template name="fn_display_figure"/>
2623
+ <xsl:for-each select="*[local-name() = 'note']">
2624
+ <xsl:call-template name="note"/>
2625
+ </xsl:for-each>
2626
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
2627
+ </fo:block-container>
2628
+ </xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
2629
+ <fo:block id="{@id}">
2630
+ <xsl:apply-templates/>
2631
+ </fo:block>
2632
+ </xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']//*[local-name() = 'p']">
2633
+ <fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
2634
+ <xsl:apply-templates/>
2635
+ </fo:block>
2636
+ </xsl:template><xsl:template match="*[local-name() = 'image']">
2637
+ <fo:block xsl:use-attribute-sets="image-style">
2638
+
2639
+
2640
+ <xsl:variable name="src">
2641
+ <xsl:choose>
2642
+ <xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
2643
+ <xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
2644
+ </xsl:when>
2645
+ <xsl:otherwise>
2646
+ <xsl:value-of select="@src"/>
2647
+ </xsl:otherwise>
2648
+ </xsl:choose>
2649
+ </xsl:variable>
2650
+
2651
+ <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
2652
+ </fo:block>
2653
+ </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">
2654
+ <xsl:apply-templates mode="contents"/>
2655
+ <xsl:text> </xsl:text>
2656
+ </xsl:template><xsl:template match="text()" mode="contents">
2657
+ <xsl:value-of select="."/>
2658
+ </xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'image']/*[local-name() = 'name']" mode="presentation">
2659
+ <xsl:if test="normalize-space() != ''">
2660
+ <fo:block xsl:use-attribute-sets="figure-name-style">
2661
+
2662
+ <xsl:apply-templates/>
2663
+ </fo:block>
2664
+ </xsl:if>
2665
+ </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">
2666
+ <xsl:apply-templates mode="contents_item"/>
2667
+ <!-- <xsl:text> </xsl:text> -->
2668
+ </xsl:template><xsl:template name="getSection">
2669
+ <xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
2670
+ </xsl:template><xsl:template name="getName">
2671
+ <xsl:choose>
2672
+ <xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
2673
+ <xsl:copy-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/following-sibling::node()"/>
2674
+ </xsl:when>
2675
+ <xsl:otherwise>
2676
+ <xsl:copy-of select="*[local-name() = 'title']/node()"/>
2677
+ </xsl:otherwise>
2678
+ </xsl:choose>
2679
+ </xsl:template><xsl:template name="insertTitleAsListItem">
2680
+ <xsl:param name="provisional-distance-between-starts" select="'9.5mm'"/>
2681
+ <xsl:variable name="section">
2682
+ <xsl:for-each select="..">
2683
+ <xsl:call-template name="getSection"/>
2684
+ </xsl:for-each>
2685
+ </xsl:variable>
2686
+ <fo:list-block provisional-distance-between-starts="{$provisional-distance-between-starts}">
2687
+ <fo:list-item>
2688
+ <fo:list-item-label end-indent="label-end()">
2689
+ <fo:block>
2690
+ <xsl:value-of select="$section"/>
2691
+ </fo:block>
2692
+ </fo:list-item-label>
2693
+ <fo:list-item-body start-indent="body-start()">
2694
+ <fo:block>
2695
+ <xsl:choose>
2696
+ <xsl:when test="*[local-name() = 'tab']">
2697
+ <xsl:apply-templates select="*[local-name() = 'tab'][1]/following-sibling::node()"/>
2698
+ </xsl:when>
2699
+ <xsl:otherwise>
2700
+ <xsl:apply-templates/>
2701
+ </xsl:otherwise>
2702
+ </xsl:choose>
2703
+ </fo:block>
2704
+ </fo:list-item-body>
2705
+ </fo:list-item>
2706
+ </fo:list-block>
2707
+ </xsl:template><xsl:template name="extractTitle">
2708
+ <xsl:choose>
2709
+ <xsl:when test="*[local-name() = 'tab']">
2710
+ <xsl:apply-templates select="*[local-name() = 'tab'][1]/following-sibling::node()"/>
2711
+ </xsl:when>
2712
+ <xsl:otherwise>
2713
+ <xsl:apply-templates/>
2714
+ </xsl:otherwise>
2715
+ </xsl:choose>
2716
+ </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">
2717
+ <xsl:text> </xsl:text>
2718
+ </xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
2719
+ <xsl:copy>
2720
+ <xsl:apply-templates mode="contents_item"/>
2721
+ </xsl:copy>
2722
+ </xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
2723
+ <xsl:text> </xsl:text>
2724
+ </xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
2725
+ <fo:block xsl:use-attribute-sets="sourcecode-style">
2726
+ <xsl:apply-templates/>
2727
+ </fo:block>
2728
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
2729
+ </xsl:template><xsl:template match="*[local-name()='sourcecode']/text()">
2730
+ <xsl:variable name="text">
2731
+ <xsl:call-template name="add-zero-spaces-equal"/>
2732
+ </xsl:variable>
2733
+ <xsl:call-template name="add-zero-spaces">
2734
+ <xsl:with-param name="text" select="$text"/>
2735
+ </xsl:call-template>
2736
+ </xsl:template><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']" mode="presentation">
2737
+ <xsl:if test="normalize-space() != ''">
2738
+ <fo:block xsl:use-attribute-sets="sourcecode-name-style">
2739
+
2740
+ <xsl:apply-templates/>
2741
+ </fo:block>
2742
+ </xsl:if>
2743
+ </xsl:template><xsl:template match="*[local-name() = 'permission']">
2744
+ <fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
2745
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
2746
+ <xsl:apply-templates/>
2747
+ </fo:block>
2748
+ </xsl:template><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']" mode="presentation">
2749
+ <xsl:if test="normalize-space() != ''">
2750
+ <fo:block xsl:use-attribute-sets="permission-name-style">
2751
+ <xsl:apply-templates/>
2752
+
2753
+ </fo:block>
2754
+ </xsl:if>
2755
+ </xsl:template><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'label']">
2756
+ <fo:block xsl:use-attribute-sets="permission-label-style">
2757
+ <xsl:apply-templates/>
2758
+ </fo:block>
2759
+ </xsl:template><xsl:template match="*[local-name() = 'requirement']">
2760
+ <fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
2761
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
2762
+ <xsl:apply-templates select="*[local-name()='label']" mode="presentation"/>
2763
+ <xsl:apply-templates select="@obligation" mode="presentation"/>
2764
+ <xsl:apply-templates select="*[local-name()='subject']" mode="presentation"/>
2765
+ <xsl:apply-templates/>
2766
+ </fo:block>
2767
+ </xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']" mode="presentation">
2768
+ <xsl:if test="normalize-space() != ''">
2769
+ <fo:block xsl:use-attribute-sets="requirement-name-style">
2770
+
2771
+ <xsl:apply-templates/>
2772
+
2773
+ </fo:block>
2774
+ </xsl:if>
2775
+ </xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'label']"/><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'label']" mode="presentation">
2776
+ <fo:block xsl:use-attribute-sets="requirement-label-style">
2777
+ <xsl:apply-templates/>
2778
+ </fo:block>
2779
+ </xsl:template><xsl:template match="*[local-name() = 'requirement']/@obligation" mode="presentation">
2780
+ <fo:block>
2781
+ <fo:inline padding-right="3mm">Obligation</fo:inline><xsl:value-of select="."/>
2782
+ </fo:block>
2783
+ </xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'subject']"/><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'subject']" mode="presentation">
2784
+ <fo:block xsl:use-attribute-sets="requirement-subject-style">
2785
+ <xsl:text>Target Type </xsl:text><xsl:apply-templates/>
2786
+ </fo:block>
2787
+ </xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'inherit']">
2788
+ <fo:block xsl:use-attribute-sets="requirement-inherit-style">
2789
+ <xsl:text>Dependency </xsl:text><xsl:apply-templates/>
2790
+ </fo:block>
2791
+ </xsl:template><xsl:template match="*[local-name() = 'recommendation']">
2792
+ <fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
2793
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
2794
+ <xsl:apply-templates/>
2795
+ </fo:block>
2796
+ </xsl:template><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']" mode="presentation">
2797
+ <xsl:if test="normalize-space() != ''">
2798
+ <fo:block xsl:use-attribute-sets="recommendation-name-style">
2799
+ <xsl:apply-templates/>
2800
+
2801
+ </fo:block>
2802
+ </xsl:if>
2803
+ </xsl:template><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'label']">
2804
+ <fo:block xsl:use-attribute-sets="recommendation-label-style">
2805
+ <xsl:apply-templates/>
2806
+ </fo:block>
2807
+ </xsl:template><xsl:template match="*[local-name() = 'termexample']">
2808
+ <fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
2809
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
2810
+ <xsl:apply-templates/>
2811
+ </fo:block>
2812
+ </xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'name']" mode="presentation">
2813
+ <xsl:if test="normalize-space() != ''">
2814
+ <fo:inline xsl:use-attribute-sets="termexample-name-style">
2815
+ <xsl:apply-templates/>
2816
+ </fo:inline>
2817
+ </xsl:if>
2818
+ </xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
2819
+ <fo:inline><xsl:apply-templates/></fo:inline>
2820
+ </xsl:template><xsl:template match="*[local-name() = 'example']">
2821
+ <fo:block id="{@id}" xsl:use-attribute-sets="example-style">
2822
+
2823
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
2824
+
2825
+ <xsl:variable name="element">
2826
+ block
2827
+
2828
+ </xsl:variable>
2829
+
2830
+ <xsl:choose>
2831
+ <xsl:when test="normalize-space($element) = 'block'">
2832
+ <fo:block xsl:use-attribute-sets="example-body-style">
2833
+ <xsl:apply-templates/>
2834
+ </fo:block>
2835
+ </xsl:when>
2836
+ <xsl:otherwise>
2837
+ <fo:inline>
2838
+ <xsl:apply-templates/>
2839
+ </fo:inline>
2840
+ </xsl:otherwise>
2841
+ </xsl:choose>
2842
+
2843
+ </fo:block>
2844
+ </xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'example']/*[local-name() = 'name']" mode="presentation">
2845
+
2846
+ <xsl:variable name="element">
2847
+ block
2848
+
2849
+ </xsl:variable>
2850
+ <xsl:choose>
2851
+ <xsl:when test="ancestor::*[local-name() = 'appendix']">
2852
+ <fo:inline>
2853
+ <xsl:apply-templates/>
2854
+ </fo:inline>
2855
+ </xsl:when>
2856
+ <xsl:when test="normalize-space($element) = 'block'">
2857
+ <fo:block xsl:use-attribute-sets="example-name-style">
2858
+ <xsl:apply-templates/>
2859
+ </fo:block>
2860
+ </xsl:when>
2861
+ <xsl:otherwise>
2862
+ <fo:inline xsl:use-attribute-sets="example-name-style">
2863
+ <xsl:apply-templates/>
2864
+ </fo:inline>
2865
+ </xsl:otherwise>
2866
+ </xsl:choose>
2867
+
2868
+ </xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
2869
+ <fo:block xsl:use-attribute-sets="example-p-style">
2870
+
2871
+ <xsl:apply-templates/>
2872
+ </fo:block>
2873
+ </xsl:template><xsl:template match="*[local-name() = 'termsource']">
2874
+ <fo:block xsl:use-attribute-sets="termsource-style">
2875
+ <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
2876
+ <xsl:variable name="termsource_text">
2877
+ <xsl:apply-templates/>
2878
+ </xsl:variable>
2879
+ <xsl:choose>
2880
+ <xsl:when test="starts-with(normalize-space($termsource_text), '[')">
2881
+ <xsl:apply-templates/>
2882
+ </xsl:when>
2883
+ <xsl:otherwise>
2884
+ <xsl:text>[</xsl:text>
2885
+ <xsl:apply-templates/>
2886
+ <xsl:text>]</xsl:text>
2887
+ </xsl:otherwise>
2888
+ </xsl:choose>
2889
+ </fo:block>
2890
+ </xsl:template><xsl:template match="*[local-name() = 'termsource']/text()">
2891
+ <xsl:if test="normalize-space() != ''">
2892
+ <xsl:value-of select="."/>
2893
+ </xsl:if>
2894
+ </xsl:template><xsl:template match="*[local-name() = 'origin']">
2895
+ <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
2896
+
2897
+ <xsl:call-template name="getTitle">
2898
+ <xsl:with-param name="name" select="'title-source'"/>
2899
+ </xsl:call-template>
2900
+ <xsl:text>: </xsl:text>
2901
+
2902
+ <fo:inline xsl:use-attribute-sets="origin-style">
2903
+ <xsl:apply-templates/>
2904
+ </fo:inline>
2905
+ </fo:basic-link>
2906
+ </xsl:template><xsl:template match="*[local-name() = 'modification']/*[local-name() = 'p']">
2907
+ <fo:inline><xsl:apply-templates/></fo:inline>
2908
+ </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
2909
+ <xsl:if test="normalize-space() != ''">
2910
+ <xsl:value-of select="."/>
2911
+ </xsl:if>
2912
+ </xsl:template><xsl:template match="*[local-name() = 'quote']">
2913
+
2914
+ <fo:block xsl:use-attribute-sets="quote-style">
2915
+ <xsl:apply-templates select=".//*[local-name() = 'p']"/>
2916
+ </fo:block>
2917
+ <xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
2918
+ <fo:block xsl:use-attribute-sets="quote-source-style">
2919
+ <!-- — ISO, ISO 7301:2011, Clause 1 -->
2920
+ <xsl:apply-templates select="*[local-name() = 'author']"/>
2921
+ <xsl:apply-templates select="*[local-name() = 'source']"/>
2922
+ </fo:block>
2923
+ </xsl:if>
2924
+ </xsl:template><xsl:template match="*[local-name() = 'source']">
2925
+ <xsl:if test="../*[local-name() = 'author']">
2926
+ <xsl:text>, </xsl:text>
2927
+ </xsl:if>
2928
+ <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
2929
+ <xsl:apply-templates/>
2930
+ </fo:basic-link>
2931
+ </xsl:template><xsl:template match="*[local-name() = 'author']">
2932
+ <xsl:text>— </xsl:text>
2933
+ <xsl:apply-templates/>
2934
+ </xsl:template><xsl:template match="*[local-name() = 'eref']">
2935
+ <fo:inline xsl:use-attribute-sets="eref-style">
2936
+ <xsl:if test="@type = 'footnote'">
2937
+
2938
+ <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
2939
+ <xsl:attribute name="font-size">80%</xsl:attribute>
2940
+ <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
2941
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
2942
+
2943
+
2944
+ </xsl:if>
2945
+
2946
+ <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
2947
+
2948
+ <xsl:if test="@type = 'inline'">
2949
+
2950
+ <xsl:attribute name="color">blue</xsl:attribute>
2951
+ <xsl:attribute name="text-decoration">underline</xsl:attribute>
2952
+
2953
+
2954
+ </xsl:if>
2955
+
2956
+
2957
+ <xsl:apply-templates/>
2958
+ </fo:basic-link>
2959
+ </fo:inline>
2960
+ </xsl:template><xsl:template match="*[local-name() = 'tab']">
2961
+ <!-- zero-space char -->
2962
+ <xsl:variable name="depth">
2963
+ <xsl:call-template name="getLevel">
2964
+ <xsl:with-param name="depth" select="../@depth"/>
2965
+ </xsl:call-template>
2966
+ </xsl:variable>
2967
+
2968
+ <xsl:variable name="padding">
2969
+
2970
+
2971
+ <xsl:choose>
2972
+ <xsl:when test="$depth &gt;= 3">3</xsl:when>
2973
+ <xsl:when test="$depth = 1">3</xsl:when>
2974
+ <xsl:otherwise>2</xsl:otherwise>
2975
+ </xsl:choose>
2976
+
2977
+
2978
+
2979
+
2980
+
2981
+
2982
+
2983
+
2984
+
2985
+
2986
+
2987
+
2988
+
2989
+
2990
+
2991
+
2992
+ </xsl:variable>
2993
+
2994
+ <xsl:variable name="padding-right">
2995
+ <xsl:choose>
2996
+ <xsl:when test="normalize-space($padding) = ''">0</xsl:when>
2997
+ <xsl:otherwise>
2998
+ <xsl:value-of select="normalize-space($padding)"/>
2999
+ </xsl:otherwise>
3000
+ </xsl:choose>
3001
+ </xsl:variable>
3002
+
3003
+ <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
3004
+
3005
+ <xsl:choose>
3006
+ <xsl:when test="$language = 'zh'">
3007
+ <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
3008
+ </xsl:when>
3009
+ <xsl:when test="../../@inline-header = 'true'">
3010
+ <fo:inline font-size="90%">
3011
+ <xsl:call-template name="insertNonBreakSpaces">
3012
+ <xsl:with-param name="count" select="$padding-right"/>
3013
+ </xsl:call-template>
3014
+ </fo:inline>
3015
+ </xsl:when>
3016
+ <xsl:otherwise>
3017
+ <fo:inline padding-right="{$padding-right}mm">​</fo:inline>
3018
+ </xsl:otherwise>
3019
+ </xsl:choose>
3020
+
3021
+ </xsl:template><xsl:template name="insertNonBreakSpaces">
3022
+ <xsl:param name="count"/>
3023
+ <xsl:if test="$count &gt; 0">
3024
+ <xsl:text> </xsl:text>
3025
+ <xsl:call-template name="insertNonBreakSpaces">
3026
+ <xsl:with-param name="count" select="$count - 1"/>
3027
+ </xsl:call-template>
3028
+ </xsl:if>
3029
+ </xsl:template><xsl:template match="*[local-name() = 'domain']">
3030
+ <fo:inline xsl:use-attribute-sets="domain-style">&lt;<xsl:apply-templates/>&gt;</fo:inline>
3031
+ <xsl:text> </xsl:text>
3032
+ </xsl:template><xsl:template match="*[local-name() = 'admitted']">
3033
+ <fo:block xsl:use-attribute-sets="admitted-style">
3034
+ <xsl:apply-templates/>
3035
+ </fo:block>
3036
+ </xsl:template><xsl:template match="*[local-name() = 'deprecates']">
3037
+ <xsl:variable name="title-deprecated">
3038
+ <xsl:call-template name="getTitle">
3039
+ <xsl:with-param name="name" select="'title-deprecated'"/>
3040
+ </xsl:call-template>
3041
+ </xsl:variable>
3042
+ <fo:block xsl:use-attribute-sets="deprecates-style">
3043
+ <xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
3044
+ </fo:block>
3045
+ </xsl:template><xsl:template match="*[local-name() = 'definition']">
3046
+ <fo:block xsl:use-attribute-sets="definition-style">
3047
+ <xsl:apply-templates/>
3048
+ </fo:block>
3049
+ </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
3050
+ <xsl:apply-templates/>
3051
+ </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p']">
3052
+ <fo:inline> <xsl:apply-templates/></fo:inline>
3053
+ <fo:block> </fo:block>
3054
+ </xsl:template><xsl:template match="/*/*[local-name() = 'sections']/*" priority="2">
3055
+
3056
+ <fo:block>
3057
+ <xsl:call-template name="setId"/>
3058
+
3059
+
3060
+ <xsl:variable name="pos"><xsl:number count="csd:sections/csd:clause | csd:sections/csd:terms"/></xsl:variable>
3061
+ <xsl:if test="$pos &gt;= 2">
3062
+ <xsl:attribute name="space-before">18pt</xsl:attribute>
3063
+ </xsl:if>
3064
+
3065
+
3066
+
3067
+
3068
+
3069
+
3070
+
3071
+
3072
+
3073
+ <xsl:apply-templates/>
3074
+ </fo:block>
3075
+
3076
+
3077
+
3078
+ </xsl:template><xsl:template match="/*/*[local-name() = 'preface']/*" priority="2">
3079
+ <fo:block break-after="page"/>
3080
+ <fo:block>
3081
+ <xsl:call-template name="setId"/>
3082
+ <xsl:apply-templates/>
3083
+ </fo:block>
3084
+ </xsl:template><xsl:template match="*[local-name() = 'clause']">
3085
+ <fo:block>
3086
+ <xsl:call-template name="setId"/>
3087
+ <xsl:apply-templates/>
3088
+ </fo:block>
3089
+ </xsl:template><xsl:template match="*[local-name() = 'definitions']">
3090
+ <fo:block id="{@id}">
3091
+ <xsl:apply-templates/>
3092
+ </fo:block>
3093
+ </xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@id = '_normative_references' or @id = '_references']">
3094
+
3095
+ <fo:block id="{@id}">
3096
+ <xsl:apply-templates/>
3097
+ </fo:block>
3098
+ </xsl:template><xsl:template match="*[local-name() = 'annex']">
3099
+ <fo:block break-after="page"/>
3100
+ <fo:block id="{@id}">
3101
+
3102
+ </fo:block>
3103
+ <xsl:apply-templates/>
3104
+ </xsl:template><xsl:template match="*[local-name() = 'review']">
3105
+ <!-- comment 2019-11-29 -->
3106
+ <!-- <fo:block font-weight="bold">Review:</fo:block>
3107
+ <xsl:apply-templates /> -->
3108
+ </xsl:template><xsl:template match="*[local-name() = 'name']/text()">
3109
+ <!-- 0xA0 to space replacement -->
3110
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
3111
+ </xsl:template><xsl:template match="*[local-name() = 'errata']">
3112
+ <!-- <row>
3113
+ <date>05-07-2013</date>
3114
+ <type>Editorial</type>
3115
+ <change>Changed CA-9 Priority Code from P1 to P2 in <xref target="tabled2"/>.</change>
3116
+ <pages>D-3</pages>
3117
+ </row>
3118
+ -->
3119
+ <fo:table table-layout="fixed" width="100%" font-size="10pt" border="1pt solid black">
3120
+ <fo:table-column column-width="20mm"/>
3121
+ <fo:table-column column-width="23mm"/>
3122
+ <fo:table-column column-width="107mm"/>
3123
+ <fo:table-column column-width="15mm"/>
3124
+ <fo:table-body>
3125
+ <fo:table-row font-family="Arial" text-align="center" font-weight="bold" background-color="black" color="white">
3126
+ <fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
3127
+ <fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
3128
+ <fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
3129
+ <fo:table-cell border="1pt solid black"><fo:block>Pages</fo:block></fo:table-cell>
3130
+ </fo:table-row>
3131
+ <xsl:apply-templates/>
3132
+ </fo:table-body>
3133
+ </fo:table>
3134
+ </xsl:template><xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']">
3135
+ <fo:table-row>
3136
+ <xsl:apply-templates/>
3137
+ </fo:table-row>
3138
+ </xsl:template><xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
3139
+ <fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
3140
+ <fo:block><xsl:apply-templates/></fo:block>
3141
+ </fo:table-cell>
3142
+ </xsl:template><xsl:template name="convertDate">
3143
+ <xsl:param name="date"/>
3144
+ <xsl:param name="format" select="'short'"/>
3145
+ <xsl:variable name="year" select="substring($date, 1, 4)"/>
3146
+ <xsl:variable name="month" select="substring($date, 6, 2)"/>
3147
+ <xsl:variable name="day" select="substring($date, 9, 2)"/>
3148
+ <xsl:variable name="monthStr">
3149
+ <xsl:choose>
3150
+ <xsl:when test="$month = '01'">January</xsl:when>
3151
+ <xsl:when test="$month = '02'">February</xsl:when>
3152
+ <xsl:when test="$month = '03'">March</xsl:when>
3153
+ <xsl:when test="$month = '04'">April</xsl:when>
3154
+ <xsl:when test="$month = '05'">May</xsl:when>
3155
+ <xsl:when test="$month = '06'">June</xsl:when>
3156
+ <xsl:when test="$month = '07'">July</xsl:when>
3157
+ <xsl:when test="$month = '08'">August</xsl:when>
3158
+ <xsl:when test="$month = '09'">September</xsl:when>
3159
+ <xsl:when test="$month = '10'">October</xsl:when>
3160
+ <xsl:when test="$month = '11'">November</xsl:when>
3161
+ <xsl:when test="$month = '12'">December</xsl:when>
3162
+ </xsl:choose>
3163
+ </xsl:variable>
3164
+ <xsl:variable name="result">
3165
+ <xsl:choose>
3166
+ <xsl:when test="$format = 'short' or $day = ''">
3167
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
3168
+ </xsl:when>
3169
+ <xsl:otherwise>
3170
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ', $day, ', ' , $year))"/>
3171
+ </xsl:otherwise>
3172
+ </xsl:choose>
3173
+ </xsl:variable>
3174
+ <xsl:value-of select="$result"/>
3175
+ </xsl:template><xsl:template name="insertKeywords">
3176
+ <xsl:param name="sorting" select="'true'"/>
3177
+ <xsl:param name="charAtEnd" select="'.'"/>
3178
+ <xsl:param name="charDelim" select="', '"/>
3179
+ <xsl:choose>
3180
+ <xsl:when test="$sorting = 'true' or $sorting = 'yes'">
3181
+ <xsl:for-each select="/*/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
3182
+ <xsl:sort data-type="text" order="ascending"/>
3183
+ <xsl:call-template name="insertKeyword">
3184
+ <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
3185
+ <xsl:with-param name="charDelim" select="$charDelim"/>
3186
+ </xsl:call-template>
3187
+ </xsl:for-each>
3188
+ </xsl:when>
3189
+ <xsl:otherwise>
3190
+ <xsl:for-each select="/*/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
3191
+ <xsl:call-template name="insertKeyword">
3192
+ <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
3193
+ <xsl:with-param name="charDelim" select="$charDelim"/>
3194
+ </xsl:call-template>
3195
+ </xsl:for-each>
3196
+ </xsl:otherwise>
3197
+ </xsl:choose>
3198
+ </xsl:template><xsl:template name="insertKeyword">
3199
+ <xsl:param name="charAtEnd"/>
3200
+ <xsl:param name="charDelim"/>
3201
+ <xsl:apply-templates/>
3202
+ <xsl:choose>
3203
+ <xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
3204
+ <xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
3205
+ </xsl:choose>
3206
+ </xsl:template><xsl:template name="addPDFUAmeta">
3207
+ <fo:declarations>
3208
+ <pdf:catalog xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
3209
+ <pdf:dictionary type="normal" key="ViewerPreferences">
3210
+ <pdf:boolean key="DisplayDocTitle">true</pdf:boolean>
3211
+ </pdf:dictionary>
3212
+ </pdf:catalog>
3213
+ <x:xmpmeta xmlns:x="adobe:ns:meta/">
3214
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
3215
+ <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
3216
+ <!-- Dublin Core properties go here -->
3217
+ <dc:title>
3218
+ <xsl:variable name="title">
3219
+
3220
+
3221
+ <xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'title'][@language = 'en']"/>
3222
+
3223
+
3224
+
3225
+ </xsl:variable>
3226
+ <xsl:choose>
3227
+ <xsl:when test="normalize-space($title) != ''">
3228
+ <xsl:value-of select="$title"/>
3229
+ </xsl:when>
3230
+ <xsl:otherwise>
3231
+ <xsl:text> </xsl:text>
3232
+ </xsl:otherwise>
3233
+ </xsl:choose>
3234
+ </dc:title>
3235
+ <dc:creator>
3236
+
3237
+
3238
+ </dc:creator>
3239
+ <dc:description>
3240
+ <xsl:variable name="abstract">
3241
+
3242
+ <xsl:copy-of select="/*/*[local-name() = 'bibliography']/*[local-name() = 'references']/*[local-name() = 'bibitem']/*[local-name() = 'abstract']//text()"/>
3243
+
3244
+
3245
+
3246
+
3247
+ </xsl:variable>
3248
+ <xsl:value-of select="normalize-space($abstract)"/>
3249
+ </dc:description>
3250
+ <pdf:Keywords>
3251
+ <xsl:call-template name="insertKeywords"/>
3252
+ </pdf:Keywords>
3253
+ </rdf:Description>
3254
+ <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
3255
+ <!-- XMP properties go here -->
3256
+ <xmp:CreatorTool/>
3257
+ </rdf:Description>
3258
+ </rdf:RDF>
3259
+ </x:xmpmeta>
3260
+ </fo:declarations>
3261
+ </xsl:template><xsl:template name="getId">
3262
+ <xsl:choose>
3263
+ <xsl:when test="../@id">
3264
+ <xsl:value-of select="../@id"/>
3265
+ </xsl:when>
3266
+ <xsl:otherwise>
3267
+ <!-- <xsl:value-of select="concat(local-name(..), '_', text())"/> -->
3268
+ <xsl:value-of select="concat(generate-id(..), '_', text())"/>
3269
+ </xsl:otherwise>
3270
+ </xsl:choose>
3271
+ </xsl:template><xsl:template name="getLevel">
3272
+ <xsl:param name="depth"/>
3273
+ <xsl:choose>
3274
+ <xsl:when test="normalize-space(@depth) != ''">
3275
+ <xsl:value-of select="@depth"/>
3276
+ </xsl:when>
3277
+ <xsl:when test="normalize-space($depth) != ''">
3278
+ <xsl:value-of select="$depth"/>
3279
+ </xsl:when>
3280
+ <xsl:otherwise>
3281
+ <xsl:variable name="level_total" select="count(ancestor::*)"/>
3282
+ <xsl:variable name="level">
3283
+ <xsl:choose>
3284
+ <xsl:when test="parent::*[local-name() = 'preface']">
3285
+ <xsl:value-of select="$level_total - 1"/>
3286
+ </xsl:when>
3287
+ <xsl:when test="ancestor::*[local-name() = 'preface']">
3288
+ <xsl:value-of select="$level_total - 2"/>
3289
+ </xsl:when>
3290
+ <!-- <xsl:when test="parent::*[local-name() = 'sections']">
3291
+ <xsl:value-of select="$level_total - 1"/>
3292
+ </xsl:when> -->
3293
+ <xsl:when test="ancestor::*[local-name() = 'sections']">
3294
+ <xsl:value-of select="$level_total - 1"/>
3295
+ </xsl:when>
3296
+ <xsl:when test="ancestor::*[local-name() = 'bibliography']">
3297
+ <xsl:value-of select="$level_total - 1"/>
3298
+ </xsl:when>
3299
+ <xsl:when test="parent::*[local-name() = 'annex']">
3300
+ <xsl:value-of select="$level_total - 1"/>
3301
+ </xsl:when>
3302
+ <xsl:when test="ancestor::*[local-name() = 'annex']">
3303
+ <xsl:value-of select="$level_total"/>
3304
+ </xsl:when>
3305
+ <xsl:when test="local-name() = 'annex'">1</xsl:when>
3306
+ <xsl:when test="local-name(ancestor::*[1]) = 'annex'">1</xsl:when>
3307
+ <xsl:otherwise>
3308
+ <xsl:value-of select="$level_total - 1"/>
3309
+ </xsl:otherwise>
3310
+ </xsl:choose>
3311
+ </xsl:variable>
3312
+ <xsl:value-of select="$level"/>
3313
+ </xsl:otherwise>
3314
+ </xsl:choose>
3315
+ </xsl:template><xsl:template name="split">
3316
+ <xsl:param name="pText" select="."/>
3317
+ <xsl:param name="sep" select="','"/>
3318
+ <xsl:if test="string-length($pText) &gt;0">
3319
+ <item>
3320
+ <xsl:value-of select="normalize-space(substring-before(concat($pText, ','), $sep))"/>
3321
+ </item>
3322
+ <xsl:call-template name="split">
3323
+ <xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
3324
+ <xsl:with-param name="sep" select="$sep"/>
3325
+ </xsl:call-template>
3326
+ </xsl:if>
3327
+ </xsl:template><xsl:template name="getDocumentId">
3328
+ <xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
3329
+ </xsl:template><xsl:template name="namespaceCheck">
3330
+ <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
3331
+ <xsl:variable name="XSLNS">
3332
+
3333
+
3334
+
3335
+
3336
+
3337
+
3338
+
3339
+
3340
+
3341
+ <xsl:value-of select="document('')//*/namespace::csd"/>
3342
+
3343
+
3344
+
3345
+
3346
+ </xsl:variable>
3347
+ <xsl:if test="$documentNS != $XSLNS">
3348
+ <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
3349
+ </xsl:if>
3350
+ </xsl:template><xsl:template name="getLanguage">
3351
+ <xsl:param name="lang"/>
3352
+ <xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
3353
+ <xsl:choose>
3354
+ <xsl:when test="$language = 'en'">English</xsl:when>
3355
+ <xsl:when test="$language = 'fr'">French</xsl:when>
3356
+ <xsl:when test="$language = 'de'">Deutsch</xsl:when>
3357
+ <xsl:when test="$language = 'cn'">Chinese</xsl:when>
3358
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
3359
+ </xsl:choose>
3360
+ </xsl:template><xsl:template name="setId">
3361
+ <xsl:attribute name="id">
3362
+ <xsl:choose>
3363
+ <xsl:when test="@id">
3364
+ <xsl:value-of select="@id"/>
3365
+ </xsl:when>
3366
+ <xsl:otherwise>
3367
+ <xsl:value-of select="generate-id()"/>
3368
+ </xsl:otherwise>
3369
+ </xsl:choose>
3370
+ </xsl:attribute>
3371
+ </xsl:template></xsl:stylesheet>