metanorma-iho 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/lib/isodoc/iho/iho.specification.xsl +66 -9
 - data/lib/isodoc/iho/iho.standard.xsl +66 -9
 - data/lib/isodoc/iho/init.rb +5 -0
 - data/lib/isodoc/iho/presentation_xml_convert.rb +0 -4
 - data/lib/metanorma/iho/biblio.rng +28 -25
 - data/lib/metanorma/iho/version.rb +1 -1
 - data/metanorma-iho.gemspec +1 -1
 - metadata +4 -4
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 6f23932cc917c41bf9680cf9e300d37ea48db54c2bebb8f489b6fca2630836f5
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: dad38711590324bb7f1c9accfeeb34b9c6aafbddad5464ccf44b9e9111dd9589
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 81026b6867354a0a96005f3a79f6b298abb37d0bee2ba2c8a4871d183cca50c743b23ae00500757024e33e70e9f1094fc81772956c1f78b5723c6aff778b52b2
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: c96d8655a05f751d5475fcd622f6bdc1230a2ef579cac08790aa0218100ab404e3df196b80f97ae56a0012e8b07fa0a4b5a43aaa4b2831967b4b7e34edea28e4
         
     | 
| 
         @@ -847,6 +847,8 @@ 
     | 
|
| 
       847 
847 
     | 
    
         
             
            	<xsl:param name="svg_images"/> <!-- svg images array -->
         
     | 
| 
       848 
848 
     | 
    
         
             
            	<xsl:variable name="images" select="document($svg_images)"/>
         
     | 
| 
       849 
849 
     | 
    
         
             
            	<xsl:param name="basepath"/> <!-- base path for images -->
         
     | 
| 
      
 850 
     | 
    
         
            +
            	<xsl:param name="inputxml_basepath"/> <!-- input xml file path -->
         
     | 
| 
      
 851 
     | 
    
         
            +
            	<xsl:param name="inputxml_filename"/> <!-- input xml file name -->
         
     | 
| 
       850 
852 
     | 
    
         
             
            	<xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
         
     | 
| 
       851 
853 
     | 
    
         
             
            	<xsl:param name="syntax-highlight">false</xsl:param> <!-- syntax highlighting feature, default - off -->
         
     | 
| 
       852 
854 
     | 
    
         
             
            	<xsl:param name="add_math_as_text">true</xsl:param> <!-- add math in text behind svg formula, to copy-paste formula from PDF as text -->
         
     | 
| 
         @@ -899,6 +901,20 @@ 
     | 
|
| 
       899 
901 
     | 
    
         
             
            		<xsl:call-template name="getLang"/>
         
     | 
| 
       900 
902 
     | 
    
         
             
            	</xsl:variable>
         
     | 
| 
       901 
903 
     | 
    
         | 
| 
      
 904 
     | 
    
         
            +
            	<xsl:variable name="inputxml_filename_prefix">
         
     | 
| 
      
 905 
     | 
    
         
            +
            		<xsl:choose>
         
     | 
| 
      
 906 
     | 
    
         
            +
            			<xsl:when test="contains($inputxml_filename, '.presentation.xml')">
         
     | 
| 
      
 907 
     | 
    
         
            +
            				<xsl:value-of select="substring-before($inputxml_filename, '.presentation.xml')"/>
         
     | 
| 
      
 908 
     | 
    
         
            +
            			</xsl:when>
         
     | 
| 
      
 909 
     | 
    
         
            +
            			<xsl:when test="contains($inputxml_filename, '.xml')">
         
     | 
| 
      
 910 
     | 
    
         
            +
            				<xsl:value-of select="substring-before($inputxml_filename, '.xml')"/>
         
     | 
| 
      
 911 
     | 
    
         
            +
            			</xsl:when>
         
     | 
| 
      
 912 
     | 
    
         
            +
            			<xsl:otherwise>
         
     | 
| 
      
 913 
     | 
    
         
            +
            				<xsl:value-of select="$inputxml_filename"/>
         
     | 
| 
      
 914 
     | 
    
         
            +
            			</xsl:otherwise>
         
     | 
| 
      
 915 
     | 
    
         
            +
            		</xsl:choose>
         
     | 
| 
      
 916 
     | 
    
         
            +
            	</xsl:variable>
         
     | 
| 
      
 917 
     | 
    
         
            +
             
     | 
| 
       902 
918 
     | 
    
         
             
            	<!-- Note 1: Each xslt has declated variable `namespace` that allows to set some properties, processing logic, etc. for concrete xslt.
         
     | 
| 
       903 
919 
     | 
    
         
             
            	You can put such conditions by using xslt construction `xsl:if test="..."` or <xsl:choose><xsl:when test=""></xsl:when><xsl:otherwiste></xsl:otherwiste></xsl:choose>,
         
     | 
| 
       904 
920 
     | 
    
         
             
            	BUT DON'T put any another conditions together with $namespace = '...' (such conditions will be ignored). For another conditions, please use nested xsl:if or xsl:choose -->
         
     | 
| 
         @@ -1828,6 +1844,10 @@ 
     | 
|
| 
       1828 
1844 
     | 
    
         | 
| 
       1829 
1845 
     | 
    
         
             
            	</xsl:attribute-set>
         
     | 
| 
       1830 
1846 
     | 
    
         | 
| 
      
 1847 
     | 
    
         
            +
            	<xsl:template name="refine_figure-block-style">
         
     | 
| 
      
 1848 
     | 
    
         
            +
             
     | 
| 
      
 1849 
     | 
    
         
            +
            	</xsl:template>
         
     | 
| 
      
 1850 
     | 
    
         
            +
             
     | 
| 
       1831 
1851 
     | 
    
         
             
            	<xsl:attribute-set name="figure-style">
         
     | 
| 
       1832 
1852 
     | 
    
         | 
| 
       1833 
1853 
     | 
    
         
             
            	</xsl:attribute-set>
         
     | 
| 
         @@ -2741,7 +2761,7 @@ 
     | 
|
| 
       2741 
2761 
     | 
    
         
             
            			<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)/*/tr[1]/td)"/>
         
     | 
| 
       2742 
2762 
     | 
    
         | 
| 
       2743 
2763 
     | 
    
         
             
            			<xsl:variable name="colwidths">
         
     | 
| 
       2744 
     | 
    
         
            -
            				<xsl:if test="not(*[local-name()='colgroup']/*[local-name()='col'])">
         
     | 
| 
      
 2764 
     | 
    
         
            +
            				<xsl:if test="not(*[local-name()='colgroup']/*[local-name()='col']) and not(@class = 'dl')">
         
     | 
| 
       2745 
2765 
     | 
    
         
             
            					<xsl:call-template name="calculate-column-widths">
         
     | 
| 
       2746 
2766 
     | 
    
         
             
            						<xsl:with-param name="cols-count" select="$cols-count"/>
         
     | 
| 
       2747 
2767 
     | 
    
         
             
            						<xsl:with-param name="table" select="$simple-table"/>
         
     | 
| 
         @@ -2853,6 +2873,11 @@ 
     | 
|
| 
       2853 
2873 
     | 
    
         
             
            										<fo:table-column column-width="{@width}"/>
         
     | 
| 
       2854 
2874 
     | 
    
         
             
            									</xsl:for-each>
         
     | 
| 
       2855 
2875 
     | 
    
         
             
            								</xsl:when>
         
     | 
| 
      
 2876 
     | 
    
         
            +
            								<xsl:when test="@class = 'dl'">
         
     | 
| 
      
 2877 
     | 
    
         
            +
            									<xsl:for-each select=".//*[local-name()='tr'][1]/*">
         
     | 
| 
      
 2878 
     | 
    
         
            +
            										<fo:table-column column-width="{@width}"/>
         
     | 
| 
      
 2879 
     | 
    
         
            +
            									</xsl:for-each>
         
     | 
| 
      
 2880 
     | 
    
         
            +
            								</xsl:when>
         
     | 
| 
       2856 
2881 
     | 
    
         
             
            								<xsl:otherwise>
         
     | 
| 
       2857 
2882 
     | 
    
         
             
            									<xsl:call-template name="insertTableColumnWidth">
         
     | 
| 
       2858 
2883 
     | 
    
         
             
            										<xsl:with-param name="colwidths" select="$colwidths"/>
         
     | 
| 
         @@ -4128,6 +4153,7 @@ 
     | 
|
| 
       4128 
4153 
     | 
    
         
             
            	<!-- ===================== -->
         
     | 
| 
       4129 
4154 
     | 
    
         
             
            	<!-- Definition List -->
         
     | 
| 
       4130 
4155 
     | 
    
         
             
            	<!-- ===================== -->
         
     | 
| 
      
 4156 
     | 
    
         
            +
             
     | 
| 
       4131 
4157 
     | 
    
         
             
            	<xsl:template match="*[local-name()='dl']">
         
     | 
| 
       4132 
4158 
     | 
    
         
             
            		<xsl:variable name="isAdded" select="@added"/>
         
     | 
| 
       4133 
4159 
     | 
    
         
             
            		<xsl:variable name="isDeleted" select="@deleted"/>
         
     | 
| 
         @@ -4342,10 +4368,21 @@ 
     | 
|
| 
       4342 
4368 
     | 
    
         
             
            										</xsl:variable>
         
     | 
| 
       4343 
4369 
     | 
    
         | 
| 
       4344 
4370 
     | 
    
         
             
            										<xsl:variable name="colwidths">
         
     | 
| 
       4345 
     | 
    
         
            -
            											<xsl: 
     | 
| 
       4346 
     | 
    
         
            -
            												 
     | 
| 
       4347 
     | 
    
         
            -
            												<xsl: 
     | 
| 
       4348 
     | 
    
         
            -
             
     | 
| 
      
 4371 
     | 
    
         
            +
            											<xsl:choose>
         
     | 
| 
      
 4372 
     | 
    
         
            +
            												<!-- dl from table[@class='dl'] -->
         
     | 
| 
      
 4373 
     | 
    
         
            +
            												<xsl:when test="*[local-name() = 'colgroup']">
         
     | 
| 
      
 4374 
     | 
    
         
            +
            													<autolayout/>
         
     | 
| 
      
 4375 
     | 
    
         
            +
            													<xsl:for-each select="*[local-name() = 'colgroup']/*[local-name() = 'col']">
         
     | 
| 
      
 4376 
     | 
    
         
            +
            														<column><xsl:value-of select="translate(@width,'%m','')"/></column>
         
     | 
| 
      
 4377 
     | 
    
         
            +
            													</xsl:for-each>
         
     | 
| 
      
 4378 
     | 
    
         
            +
            												</xsl:when>
         
     | 
| 
      
 4379 
     | 
    
         
            +
            												<xsl:otherwise>
         
     | 
| 
      
 4380 
     | 
    
         
            +
            													<xsl:call-template name="calculate-column-widths">
         
     | 
| 
      
 4381 
     | 
    
         
            +
            														<xsl:with-param name="cols-count" select="2"/>
         
     | 
| 
      
 4382 
     | 
    
         
            +
            														<xsl:with-param name="table" select="$simple-table"/>
         
     | 
| 
      
 4383 
     | 
    
         
            +
            													</xsl:call-template>
         
     | 
| 
      
 4384 
     | 
    
         
            +
            												</xsl:otherwise>
         
     | 
| 
      
 4385 
     | 
    
         
            +
            											</xsl:choose>
         
     | 
| 
       4349 
4386 
     | 
    
         
             
            										</xsl:variable>
         
     | 
| 
       4350 
4387 
     | 
    
         | 
| 
       4351 
4388 
     | 
    
         
             
            										<!-- <xsl:text disable-output-escaping="yes"><!- -</xsl:text>
         
     | 
| 
         @@ -6515,6 +6552,12 @@ 
     | 
|
| 
       6515 
6552 
     | 
    
         
             
            				<xsl:when test="@updatetype = 'true'">
         
     | 
| 
       6516 
6553 
     | 
    
         
             
            					<xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
         
     | 
| 
       6517 
6554 
     | 
    
         
             
            				</xsl:when>
         
     | 
| 
      
 6555 
     | 
    
         
            +
            				<xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
         
     | 
| 
      
 6556 
     | 
    
         
            +
            					<!-- link to the PDF attachment -->
         
     | 
| 
      
 6557 
     | 
    
         
            +
            					<xsl:variable name="target_" select="translate(@target, '\', '/')"/>
         
     | 
| 
      
 6558 
     | 
    
         
            +
            					<xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
         
     | 
| 
      
 6559 
     | 
    
         
            +
            					<xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
         
     | 
| 
      
 6560 
     | 
    
         
            +
            				</xsl:when>
         
     | 
| 
       6518 
6561 
     | 
    
         
             
            				<xsl:otherwise>
         
     | 
| 
       6519 
6562 
     | 
    
         
             
            					<xsl:value-of select="normalize-space(@target)"/>
         
     | 
| 
       6520 
6563 
     | 
    
         
             
            				</xsl:otherwise>
         
     | 
| 
         @@ -6922,6 +6965,7 @@ 
     | 
|
| 
       6922 
6965 
     | 
    
         
             
            		<xsl:variable name="isAdded" select="@added"/>
         
     | 
| 
       6923 
6966 
     | 
    
         
             
            		<xsl:variable name="isDeleted" select="@deleted"/>
         
     | 
| 
       6924 
6967 
     | 
    
         
             
            		<fo:block-container id="{@id}" xsl:use-attribute-sets="figure-block-style">
         
     | 
| 
      
 6968 
     | 
    
         
            +
            			<xsl:call-template name="refine_figure-block-style"/>
         
     | 
| 
       6925 
6969 
     | 
    
         | 
| 
       6926 
6970 
     | 
    
         
             
            			<xsl:call-template name="setTrackChangesStyles">
         
     | 
| 
       6927 
6971 
     | 
    
         
             
            				<xsl:with-param name="isAdded" select="$isAdded"/>
         
     | 
| 
         @@ -11280,10 +11324,10 @@ 
     | 
|
| 
       11280 
11324 
     | 
    
         | 
| 
       11281 
11325 
     | 
    
         
             
            	<xsl:template name="addPDFUAmeta">
         
     | 
| 
       11282 
11326 
     | 
    
         
             
            		<pdf:catalog xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
         
     | 
| 
       11283 
     | 
    
         
            -
             
     | 
| 
       11284 
     | 
    
         
            -
             
     | 
| 
       11285 
     | 
    
         
            -
             
     | 
| 
       11286 
     | 
    
         
            -
             
     | 
| 
      
 11327 
     | 
    
         
            +
            			<pdf:dictionary type="normal" key="ViewerPreferences">
         
     | 
| 
      
 11328 
     | 
    
         
            +
            				<pdf:boolean key="DisplayDocTitle">true</pdf:boolean>
         
     | 
| 
      
 11329 
     | 
    
         
            +
            			</pdf:dictionary>
         
     | 
| 
      
 11330 
     | 
    
         
            +
            		</pdf:catalog>
         
     | 
| 
       11287 
11331 
     | 
    
         
             
            		<x:xmpmeta xmlns:x="adobe:ns:meta/">
         
     | 
| 
       11288 
11332 
     | 
    
         
             
            			<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
         
     | 
| 
       11289 
11333 
     | 
    
         
             
            				<rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
         
     | 
| 
         @@ -11335,6 +11379,19 @@ 
     | 
|
| 
       11335 
11379 
     | 
    
         
             
            				</rdf:Description>
         
     | 
| 
       11336 
11380 
     | 
    
         
             
            			</rdf:RDF>
         
     | 
| 
       11337 
11381 
     | 
    
         
             
            		</x:xmpmeta>
         
     | 
| 
      
 11382 
     | 
    
         
            +
            		<!-- add attachments -->
         
     | 
| 
      
 11383 
     | 
    
         
            +
            		<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
         
     | 
| 
      
 11384 
     | 
    
         
            +
            			<xsl:choose>
         
     | 
| 
      
 11385 
     | 
    
         
            +
            				<xsl:when test="normalize-space() != ''">
         
     | 
| 
      
 11386 
     | 
    
         
            +
            					<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{.}" filename="{@name}"/>
         
     | 
| 
      
 11387 
     | 
    
         
            +
            				</xsl:when>
         
     | 
| 
      
 11388 
     | 
    
         
            +
            				<xsl:otherwise>
         
     | 
| 
      
 11389 
     | 
    
         
            +
            					<!-- _{filename}_attachments -->
         
     | 
| 
      
 11390 
     | 
    
         
            +
            					<xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
         
     | 
| 
      
 11391 
     | 
    
         
            +
            					<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$url}" filename="{@name}"/>
         
     | 
| 
      
 11392 
     | 
    
         
            +
            				</xsl:otherwise>
         
     | 
| 
      
 11393 
     | 
    
         
            +
            			</xsl:choose>
         
     | 
| 
      
 11394 
     | 
    
         
            +
            		</xsl:for-each>
         
     | 
| 
       11338 
11395 
     | 
    
         
             
            	</xsl:template> <!-- addPDFUAmeta -->
         
     | 
| 
       11339 
11396 
     | 
    
         | 
| 
       11340 
11397 
     | 
    
         
             
            	<xsl:template name="getId">
         
     | 
| 
         @@ -847,6 +847,8 @@ 
     | 
|
| 
       847 
847 
     | 
    
         
             
            	<xsl:param name="svg_images"/> <!-- svg images array -->
         
     | 
| 
       848 
848 
     | 
    
         
             
            	<xsl:variable name="images" select="document($svg_images)"/>
         
     | 
| 
       849 
849 
     | 
    
         
             
            	<xsl:param name="basepath"/> <!-- base path for images -->
         
     | 
| 
      
 850 
     | 
    
         
            +
            	<xsl:param name="inputxml_basepath"/> <!-- input xml file path -->
         
     | 
| 
      
 851 
     | 
    
         
            +
            	<xsl:param name="inputxml_filename"/> <!-- input xml file name -->
         
     | 
| 
       850 
852 
     | 
    
         
             
            	<xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
         
     | 
| 
       851 
853 
     | 
    
         
             
            	<xsl:param name="syntax-highlight">false</xsl:param> <!-- syntax highlighting feature, default - off -->
         
     | 
| 
       852 
854 
     | 
    
         
             
            	<xsl:param name="add_math_as_text">true</xsl:param> <!-- add math in text behind svg formula, to copy-paste formula from PDF as text -->
         
     | 
| 
         @@ -899,6 +901,20 @@ 
     | 
|
| 
       899 
901 
     | 
    
         
             
            		<xsl:call-template name="getLang"/>
         
     | 
| 
       900 
902 
     | 
    
         
             
            	</xsl:variable>
         
     | 
| 
       901 
903 
     | 
    
         | 
| 
      
 904 
     | 
    
         
            +
            	<xsl:variable name="inputxml_filename_prefix">
         
     | 
| 
      
 905 
     | 
    
         
            +
            		<xsl:choose>
         
     | 
| 
      
 906 
     | 
    
         
            +
            			<xsl:when test="contains($inputxml_filename, '.presentation.xml')">
         
     | 
| 
      
 907 
     | 
    
         
            +
            				<xsl:value-of select="substring-before($inputxml_filename, '.presentation.xml')"/>
         
     | 
| 
      
 908 
     | 
    
         
            +
            			</xsl:when>
         
     | 
| 
      
 909 
     | 
    
         
            +
            			<xsl:when test="contains($inputxml_filename, '.xml')">
         
     | 
| 
      
 910 
     | 
    
         
            +
            				<xsl:value-of select="substring-before($inputxml_filename, '.xml')"/>
         
     | 
| 
      
 911 
     | 
    
         
            +
            			</xsl:when>
         
     | 
| 
      
 912 
     | 
    
         
            +
            			<xsl:otherwise>
         
     | 
| 
      
 913 
     | 
    
         
            +
            				<xsl:value-of select="$inputxml_filename"/>
         
     | 
| 
      
 914 
     | 
    
         
            +
            			</xsl:otherwise>
         
     | 
| 
      
 915 
     | 
    
         
            +
            		</xsl:choose>
         
     | 
| 
      
 916 
     | 
    
         
            +
            	</xsl:variable>
         
     | 
| 
      
 917 
     | 
    
         
            +
             
     | 
| 
       902 
918 
     | 
    
         
             
            	<!-- Note 1: Each xslt has declated variable `namespace` that allows to set some properties, processing logic, etc. for concrete xslt.
         
     | 
| 
       903 
919 
     | 
    
         
             
            	You can put such conditions by using xslt construction `xsl:if test="..."` or <xsl:choose><xsl:when test=""></xsl:when><xsl:otherwiste></xsl:otherwiste></xsl:choose>,
         
     | 
| 
       904 
920 
     | 
    
         
             
            	BUT DON'T put any another conditions together with $namespace = '...' (such conditions will be ignored). For another conditions, please use nested xsl:if or xsl:choose -->
         
     | 
| 
         @@ -1828,6 +1844,10 @@ 
     | 
|
| 
       1828 
1844 
     | 
    
         | 
| 
       1829 
1845 
     | 
    
         
             
            	</xsl:attribute-set>
         
     | 
| 
       1830 
1846 
     | 
    
         | 
| 
      
 1847 
     | 
    
         
            +
            	<xsl:template name="refine_figure-block-style">
         
     | 
| 
      
 1848 
     | 
    
         
            +
             
     | 
| 
      
 1849 
     | 
    
         
            +
            	</xsl:template>
         
     | 
| 
      
 1850 
     | 
    
         
            +
             
     | 
| 
       1831 
1851 
     | 
    
         
             
            	<xsl:attribute-set name="figure-style">
         
     | 
| 
       1832 
1852 
     | 
    
         | 
| 
       1833 
1853 
     | 
    
         
             
            	</xsl:attribute-set>
         
     | 
| 
         @@ -2741,7 +2761,7 @@ 
     | 
|
| 
       2741 
2761 
     | 
    
         
             
            			<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)/*/tr[1]/td)"/>
         
     | 
| 
       2742 
2762 
     | 
    
         | 
| 
       2743 
2763 
     | 
    
         
             
            			<xsl:variable name="colwidths">
         
     | 
| 
       2744 
     | 
    
         
            -
            				<xsl:if test="not(*[local-name()='colgroup']/*[local-name()='col'])">
         
     | 
| 
      
 2764 
     | 
    
         
            +
            				<xsl:if test="not(*[local-name()='colgroup']/*[local-name()='col']) and not(@class = 'dl')">
         
     | 
| 
       2745 
2765 
     | 
    
         
             
            					<xsl:call-template name="calculate-column-widths">
         
     | 
| 
       2746 
2766 
     | 
    
         
             
            						<xsl:with-param name="cols-count" select="$cols-count"/>
         
     | 
| 
       2747 
2767 
     | 
    
         
             
            						<xsl:with-param name="table" select="$simple-table"/>
         
     | 
| 
         @@ -2853,6 +2873,11 @@ 
     | 
|
| 
       2853 
2873 
     | 
    
         
             
            										<fo:table-column column-width="{@width}"/>
         
     | 
| 
       2854 
2874 
     | 
    
         
             
            									</xsl:for-each>
         
     | 
| 
       2855 
2875 
     | 
    
         
             
            								</xsl:when>
         
     | 
| 
      
 2876 
     | 
    
         
            +
            								<xsl:when test="@class = 'dl'">
         
     | 
| 
      
 2877 
     | 
    
         
            +
            									<xsl:for-each select=".//*[local-name()='tr'][1]/*">
         
     | 
| 
      
 2878 
     | 
    
         
            +
            										<fo:table-column column-width="{@width}"/>
         
     | 
| 
      
 2879 
     | 
    
         
            +
            									</xsl:for-each>
         
     | 
| 
      
 2880 
     | 
    
         
            +
            								</xsl:when>
         
     | 
| 
       2856 
2881 
     | 
    
         
             
            								<xsl:otherwise>
         
     | 
| 
       2857 
2882 
     | 
    
         
             
            									<xsl:call-template name="insertTableColumnWidth">
         
     | 
| 
       2858 
2883 
     | 
    
         
             
            										<xsl:with-param name="colwidths" select="$colwidths"/>
         
     | 
| 
         @@ -4128,6 +4153,7 @@ 
     | 
|
| 
       4128 
4153 
     | 
    
         
             
            	<!-- ===================== -->
         
     | 
| 
       4129 
4154 
     | 
    
         
             
            	<!-- Definition List -->
         
     | 
| 
       4130 
4155 
     | 
    
         
             
            	<!-- ===================== -->
         
     | 
| 
      
 4156 
     | 
    
         
            +
             
     | 
| 
       4131 
4157 
     | 
    
         
             
            	<xsl:template match="*[local-name()='dl']">
         
     | 
| 
       4132 
4158 
     | 
    
         
             
            		<xsl:variable name="isAdded" select="@added"/>
         
     | 
| 
       4133 
4159 
     | 
    
         
             
            		<xsl:variable name="isDeleted" select="@deleted"/>
         
     | 
| 
         @@ -4342,10 +4368,21 @@ 
     | 
|
| 
       4342 
4368 
     | 
    
         
             
            										</xsl:variable>
         
     | 
| 
       4343 
4369 
     | 
    
         | 
| 
       4344 
4370 
     | 
    
         
             
            										<xsl:variable name="colwidths">
         
     | 
| 
       4345 
     | 
    
         
            -
            											<xsl: 
     | 
| 
       4346 
     | 
    
         
            -
            												 
     | 
| 
       4347 
     | 
    
         
            -
            												<xsl: 
     | 
| 
       4348 
     | 
    
         
            -
             
     | 
| 
      
 4371 
     | 
    
         
            +
            											<xsl:choose>
         
     | 
| 
      
 4372 
     | 
    
         
            +
            												<!-- dl from table[@class='dl'] -->
         
     | 
| 
      
 4373 
     | 
    
         
            +
            												<xsl:when test="*[local-name() = 'colgroup']">
         
     | 
| 
      
 4374 
     | 
    
         
            +
            													<autolayout/>
         
     | 
| 
      
 4375 
     | 
    
         
            +
            													<xsl:for-each select="*[local-name() = 'colgroup']/*[local-name() = 'col']">
         
     | 
| 
      
 4376 
     | 
    
         
            +
            														<column><xsl:value-of select="translate(@width,'%m','')"/></column>
         
     | 
| 
      
 4377 
     | 
    
         
            +
            													</xsl:for-each>
         
     | 
| 
      
 4378 
     | 
    
         
            +
            												</xsl:when>
         
     | 
| 
      
 4379 
     | 
    
         
            +
            												<xsl:otherwise>
         
     | 
| 
      
 4380 
     | 
    
         
            +
            													<xsl:call-template name="calculate-column-widths">
         
     | 
| 
      
 4381 
     | 
    
         
            +
            														<xsl:with-param name="cols-count" select="2"/>
         
     | 
| 
      
 4382 
     | 
    
         
            +
            														<xsl:with-param name="table" select="$simple-table"/>
         
     | 
| 
      
 4383 
     | 
    
         
            +
            													</xsl:call-template>
         
     | 
| 
      
 4384 
     | 
    
         
            +
            												</xsl:otherwise>
         
     | 
| 
      
 4385 
     | 
    
         
            +
            											</xsl:choose>
         
     | 
| 
       4349 
4386 
     | 
    
         
             
            										</xsl:variable>
         
     | 
| 
       4350 
4387 
     | 
    
         | 
| 
       4351 
4388 
     | 
    
         
             
            										<!-- <xsl:text disable-output-escaping="yes"><!- -</xsl:text>
         
     | 
| 
         @@ -6515,6 +6552,12 @@ 
     | 
|
| 
       6515 
6552 
     | 
    
         
             
            				<xsl:when test="@updatetype = 'true'">
         
     | 
| 
       6516 
6553 
     | 
    
         
             
            					<xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
         
     | 
| 
       6517 
6554 
     | 
    
         
             
            				</xsl:when>
         
     | 
| 
      
 6555 
     | 
    
         
            +
            				<xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
         
     | 
| 
      
 6556 
     | 
    
         
            +
            					<!-- link to the PDF attachment -->
         
     | 
| 
      
 6557 
     | 
    
         
            +
            					<xsl:variable name="target_" select="translate(@target, '\', '/')"/>
         
     | 
| 
      
 6558 
     | 
    
         
            +
            					<xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
         
     | 
| 
      
 6559 
     | 
    
         
            +
            					<xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
         
     | 
| 
      
 6560 
     | 
    
         
            +
            				</xsl:when>
         
     | 
| 
       6518 
6561 
     | 
    
         
             
            				<xsl:otherwise>
         
     | 
| 
       6519 
6562 
     | 
    
         
             
            					<xsl:value-of select="normalize-space(@target)"/>
         
     | 
| 
       6520 
6563 
     | 
    
         
             
            				</xsl:otherwise>
         
     | 
| 
         @@ -6922,6 +6965,7 @@ 
     | 
|
| 
       6922 
6965 
     | 
    
         
             
            		<xsl:variable name="isAdded" select="@added"/>
         
     | 
| 
       6923 
6966 
     | 
    
         
             
            		<xsl:variable name="isDeleted" select="@deleted"/>
         
     | 
| 
       6924 
6967 
     | 
    
         
             
            		<fo:block-container id="{@id}" xsl:use-attribute-sets="figure-block-style">
         
     | 
| 
      
 6968 
     | 
    
         
            +
            			<xsl:call-template name="refine_figure-block-style"/>
         
     | 
| 
       6925 
6969 
     | 
    
         | 
| 
       6926 
6970 
     | 
    
         
             
            			<xsl:call-template name="setTrackChangesStyles">
         
     | 
| 
       6927 
6971 
     | 
    
         
             
            				<xsl:with-param name="isAdded" select="$isAdded"/>
         
     | 
| 
         @@ -11280,10 +11324,10 @@ 
     | 
|
| 
       11280 
11324 
     | 
    
         | 
| 
       11281 
11325 
     | 
    
         
             
            	<xsl:template name="addPDFUAmeta">
         
     | 
| 
       11282 
11326 
     | 
    
         
             
            		<pdf:catalog xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
         
     | 
| 
       11283 
     | 
    
         
            -
             
     | 
| 
       11284 
     | 
    
         
            -
             
     | 
| 
       11285 
     | 
    
         
            -
             
     | 
| 
       11286 
     | 
    
         
            -
             
     | 
| 
      
 11327 
     | 
    
         
            +
            			<pdf:dictionary type="normal" key="ViewerPreferences">
         
     | 
| 
      
 11328 
     | 
    
         
            +
            				<pdf:boolean key="DisplayDocTitle">true</pdf:boolean>
         
     | 
| 
      
 11329 
     | 
    
         
            +
            			</pdf:dictionary>
         
     | 
| 
      
 11330 
     | 
    
         
            +
            		</pdf:catalog>
         
     | 
| 
       11287 
11331 
     | 
    
         
             
            		<x:xmpmeta xmlns:x="adobe:ns:meta/">
         
     | 
| 
       11288 
11332 
     | 
    
         
             
            			<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
         
     | 
| 
       11289 
11333 
     | 
    
         
             
            				<rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
         
     | 
| 
         @@ -11335,6 +11379,19 @@ 
     | 
|
| 
       11335 
11379 
     | 
    
         
             
            				</rdf:Description>
         
     | 
| 
       11336 
11380 
     | 
    
         
             
            			</rdf:RDF>
         
     | 
| 
       11337 
11381 
     | 
    
         
             
            		</x:xmpmeta>
         
     | 
| 
      
 11382 
     | 
    
         
            +
            		<!-- add attachments -->
         
     | 
| 
      
 11383 
     | 
    
         
            +
            		<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
         
     | 
| 
      
 11384 
     | 
    
         
            +
            			<xsl:choose>
         
     | 
| 
      
 11385 
     | 
    
         
            +
            				<xsl:when test="normalize-space() != ''">
         
     | 
| 
      
 11386 
     | 
    
         
            +
            					<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{.}" filename="{@name}"/>
         
     | 
| 
      
 11387 
     | 
    
         
            +
            				</xsl:when>
         
     | 
| 
      
 11388 
     | 
    
         
            +
            				<xsl:otherwise>
         
     | 
| 
      
 11389 
     | 
    
         
            +
            					<!-- _{filename}_attachments -->
         
     | 
| 
      
 11390 
     | 
    
         
            +
            					<xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
         
     | 
| 
      
 11391 
     | 
    
         
            +
            					<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$url}" filename="{@name}"/>
         
     | 
| 
      
 11392 
     | 
    
         
            +
            				</xsl:otherwise>
         
     | 
| 
      
 11393 
     | 
    
         
            +
            			</xsl:choose>
         
     | 
| 
      
 11394 
     | 
    
         
            +
            		</xsl:for-each>
         
     | 
| 
       11338 
11395 
     | 
    
         
             
            	</xsl:template> <!-- addPDFUAmeta -->
         
     | 
| 
       11339 
11396 
     | 
    
         | 
| 
       11340 
11397 
     | 
    
         
             
            	<xsl:template name="getId">
         
     | 
    
        data/lib/isodoc/iho/init.rb
    CHANGED
    
    
| 
         @@ -6,10 +6,6 @@ require_relative "../../relaton/render/general" 
     | 
|
| 
       6 
6 
     | 
    
         
             
            module IsoDoc
         
     | 
| 
       7 
7 
     | 
    
         
             
              module IHO
         
     | 
| 
       8 
8 
     | 
    
         
             
                class PresentationXMLConvert < IsoDoc::Generic::PresentationXMLConvert
         
     | 
| 
       9 
     | 
    
         
            -
                  def bibrenderer
         
     | 
| 
       10 
     | 
    
         
            -
                    ::Relaton::Render::IHO::General.new(language: @lang)
         
     | 
| 
       11 
     | 
    
         
            -
                  end
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
9 
     | 
    
         
             
                  def norm_ref_entry_code(ordinal, _idents, _ids, _standard, _datefn, _bib)
         
     | 
| 
       14 
10 
     | 
    
         
             
                    "[#{ordinal}]<tab/>"
         
     | 
| 
       15 
11 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -338,29 +338,32 @@ 
     | 
|
| 
       338 
338 
     | 
    
         
             
              </define>
         
     | 
| 
       339 
339 
     | 
    
         
             
              <define name="organization">
         
     | 
| 
       340 
340 
     | 
    
         
             
                <element name="organization">
         
     | 
| 
       341 
     | 
    
         
            -
                  < 
     | 
| 
       342 
     | 
    
         
            -
                    <ref name="orgname"/>
         
     | 
| 
       343 
     | 
    
         
            -
                  </oneOrMore>
         
     | 
| 
       344 
     | 
    
         
            -
                  <zeroOrMore>
         
     | 
| 
       345 
     | 
    
         
            -
                    <ref name="subdivision"/>
         
     | 
| 
       346 
     | 
    
         
            -
                  </zeroOrMore>
         
     | 
| 
       347 
     | 
    
         
            -
                  <optional>
         
     | 
| 
       348 
     | 
    
         
            -
                    <ref name="abbreviation"/>
         
     | 
| 
       349 
     | 
    
         
            -
                  </optional>
         
     | 
| 
       350 
     | 
    
         
            -
                  <zeroOrMore>
         
     | 
| 
       351 
     | 
    
         
            -
                    <ref name="uri"/>
         
     | 
| 
       352 
     | 
    
         
            -
                  </zeroOrMore>
         
     | 
| 
       353 
     | 
    
         
            -
                  <zeroOrMore>
         
     | 
| 
       354 
     | 
    
         
            -
                    <ref name="org-identifier"/>
         
     | 
| 
       355 
     | 
    
         
            -
                  </zeroOrMore>
         
     | 
| 
       356 
     | 
    
         
            -
                  <zeroOrMore>
         
     | 
| 
       357 
     | 
    
         
            -
                    <ref name="contact"/>
         
     | 
| 
       358 
     | 
    
         
            -
                  </zeroOrMore>
         
     | 
| 
       359 
     | 
    
         
            -
                  <optional>
         
     | 
| 
       360 
     | 
    
         
            -
                    <ref name="logo"/>
         
     | 
| 
       361 
     | 
    
         
            -
                  </optional>
         
     | 
| 
      
 341 
     | 
    
         
            +
                  <ref name="OrganizationType"/>
         
     | 
| 
       362 
342 
     | 
    
         
             
                </element>
         
     | 
| 
       363 
343 
     | 
    
         
             
              </define>
         
     | 
| 
      
 344 
     | 
    
         
            +
              <define name="OrganizationType">
         
     | 
| 
      
 345 
     | 
    
         
            +
                <oneOrMore>
         
     | 
| 
      
 346 
     | 
    
         
            +
                  <ref name="orgname"/>
         
     | 
| 
      
 347 
     | 
    
         
            +
                </oneOrMore>
         
     | 
| 
      
 348 
     | 
    
         
            +
                <zeroOrMore>
         
     | 
| 
      
 349 
     | 
    
         
            +
                  <ref name="subdivision"/>
         
     | 
| 
      
 350 
     | 
    
         
            +
                </zeroOrMore>
         
     | 
| 
      
 351 
     | 
    
         
            +
                <optional>
         
     | 
| 
      
 352 
     | 
    
         
            +
                  <ref name="abbreviation"/>
         
     | 
| 
      
 353 
     | 
    
         
            +
                </optional>
         
     | 
| 
      
 354 
     | 
    
         
            +
                <zeroOrMore>
         
     | 
| 
      
 355 
     | 
    
         
            +
                  <ref name="uri"/>
         
     | 
| 
      
 356 
     | 
    
         
            +
                </zeroOrMore>
         
     | 
| 
      
 357 
     | 
    
         
            +
                <zeroOrMore>
         
     | 
| 
      
 358 
     | 
    
         
            +
                  <ref name="org-identifier"/>
         
     | 
| 
      
 359 
     | 
    
         
            +
                </zeroOrMore>
         
     | 
| 
      
 360 
     | 
    
         
            +
                <zeroOrMore>
         
     | 
| 
      
 361 
     | 
    
         
            +
                  <ref name="contact"/>
         
     | 
| 
      
 362 
     | 
    
         
            +
                </zeroOrMore>
         
     | 
| 
      
 363 
     | 
    
         
            +
                <optional>
         
     | 
| 
      
 364 
     | 
    
         
            +
                  <ref name="logo"/>
         
     | 
| 
      
 365 
     | 
    
         
            +
                </optional>
         
     | 
| 
      
 366 
     | 
    
         
            +
              </define>
         
     | 
| 
       364 
367 
     | 
    
         
             
              <define name="orgname">
         
     | 
| 
       365 
368 
     | 
    
         
             
                <element name="name">
         
     | 
| 
       366 
369 
     | 
    
         
             
                  <choice>
         
     | 
| 
         @@ -371,10 +374,10 @@ 
     | 
|
| 
       371 
374 
     | 
    
         
             
              </define>
         
     | 
| 
       372 
375 
     | 
    
         
             
              <define name="subdivision">
         
     | 
| 
       373 
376 
     | 
    
         
             
                <element name="subdivision">
         
     | 
| 
       374 
     | 
    
         
            -
                  < 
     | 
| 
       375 
     | 
    
         
            -
                    < 
     | 
| 
       376 
     | 
    
         
            -
             
     | 
| 
       377 
     | 
    
         
            -
                   
     | 
| 
      
 377 
     | 
    
         
            +
                  <optional>
         
     | 
| 
      
 378 
     | 
    
         
            +
                    <attribute name="type"/>
         
     | 
| 
      
 379 
     | 
    
         
            +
                  </optional>
         
     | 
| 
      
 380 
     | 
    
         
            +
                  <ref name="OrganizationType"/>
         
     | 
| 
       378 
381 
     | 
    
         
             
                </element>
         
     | 
| 
       379 
382 
     | 
    
         
             
              </define>
         
     | 
| 
       380 
383 
     | 
    
         
             
              <define name="logo">
         
     | 
    
        data/metanorma-iho.gemspec
    CHANGED
    
    | 
         @@ -27,7 +27,7 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       27 
27 
     | 
    
         
             
              spec.require_paths = ["lib"]
         
     | 
| 
       28 
28 
     | 
    
         
             
              spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
         
     | 
| 
       29 
29 
     | 
    
         | 
| 
       30 
     | 
    
         
            -
              spec.add_dependency "metanorma-generic", "~> 2.6. 
     | 
| 
      
 30 
     | 
    
         
            +
              spec.add_dependency "metanorma-generic", "~> 2.6.2"
         
     | 
| 
       31 
31 
     | 
    
         | 
| 
       32 
32 
     | 
    
         
             
              spec.add_development_dependency "debug"
         
     | 
| 
       33 
33 
     | 
    
         
             
              spec.add_development_dependency "equivalent-xml", "~> 0.6"
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: metanorma-iho
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.9. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.9.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Ribose Inc.
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2024- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2024-03-04 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: metanorma-generic
         
     | 
| 
         @@ -16,14 +16,14 @@ dependencies: 
     | 
|
| 
       16 
16 
     | 
    
         
             
                requirements:
         
     | 
| 
       17 
17 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       18 
18 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       19 
     | 
    
         
            -
                    version: 2.6. 
     | 
| 
      
 19 
     | 
    
         
            +
                    version: 2.6.2
         
     | 
| 
       20 
20 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       21 
21 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       22 
22 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       23 
23 
     | 
    
         
             
                requirements:
         
     | 
| 
       24 
24 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       25 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
     | 
    
         
            -
                    version: 2.6. 
     | 
| 
      
 26 
     | 
    
         
            +
                    version: 2.6.2
         
     | 
| 
       27 
27 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       28 
28 
     | 
    
         
             
              name: debug
         
     | 
| 
       29 
29 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     |