metanorma-ogc 1.2.13 → 1.2.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd89758a6852f556b8e3396a369e64727dd6555c062804fc29fef131fd646796
4
- data.tar.gz: 2c73d25ef997c720b536b795ea4f46f17d3cf5f8f3e5367138f9e67ffe99dc5a
3
+ metadata.gz: 4ff75971b081c5075f753de7e949e8ec739e07e9da4cd912407acd32506ce0d8
4
+ data.tar.gz: 74b3cebdae968c1d5b426f81858d0fea1b5bedcfcaff2435ec354f7d8a647ed6
5
5
  SHA512:
6
- metadata.gz: 1b9e5efae9844487dc75ddb2b4e234f448c8c1aab778c974b34e24906b91f2abb2f1a612c50211207599c641e2134e0573a0ec8f6c27a7308b5ec9fa3c06caf0
7
- data.tar.gz: 6374eb0d0cca8771262d11c06cd925429cfc3bfbf1cf9376703abd09eb79399feaba8228c232150b9f32a857e6622d032eae3572f2fa492de396743ec3d3fb5b
6
+ metadata.gz: b377f620327e123072075007ade92436d0c7ef5d580cede3977b742056df390d87dcc259c037feef74c1f2dc2a31d5b8f6eea1104158603aef68c0bbb26beefd
7
+ data.tar.gz: c0784e6eb59da69f1d96b7c1cdc38cf50f9268f1f5f4d55fbecc638db07ec44f458ac7f0081459c25934bc7461aed3b41a82b20a81b0beebfdb035970b435577
@@ -2042,206 +2042,234 @@
2042
2042
  <xsl:call-template name="add-zero-spaces-java"/>
2043
2043
  </xsl:template><xsl:template match="*[local-name()='table']" name="table">
2044
2044
 
2045
- <xsl:variable name="simple-table">
2046
- <xsl:call-template name="getSimpleTable"/>
2047
- </xsl:variable>
2045
+ <xsl:variable name="table">
2048
2046
 
2049
-
2050
-
2051
-
2052
- <fo:block> </fo:block>
2053
-
2054
-
2055
- <!-- <xsl:if test="$namespace = 'bipm'">
2056
- <fo:block>&#xA0;</fo:block>
2057
- </xsl:if> -->
2058
-
2059
- <!-- $namespace = 'iso' or -->
2060
-
2061
- <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
2062
-
2063
-
2064
-
2065
- <xsl:call-template name="fn_name_display"/>
2047
+ <xsl:variable name="simple-table">
2048
+ <xsl:call-template name="getSimpleTable"/>
2049
+ </xsl:variable>
2066
2050
 
2067
2051
 
2068
-
2069
- <xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
2070
-
2071
- <!-- <xsl:variable name="cols-count">
2072
- <xsl:choose>
2073
- <xsl:when test="*[local-name()='thead']">
2074
- <xsl:call-template name="calculate-columns-numbers">
2075
- <xsl:with-param name="table-row" select="*[local-name()='thead']/*[local-name()='tr'][1]"/>
2076
- </xsl:call-template>
2077
- </xsl:when>
2078
- <xsl:otherwise>
2079
- <xsl:call-template name="calculate-columns-numbers">
2080
- <xsl:with-param name="table-row" select="*[local-name()='tbody']/*[local-name()='tr'][1]"/>
2081
- </xsl:call-template>
2082
- </xsl:otherwise>
2083
- </xsl:choose>
2084
- </xsl:variable> -->
2085
- <!-- cols-count=<xsl:copy-of select="$cols-count"/> -->
2086
- <!-- cols-count2=<xsl:copy-of select="$cols-count2"/> -->
2087
-
2088
-
2089
-
2090
- <xsl:variable name="colwidths">
2091
- <xsl:if test="not(*[local-name()='colgroup']/*[local-name()='col'])">
2092
- <xsl:call-template name="calculate-column-widths">
2093
- <xsl:with-param name="cols-count" select="$cols-count"/>
2094
- <xsl:with-param name="table" select="$simple-table"/>
2095
- </xsl:call-template>
2096
- </xsl:if>
2097
- </xsl:variable>
2098
- <!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
2099
-
2100
- <!-- <xsl:variable name="colwidths2">
2101
- <xsl:call-template name="calculate-column-widths">
2102
- <xsl:with-param name="cols-count" select="$cols-count"/>
2103
- </xsl:call-template>
2104
- </xsl:variable> -->
2105
-
2106
- <!-- cols-count=<xsl:copy-of select="$cols-count"/>
2107
- colwidthsNew=<xsl:copy-of select="$colwidths"/>
2108
- colwidthsOld=<xsl:copy-of select="$colwidths2"/>z -->
2109
-
2110
- <xsl:variable name="margin-left">
2111
- <xsl:choose>
2112
- <xsl:when test="sum(xalan:nodeset($colwidths)//column) &gt; 75">15</xsl:when>
2113
- <xsl:otherwise>0</xsl:otherwise>
2114
- </xsl:choose>
2115
- </xsl:variable>
2116
-
2117
- <fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
2118
2052
 
2119
2053
 
2120
-
2121
-
2122
-
2054
+ <fo:block> </fo:block>
2123
2055
 
2124
2056
 
2057
+ <!-- <xsl:if test="$namespace = 'bipm'">
2058
+ <fo:block>&#xA0;</fo:block>
2059
+ </xsl:if> -->
2125
2060
 
2126
- <xsl:attribute name="margin-left">0mm</xsl:attribute>
2127
- <xsl:attribute name="margin-right">0mm</xsl:attribute>
2128
- <xsl:attribute name="space-after">12pt</xsl:attribute>
2129
-
2061
+ <!-- $namespace = 'iso' or -->
2130
2062
 
2131
- <xsl:if test="ancestor::*[local-name()='sections']">
2132
- <xsl:attribute name="font-size">9pt</xsl:attribute>
2133
- </xsl:if>
2063
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
2134
2064
 
2065
+
2135
2066
 
2067
+ <xsl:call-template name="fn_name_display"/>
2136
2068
 
2069
+
2137
2070
 
2071
+ <xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
2138
2072
 
2073
+ <!-- <xsl:variable name="cols-count">
2074
+ <xsl:choose>
2075
+ <xsl:when test="*[local-name()='thead']">
2076
+ <xsl:call-template name="calculate-columns-numbers">
2077
+ <xsl:with-param name="table-row" select="*[local-name()='thead']/*[local-name()='tr'][1]"/>
2078
+ </xsl:call-template>
2079
+ </xsl:when>
2080
+ <xsl:otherwise>
2081
+ <xsl:call-template name="calculate-columns-numbers">
2082
+ <xsl:with-param name="table-row" select="*[local-name()='tbody']/*[local-name()='tr'][1]"/>
2083
+ </xsl:call-template>
2084
+ </xsl:otherwise>
2085
+ </xsl:choose>
2086
+ </xsl:variable> -->
2087
+ <!-- cols-count=<xsl:copy-of select="$cols-count"/> -->
2088
+ <!-- cols-count2=<xsl:copy-of select="$cols-count2"/> -->
2139
2089
 
2140
2090
 
2141
- <xsl:variable name="table_attributes">
2142
- <attribute name="table-layout">fixed</attribute>
2143
- <attribute name="width">
2144
- <xsl:choose>
2145
- <xsl:when test="@width"><xsl:value-of select="@width"/></xsl:when>
2146
- <xsl:otherwise>100%</xsl:otherwise>
2147
- </xsl:choose>
2148
- </attribute>
2149
- <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
2150
- <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
2091
+
2092
+ <xsl:variable name="colwidths">
2093
+ <xsl:if test="not(*[local-name()='colgroup']/*[local-name()='col'])">
2094
+ <xsl:call-template name="calculate-column-widths">
2095
+ <xsl:with-param name="cols-count" select="$cols-count"/>
2096
+ <xsl:with-param name="table" select="$simple-table"/>
2097
+ </xsl:call-template>
2098
+ </xsl:if>
2099
+ </xsl:variable>
2100
+ <!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
2101
+
2102
+ <!-- <xsl:variable name="colwidths2">
2103
+ <xsl:call-template name="calculate-column-widths">
2104
+ <xsl:with-param name="cols-count" select="$cols-count"/>
2105
+ </xsl:call-template>
2106
+ </xsl:variable> -->
2107
+
2108
+ <!-- cols-count=<xsl:copy-of select="$cols-count"/>
2109
+ colwidthsNew=<xsl:copy-of select="$colwidths"/>
2110
+ colwidthsOld=<xsl:copy-of select="$colwidths2"/>z -->
2111
+
2112
+ <xsl:variable name="margin-left">
2113
+ <xsl:choose>
2114
+ <xsl:when test="sum(xalan:nodeset($colwidths)//column) &gt; 75">15</xsl:when>
2115
+ <xsl:otherwise>0</xsl:otherwise>
2116
+ </xsl:choose>
2117
+ </xsl:variable>
2118
+
2119
+ <fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
2151
2120
 
2152
2121
 
2122
+
2123
+
2124
+
2153
2125
 
2154
2126
 
2155
2127
 
2156
- <attribute name="margin-left">0mm</attribute>
2157
- <attribute name="margin-right">0mm</attribute>
2158
-
2159
-
2160
-
2128
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
2129
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
2130
+ <xsl:attribute name="space-after">12pt</xsl:attribute>
2131
+
2161
2132
 
2162
-
2133
+ <xsl:if test="ancestor::*[local-name()='sections']">
2134
+ <xsl:attribute name="font-size">9pt</xsl:attribute>
2135
+ </xsl:if>
2163
2136
 
2164
- </xsl:variable>
2165
-
2166
-
2167
- <fo:table id="{@id}" table-omit-footer-at-break="true">
2168
2137
 
2169
- <xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
2170
- <xsl:attribute name="{@name}">
2171
- <xsl:value-of select="."/>
2172
- </xsl:attribute>
2173
- </xsl:for-each>
2174
2138
 
2175
- <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name']"/>
2176
- <xsl:if test="$isNoteOrFnExist = 'true'">
2177
- <xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
2178
- </xsl:if>
2179
2139
 
2180
- <xsl:choose>
2181
- <xsl:when test="*[local-name()='colgroup']/*[local-name()='col']">
2182
- <xsl:for-each select="*[local-name()='colgroup']/*[local-name()='col']">
2183
- <fo:table-column column-width="{@width}"/>
2184
- </xsl:for-each>
2185
- </xsl:when>
2186
- <xsl:otherwise>
2187
- <xsl:for-each select="xalan:nodeset($colwidths)//column">
2188
- <xsl:choose>
2189
- <xsl:when test=". = 1 or . = 0">
2190
- <fo:table-column column-width="proportional-column-width(2)"/>
2191
- </xsl:when>
2192
- <xsl:otherwise>
2193
- <fo:table-column column-width="proportional-column-width({.})"/>
2194
- </xsl:otherwise>
2195
- </xsl:choose>
2196
- </xsl:for-each>
2197
- </xsl:otherwise>
2198
- </xsl:choose>
2199
2140
 
2200
- <xsl:choose>
2201
- <xsl:when test="not(*[local-name()='tbody']) and *[local-name()='thead']">
2202
- <xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
2203
- </xsl:when>
2204
- <xsl:otherwise>
2205
- <xsl:apply-templates/>
2206
- </xsl:otherwise>
2207
- </xsl:choose>
2208
2141
 
2209
- </fo:table>
2210
-
2211
- <xsl:variable name="colgroup" select="*[local-name()='colgroup']"/>
2212
- <xsl:for-each select="*[local-name()='tbody']"><!-- select context to tbody -->
2213
- <xsl:call-template name="insertTableFooterInSeparateTable">
2214
- <xsl:with-param name="table_attributes" select="$table_attributes"/>
2215
- <xsl:with-param name="colwidths" select="$colwidths"/>
2216
- <xsl:with-param name="colgroup" select="$colgroup"/>
2217
- </xsl:call-template>
2218
- </xsl:for-each>
2219
-
2220
- <!-- insert footer as table -->
2221
- <!-- <fo:table>
2222
- <xsl:for-each select="xalan::nodeset($table_attributes)/attribute">
2223
- <xsl:attribute name="{@name}">
2224
- <xsl:value-of select="."/>
2225
- </xsl:attribute>
2226
- </xsl:for-each>
2142
+ <xsl:variable name="table_width">
2143
+ <!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
2144
+
2145
+
2146
+
2147
+ <xsl:choose>
2148
+ <xsl:when test="@width"><xsl:value-of select="@width"/></xsl:when>
2149
+ <xsl:otherwise>100%</xsl:otherwise>
2150
+ </xsl:choose>
2151
+
2152
+ </xsl:variable>
2227
2153
 
2228
- <xsl:for-each select="xalan:nodeset($colwidths)//column">
2154
+ <xsl:variable name="table_attributes">
2155
+ <attribute name="table-layout">fixed</attribute>
2156
+ <attribute name="width"><xsl:value-of select="normalize-space($table_width)"/></attribute>
2157
+ <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
2158
+ <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
2159
+
2160
+
2161
+
2162
+
2163
+
2164
+ <attribute name="margin-left">0mm</attribute>
2165
+ <attribute name="margin-right">0mm</attribute>
2166
+
2167
+
2168
+
2169
+
2170
+
2171
+
2172
+ </xsl:variable>
2173
+
2174
+
2175
+ <fo:table id="{@id}" table-omit-footer-at-break="true">
2176
+
2177
+ <xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
2178
+ <xsl:attribute name="{@name}">
2179
+ <xsl:value-of select="."/>
2180
+ </xsl:attribute>
2181
+ </xsl:for-each>
2182
+
2183
+ <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name']"/>
2184
+ <xsl:if test="$isNoteOrFnExist = 'true'">
2185
+ <xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
2186
+ </xsl:if>
2187
+
2188
+ <xsl:choose>
2189
+ <xsl:when test="*[local-name()='colgroup']/*[local-name()='col']">
2190
+ <xsl:for-each select="*[local-name()='colgroup']/*[local-name()='col']">
2191
+ <fo:table-column column-width="{@width}"/>
2192
+ </xsl:for-each>
2193
+ </xsl:when>
2194
+ <xsl:otherwise>
2195
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
2196
+ <xsl:choose>
2197
+ <xsl:when test=". = 1 or . = 0">
2198
+ <fo:table-column column-width="proportional-column-width(2)"/>
2199
+ </xsl:when>
2200
+ <xsl:otherwise>
2201
+ <fo:table-column column-width="proportional-column-width({.})"/>
2202
+ </xsl:otherwise>
2203
+ </xsl:choose>
2204
+ </xsl:for-each>
2205
+ </xsl:otherwise>
2206
+ </xsl:choose>
2207
+
2229
2208
  <xsl:choose>
2230
- <xsl:when test=". = 1 or . = 0">
2231
- <fo:table-column column-width="proportional-column-width(2)"/>
2209
+ <xsl:when test="not(*[local-name()='tbody']) and *[local-name()='thead']">
2210
+ <xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
2232
2211
  </xsl:when>
2233
2212
  <xsl:otherwise>
2234
- <fo:table-column column-width="proportional-column-width({.})"/>
2213
+ <xsl:apply-templates/>
2235
2214
  </xsl:otherwise>
2236
2215
  </xsl:choose>
2216
+
2217
+ </fo:table>
2218
+
2219
+ <xsl:variable name="colgroup" select="*[local-name()='colgroup']"/>
2220
+ <xsl:for-each select="*[local-name()='tbody']"><!-- select context to tbody -->
2221
+ <xsl:call-template name="insertTableFooterInSeparateTable">
2222
+ <xsl:with-param name="table_attributes" select="$table_attributes"/>
2223
+ <xsl:with-param name="colwidths" select="$colwidths"/>
2224
+ <xsl:with-param name="colgroup" select="$colgroup"/>
2225
+ </xsl:call-template>
2237
2226
  </xsl:for-each>
2238
- </fo:table>-->
2239
-
2240
-
2241
-
2242
-
2243
-
2244
- </fo:block-container>
2227
+
2228
+ <!-- insert footer as table -->
2229
+ <!-- <fo:table>
2230
+ <xsl:for-each select="xalan::nodeset($table_attributes)/attribute">
2231
+ <xsl:attribute name="{@name}">
2232
+ <xsl:value-of select="."/>
2233
+ </xsl:attribute>
2234
+ </xsl:for-each>
2235
+
2236
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
2237
+ <xsl:choose>
2238
+ <xsl:when test=". = 1 or . = 0">
2239
+ <fo:table-column column-width="proportional-column-width(2)"/>
2240
+ </xsl:when>
2241
+ <xsl:otherwise>
2242
+ <fo:table-column column-width="proportional-column-width({.})"/>
2243
+ </xsl:otherwise>
2244
+ </xsl:choose>
2245
+ </xsl:for-each>
2246
+ </fo:table>-->
2247
+
2248
+
2249
+
2250
+
2251
+
2252
+ </fo:block-container>
2253
+ </xsl:variable>
2254
+
2255
+
2256
+
2257
+ <xsl:choose>
2258
+ <xsl:when test="@width">
2259
+
2260
+ <!-- centered table when table name is centered (see table-name-style) -->
2261
+
2262
+
2263
+
2264
+ <xsl:copy-of select="$table"/>
2265
+
2266
+
2267
+ </xsl:when>
2268
+ <xsl:otherwise>
2269
+ <xsl:copy-of select="$table"/>
2270
+ </xsl:otherwise>
2271
+ </xsl:choose>
2272
+
2245
2273
  </xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
2246
2274
  <xsl:if test="normalize-space() != ''">
2247
2275
  <fo:block xsl:use-attribute-sets="table-name-style">
@@ -3087,7 +3115,7 @@
3087
3115
  <xsl:with-param name="table" select="$html-table"/>
3088
3116
  </xsl:call-template>
3089
3117
  </xsl:variable>
3090
- <!-- colwidths=<xsl:value-of select="$colwidths"/> -->
3118
+ <!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
3091
3119
  <xsl:variable name="maxlength_dt">
3092
3120
  <xsl:call-template name="getMaxLength_dt"/>
3093
3121
  </xsl:variable>
@@ -3116,13 +3144,22 @@
3116
3144
  </xsl:when>
3117
3145
  <xsl:otherwise>
3118
3146
  <xsl:choose>
3147
+ <!-- to set width check most wide chars like `W` -->
3119
3148
  <xsl:when test="normalize-space($maxlength_dt) != '' and number($maxlength_dt) &lt;= 2"> <!-- if dt contains short text like t90, a, etc -->
3120
- <fo:table-column column-width="5%"/>
3121
- <fo:table-column column-width="95%"/>
3149
+ <fo:table-column column-width="7%"/>
3150
+ <fo:table-column column-width="93%"/>
3151
+ </xsl:when>
3152
+ <xsl:when test="normalize-space($maxlength_dt) != '' and number($maxlength_dt) &lt;= 5"> <!-- if dt contains short text like ABC, etc -->
3153
+ <fo:table-column column-width="15%"/>
3154
+ <fo:table-column column-width="85%"/>
3122
3155
  </xsl:when>
3123
- <xsl:when test="normalize-space($maxlength_dt) != '' and number($maxlength_dt) &lt;= 5"> <!-- if dt contains short text like t90, a, etc -->
3124
- <fo:table-column column-width="10%"/>
3125
- <fo:table-column column-width="90%"/>
3156
+ <xsl:when test="normalize-space($maxlength_dt) != '' and number($maxlength_dt) &lt;= 7"> <!-- if dt contains short text like ABCDEF, etc -->
3157
+ <fo:table-column column-width="20%"/>
3158
+ <fo:table-column column-width="80%"/>
3159
+ </xsl:when>
3160
+ <xsl:when test="normalize-space($maxlength_dt) != '' and number($maxlength_dt) &lt;= 10"> <!-- if dt contains short text like ABCDEFEF, etc -->
3161
+ <fo:table-column column-width="25%"/>
3162
+ <fo:table-column column-width="75%"/>
3126
3163
  </xsl:when>
3127
3164
  <!-- <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 1.7">
3128
3165
  <fo:table-column column-width="60%"/>
@@ -3434,6 +3471,10 @@
3434
3471
  <xsl:param name="text" select="."/>
3435
3472
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
3436
3473
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| )','$1​')"/>
3474
+ </xsl:template><xsl:template name="add-zero-spaces-link-java">
3475
+ <xsl:param name="text" select="."/>
3476
+ <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
3477
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| |,)','$1​')"/>
3437
3478
  </xsl:template><xsl:template name="add-zero-spaces">
3438
3479
  <xsl:param name="text" select="."/>
3439
3480
  <xsl:variable name="zero-space-after-chars">-</xsl:variable>
@@ -3694,6 +3735,11 @@
3694
3735
  <!-- replace start and end spaces to non-break space -->
3695
3736
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),'(^ )|( $)',' ')"/>
3696
3737
  </xsl:copy>
3738
+ </xsl:template><xsl:template match="mathml:mi[. = ',' and not(following-sibling::*[1][local-name() = 'mtext' and text() = ' '])]" mode="mathml">
3739
+ <xsl:copy>
3740
+ <xsl:apply-templates select="@*|node()" mode="mathml"/>
3741
+ </xsl:copy>
3742
+ <mathml:mspace width="0.5ex"/>
3697
3743
  </xsl:template><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
3698
3744
  <xsl:variable name="target">
3699
3745
  <xsl:choose>
@@ -3715,7 +3761,10 @@
3715
3761
  <fo:basic-link external-destination="{@target}" fox:alt-text="{@target}">
3716
3762
  <xsl:choose>
3717
3763
  <xsl:when test="normalize-space(.) = ''">
3718
- <xsl:value-of select="$target"/>
3764
+ <!-- <xsl:value-of select="$target"/> -->
3765
+ <xsl:call-template name="add-zero-spaces-link-java">
3766
+ <xsl:with-param name="text" select="$target"/>
3767
+ </xsl:call-template>
3719
3768
  </xsl:when>
3720
3769
  <xsl:otherwise>
3721
3770
  <xsl:apply-templates/>
@@ -4237,6 +4286,8 @@
4237
4286
  <xsl:copy>
4238
4287
  <xsl:apply-templates mode="contents_item"/>
4239
4288
  </xsl:copy>
4289
+ </xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents_item">
4290
+ <xsl:copy-of select="."/>
4240
4291
  </xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
4241
4292
  <xsl:text> </xsl:text>
4242
4293
  </xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
@@ -4650,11 +4701,13 @@
4650
4701
  </xsl:if>
4651
4702
  </xsl:if>
4652
4703
 
4704
+
4653
4705
  <fo:block-container margin-left="0mm">
4654
4706
 
4655
4707
  <fo:block xsl:use-attribute-sets="quote-style">
4656
4708
  <!-- <xsl:apply-templates select=".//*[local-name() = 'p']"/> -->
4657
- <xsl:apply-templates select="./*[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
4709
+
4710
+ <xsl:apply-templates select="./node()[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
4658
4711
  </fo:block>
4659
4712
  <xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
4660
4713
  <fo:block xsl:use-attribute-sets="quote-source-style">
@@ -5212,7 +5265,7 @@
5212
5265
  <xsl:param name="charDelim" select="', '"/>
5213
5266
  <xsl:choose>
5214
5267
  <xsl:when test="$sorting = 'true' or $sorting = 'yes'">
5215
- <xsl:for-each select="/*/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
5268
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
5216
5269
  <xsl:sort data-type="text" order="ascending"/>
5217
5270
  <xsl:call-template name="insertKeyword">
5218
5271
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
@@ -5221,7 +5274,7 @@
5221
5274
  </xsl:for-each>
5222
5275
  </xsl:when>
5223
5276
  <xsl:otherwise>
5224
- <xsl:for-each select="/*/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
5277
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
5225
5278
  <xsl:call-template name="insertKeyword">
5226
5279
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
5227
5280
  <xsl:with-param name="charDelim" select="$charDelim"/>
@@ -5238,6 +5291,9 @@
5238
5291
  <xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
5239
5292
  </xsl:choose>
5240
5293
  </xsl:template><xsl:template name="addPDFUAmeta">
5294
+ <xsl:variable name="lang">
5295
+ <xsl:call-template name="getLang"/>
5296
+ </xsl:variable>
5241
5297
  <fo:declarations>
5242
5298
  <pdf:catalog xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
5243
5299
  <pdf:dictionary type="normal" key="ViewerPreferences">
@@ -5250,13 +5306,16 @@
5250
5306
  <!-- Dublin Core properties go here -->
5251
5307
  <dc:title>
5252
5308
  <xsl:variable name="title">
5253
-
5254
-
5255
-
5256
- <xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'title'][@language = 'en']"/>
5257
-
5258
-
5259
-
5309
+ <xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
5310
+
5311
+
5312
+
5313
+
5314
+ <xsl:value-of select="*[local-name() = 'title'][@language = $lang]"/>
5315
+
5316
+
5317
+
5318
+ </xsl:for-each>
5260
5319
  </xsl:variable>
5261
5320
  <xsl:choose>
5262
5321
  <xsl:when test="normalize-space($title) != ''">
@@ -5268,17 +5327,21 @@
5268
5327
  </xsl:choose>
5269
5328
  </dc:title>
5270
5329
  <dc:creator>
5271
-
5272
-
5273
-
5274
- </dc:creator>
5275
- <dc:description>
5276
- <xsl:variable name="abstract">
5330
+ <xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
5331
+
5332
+ <xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
5333
+ <xsl:value-of select="*[local-name() = 'organization']/*[local-name() = 'name']"/>
5334
+ <xsl:if test="position() != last()">; </xsl:if>
5335
+ </xsl:for-each>
5277
5336
 
5278
5337
 
5279
5338
 
5339
+ </xsl:for-each>
5340
+ </dc:creator>
5341
+ <dc:description>
5342
+ <xsl:variable name="abstract">
5280
5343
 
5281
- <xsl:copy-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'abstract']//text()"/>
5344
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
5282
5345
 
5283
5346
 
5284
5347
  </xsl:variable>