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