|
3072 | 3072 |
|
3073 | 3073 | </xsl:attribute-set>
|
3074 | 3074 |
|
| 3075 | + <xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style"> |
| 3076 | + </xsl:attribute-set> |
| 3077 | + |
3075 | 3078 | <xsl:attribute-set name="definition-style">
|
3076 | 3079 |
|
3077 | 3080 | <xsl:attribute name="space-before">2pt</xsl:attribute>
|
@@ -11360,14 +11363,17 @@
|
11360 | 11363 | </fo:block>
|
11361 | 11364 | </xsl:template>
|
11362 | 11365 |
|
11363 |
| - <xsl:template match="*[local-name() = 'domain']"> |
| 11366 | + <!-- <xsl:template match="*[local-name() = 'domain']"> --> |
11364 | 11367 | <!-- https://github.com/metanorma/isodoc/issues/607
|
11365 | 11368 | <fo:inline xsl:use-attribute-sets="domain-style"><<xsl:apply-templates/>></fo:inline>
|
11366 | 11369 | <xsl:text> </xsl:text> -->
|
11367 |
| - <xsl:if test="not(@hidden = 'true')"> |
| 11370 | + <!-- <xsl:if test="not(@hidden = 'true')"> |
11368 | 11371 | <xsl:apply-templates/>
|
11369 | 11372 | </xsl:if>
|
11370 |
| - </xsl:template> |
| 11373 | + </xsl:template> --> |
| 11374 | + |
| 11375 | + <!-- https://github.com/metanorma/isodoc/issues/632#issuecomment-2567163931 --> |
| 11376 | + <xsl:template match="*[local-name() = 'domain']"/> |
11371 | 11377 |
|
11372 | 11378 | <xsl:template match="*[local-name() = 'admitted']">
|
11373 | 11379 | <fo:block xsl:use-attribute-sets="admitted-style">
|
|
11382 | 11388 | </xsl:template>
|
11383 | 11389 |
|
11384 | 11390 | <xsl:template name="setStyle_preferred">
|
11385 |
| - <xsl:if test="*[local-name() = 'strong']"> |
11386 |
| - <xsl:attribute name="font-weight">normal</xsl:attribute> |
11387 |
| - </xsl:if> |
| 11391 | + |
| 11392 | + <xsl:if test="*[local-name() = 'strong']"> |
| 11393 | + <xsl:attribute name="font-weight">normal</xsl:attribute> |
| 11394 | + </xsl:if> |
| 11395 | + |
11388 | 11396 | </xsl:template>
|
11389 | 11397 |
|
11390 | 11398 | <!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
|
11394 | 11402 | </xsl:template>
|
11395 | 11403 | <!-- End Preferred, admitted, deprecated -->
|
11396 | 11404 |
|
| 11405 | + <xsl:template match="*[local-name() = 'fmt-related']"> |
| 11406 | + <fo:block role="SKIP" xsl:use-attribute-sets="related-block-style"> |
| 11407 | + <xsl:apply-templates/> |
| 11408 | + </fo:block> |
| 11409 | + </xsl:template> |
| 11410 | + <xsl:template match="*[local-name() = 'fmt-related']/*[local-name() = 'p']" priority="4"> |
| 11411 | + <fo:block> |
| 11412 | + <xsl:apply-templates/> |
| 11413 | + </fo:block> |
| 11414 | + </xsl:template> |
| 11415 | + |
11397 | 11416 | <!-- ========== -->
|
11398 | 11417 | <!-- definition -->
|
11399 | 11418 | <!-- ========== -->
|
|
13088 | 13107 | <xsl:template match="*[local-name() = 'name'][following-sibling::*[1][local-name() = 'fmt-name']]" mode="update_xml_pres"/>
|
13089 | 13108 | <xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
13090 | 13109 | <xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_pres"/>
|
| 13110 | + <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> --> |
| 13111 | + <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_step1"/> |
| 13112 | + <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_pres"/> --> |
| 13113 | + <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_pres"/> |
| 13114 | + <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> --> |
| 13115 | + <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_step1"/> |
| 13116 | + <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_pres"/> --> |
| 13117 | + <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_pres"/> |
| 13118 | + <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_step1"/> --> |
| 13119 | + <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_step1"/> |
| 13120 | + <xsl:template match="*[local-name() = 'related']" mode="update_xml_step1"/> |
| 13121 | + <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_pres"/> --> |
| 13122 | + <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_pres"/> |
| 13123 | + <xsl:template match="*[local-name() = 'related']" mode="update_xml_pres"/> |
| 13124 | + <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_step1"/> --> |
| 13125 | + <xsl:template match="*[local-name() = 'definition']" mode="update_xml_step1"/> |
| 13126 | + <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_pres"/> --> |
| 13127 | + <xsl:template match="*[local-name() = 'definition']" mode="update_xml_pres"/> |
| 13128 | + <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_step1"/> --> |
| 13129 | + <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_step1"/> |
| 13130 | + <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_pres"/> --> |
| 13131 | + <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_pres"/> |
| 13132 | + |
| 13133 | + <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/> |
| 13134 | + <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_pres"/> |
13091 | 13135 |
|
13092 | 13136 | <xsl:template match="*[local-name() = 'p'][@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][local-name() = 'section-title']]" mode="update_xml_step1">
|
13093 | 13137 | <xsl:copy>
|
|
13132 | 13176 | </xsl:element>
|
13133 | 13177 | </xsl:template>
|
13134 | 13178 |
|
| 13179 | + <xsl:template match="*[local-name() = 'fmt-preferred']"/> |
| 13180 | + <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_step1"> |
| 13181 | + <xsl:apply-templates mode="update_xml_step1"/> |
| 13182 | + </xsl:template> |
| 13183 | + <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_step1"> |
| 13184 | + <xsl:element name="preferred" namespace="{$namespace_full}"> |
| 13185 | + <xsl:copy-of select="@*"/> |
| 13186 | + <xsl:apply-templates mode="update_xml_step1"/> |
| 13187 | + </xsl:element> |
| 13188 | + </xsl:template> |
| 13189 | + <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_pres"> |
| 13190 | + <xsl:apply-templates mode="update_xml_pres"/> |
| 13191 | + </xsl:template> |
| 13192 | + <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_pres"> |
| 13193 | + <xsl:element name="preferred" namespace="{$namespace_full}"> |
| 13194 | + <xsl:copy-of select="@*"/> |
| 13195 | + <xsl:apply-templates mode="update_xml_pres"/> |
| 13196 | + </xsl:element> |
| 13197 | + </xsl:template> |
| 13198 | + |
| 13199 | + <xsl:template match="*[local-name() = 'fmt-admitted']"/> |
| 13200 | + <xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_step1"> |
| 13201 | + <xsl:apply-templates mode="update_xml_step1"/> |
| 13202 | + </xsl:template> |
| 13203 | + <xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_step1"> |
| 13204 | + <xsl:element name="admitted" namespace="{$namespace_full}"> |
| 13205 | + <xsl:copy-of select="@*"/> |
| 13206 | + <xsl:apply-templates mode="update_xml_step1"/> |
| 13207 | + </xsl:element> |
| 13208 | + </xsl:template> |
| 13209 | + <xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_pres"> |
| 13210 | + <xsl:apply-templates mode="update_xml_pres"/> |
| 13211 | + </xsl:template> |
| 13212 | + <xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_pres"> |
| 13213 | + <xsl:element name="admitted" namespace="{$namespace_full}"> |
| 13214 | + <xsl:copy-of select="@*"/> |
| 13215 | + <xsl:apply-templates mode="update_xml_pres"/> |
| 13216 | + </xsl:element> |
| 13217 | + </xsl:template> |
| 13218 | + |
| 13219 | + <xsl:template match="*[local-name() = 'fmt-deprecates']"/> |
| 13220 | + <xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_step1"> |
| 13221 | + <xsl:apply-templates mode="update_xml_step1"/> |
| 13222 | + </xsl:template> |
| 13223 | + <xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_step1"> |
| 13224 | + <xsl:element name="deprecates" namespace="{$namespace_full}"> |
| 13225 | + <xsl:copy-of select="@*"/> |
| 13226 | + <xsl:apply-templates mode="update_xml_step1"/> |
| 13227 | + </xsl:element> |
| 13228 | + </xsl:template> |
| 13229 | + <xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_pres"> |
| 13230 | + <xsl:apply-templates mode="update_xml_pres"/> |
| 13231 | + </xsl:template> |
| 13232 | + <xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_pres"> |
| 13233 | + <xsl:element name="deprecates" namespace="{$namespace_full}"> |
| 13234 | + <xsl:copy-of select="@*"/> |
| 13235 | + <xsl:apply-templates mode="update_xml_pres"/> |
| 13236 | + </xsl:element> |
| 13237 | + </xsl:template> |
| 13238 | + |
| 13239 | + <xsl:template match="*[local-name() = 'fmt-definition']"/> |
| 13240 | + <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_step1"> |
| 13241 | + <xsl:element name="definition" namespace="{$namespace_full}"> |
| 13242 | + <xsl:copy-of select="@*"/> |
| 13243 | + <xsl:apply-templates mode="update_xml_step1"/> |
| 13244 | + </xsl:element> |
| 13245 | + </xsl:template> |
| 13246 | + <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_pres"> |
| 13247 | + <xsl:element name="definition" namespace="{$namespace_full}"> |
| 13248 | + <xsl:copy-of select="@*"/> |
| 13249 | + <xsl:apply-templates mode="update_xml_pres"/> |
| 13250 | + </xsl:element> |
| 13251 | + </xsl:template> |
| 13252 | + |
| 13253 | + <xsl:template match="*[local-name() = 'fmt-termsource']"/> |
| 13254 | + <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_step1"> |
| 13255 | + <xsl:element name="termsource" namespace="{$namespace_full}"> |
| 13256 | + <xsl:copy-of select="@*"/> |
| 13257 | + <xsl:apply-templates mode="update_xml_step1"/> |
| 13258 | + </xsl:element> |
| 13259 | + </xsl:template> |
| 13260 | + <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_pres"> |
| 13261 | + <xsl:element name="termsource" namespace="{$namespace_full}"> |
| 13262 | + <xsl:copy-of select="@*"/> |
| 13263 | + <xsl:apply-templates mode="update_xml_pres"/> |
| 13264 | + </xsl:element> |
| 13265 | + </xsl:template> |
| 13266 | + |
13135 | 13267 | <xsl:template match="*[local-name() = 'span'][ @class = 'fmt-caption-label' or @class = 'fmt-element-name' or @class = 'fmt-caption-delim' or @class = 'fmt-autonum-delim']" mode="update_xml_step1" priority="3">
|
13136 | 13268 | <xsl:apply-templates mode="update_xml_step1"/>
|
13137 | 13269 | </xsl:template>
|
|
0 commit comments