Skip to content

Commit ce7cea1

Browse files
authored
Merge pull request #619 from ndw/v260
DocBook xslTNG version 2.6.0
2 parents fe82ae2 + b91a8b1 commit ce7cea1

3 files changed

Lines changed: 117 additions & 8 deletions

File tree

properties.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
ext {
33
xslTNGtitle = 'DocBook xslTNG'
44
xslTNGbaseName = 'docbook-xslTNG'
5-
xslTNGversion = '2.5.0'
6-
guideVersion = '2.5.0'
5+
xslTNGversion = '2.6.0'
6+
guideVersion = '2.6.0'
77
guidePrerelease = false
88

99
docbookVersion = '5.2'
1010
publishersVersion = '5.2'
1111

12-
saxonVersion = '12.5'
12+
saxonVersion = '12.8'
1313
saxonGroup = 'net.sf.saxon'
1414
saxonEdition = 'Saxon-HE'
1515
//saxonGroup = 'com.saxonica'
1616
//saxonEdition = 'Saxon-EE'
1717

18-
metadataExtractorVersion = '2.18.0'
19-
jingVersion = '20220510'
20-
xmlresolverVersion = '6.0.9'
21-
sincludeVersion = '5.2.4'
18+
metadataExtractorVersion = '2.19.0'
19+
jingVersion = '20241231'
20+
xmlresolverVersion = '6.0.19'
21+
sincludeVersion = '5.4.1'
2222
}

src/guide/xml/changelog.xml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,115 @@ be of interest to users of the stylesheets. See the commits and pull requests on
1010
<link xlink:href="https://github.com/docbook/xslTNG/">the repository</link> for
1111
finer detail.</para>
1212

13+
<section xml:id="r260">
14+
<info>
15+
<title>Changes in version 2.6.0</title>
16+
<productnumber>2.6.0</productnumber>
17+
<date>2025-06-29</date>
18+
</info>
19+
<itemizedlist>
20+
<listitem>
21+
<para>Fixed <link xlink:href="https://github.com/docbook/xslTNG/issues/616">#616</link>.
22+
The spacebar has a navigation purpose in the browser, so don’t interfere with that.
23+
</para>
24+
</listitem>
25+
<listitem>
26+
<para>Fixed <link xlink:href="https://github.com/docbook/xslTNG/issues/615">#615</link>.
27+
Title and subtitle elements now get attributes, for example
28+
<tag class="attribute">lang</tag>. This also has the benefit that headings for subtitles
29+
have a class attribute to identify them.
30+
</para>
31+
</listitem>
32+
<listitem>
33+
<para>Fixed <link xlink:href="https://github.com/docbook/xslTNG/issues/612">#612</link>.
34+
Whitespace in the baseform attribute is normalized when processing glossary entries.
35+
</para>
36+
</listitem>
37+
<listitem>
38+
<para>Fixed <link xlink:href="https://github.com/docbook/xslTNG/issues/593">#593</link>.
39+
Updated MathJax, added support for TeX equations with a
40+
<tag class="attribute">role</tag> of <literal>tex</literal> on
41+
<tag>mathphrase</tag>.
42+
</para>
43+
</listitem>
44+
<listitem>
45+
<para>Fixed <link xlink:href="https://github.com/docbook/xslTNG/issues/587">#587</link>.
46+
Improved support for titles on <tag>abstract</tag> and <tag>legalnotice</tag> elements.
47+
</para>
48+
</listitem>
49+
<listitem>
50+
<para>Fixed <link xlink:href="https://github.com/docbook/xslTNG/issues/584">#584</link>.
51+
Support both <tag>para</tag> and <tag>simpara</tag> in compact lists.
52+
</para>
53+
</listitem>
54+
<listitem>
55+
<para>Fixed <link xlink:href="https://github.com/docbook/xslTNG/issues/582">#582</link>.
56+
Allow gentext letters to be the empty sequence. This won’t give the <emphasis>correct</emphasis>
57+
result, but it will allow the stylesheets to run without crashing. Thank you, Johan, for
58+
the updated sequences for Japanese and Korean.</para>
59+
</listitem>
60+
<listitem>
61+
<para>Fixed <link xlink:href="https://github.com/docbook/xslTNG/issues/579">#579</link>.
62+
Remove “.” and “..” segments from the chunk output base URI with the new
63+
function <function>f:flatten-path</function>.
64+
</para>
65+
</listitem>
66+
<listitem>
67+
<para>Fixed <link xlink:href="https://github.com/docbook/xslTNG/issues/576">#576</link>.
68+
Make sure that bibliography entries have unique (and not possibly duplicate) IDs even
69+
when the bibliography entries are loaded from external files.
70+
</para>
71+
</listitem>
72+
<listitem>
73+
<para>Fixed <link xlink:href="https://github.com/docbook/xslTNG/issues/581">#581</link>;
74+
handle width=100% and scalefit=1 on media objects.
75+
</para>
76+
</listitem>
77+
<listitem>
78+
<para>Added support for different options when dealing with unhandled elements,
79+
see <parameter>on-unhandled-elements</parameter>.
80+
Fixed <link xlink:href="https://github.com/docbook/xslTNG/issues/572">#572</link>.
81+
Bring the documentation and the code in sync with respect to
82+
<parameter>on-unhandled-elements</parameter>.
83+
</para>
84+
</listitem>
85+
<listitem>
86+
<para>Fixed <link xlink:href="https://github.com/docbook/xslTNG/issues/568">#568</link>.
87+
Resolved some ambiguity in <parameter>refentry-generate-name</parameter> and
88+
<parameter>refentry-generate-title</parameter>.
89+
</para>
90+
</listitem>
91+
<listitem>
92+
<para>Fixed <link xlink:href="https://github.com/docbook/xslTNG/issues/563">#563</link>.
93+
Corrected a typo in the locale files.
94+
</para>
95+
</listitem>
96+
<listitem>
97+
<para>Accepted <link xlink:href="https://github.com/docbook/xslTNG/pull/570">a patch</link>
98+
with a large number of Python style improvements. Thank you, Rafał!</para>
99+
</listitem>
100+
<listitem>
101+
<para>Accepted <link xlink:href="https://github.com/docbook/xslTNG/pull/577">a patch</link>
102+
to fix a problem when copying namespace-qualified attributes. Thank you, Frank!</para>
103+
</listitem>
104+
<listitem>
105+
<para>Accepted <link xlink:href="https://github.com/docbook/xslTNG/pull/586">a patch</link>
106+
to add a parameter to identify the file containing default templates. Thank you, Frank!</para>
107+
</listitem>
108+
<listitem>
109+
<para>Accepted <link xlink:href="https://github.com/docbook/xslTNG/pull/599">a patch</link>
110+
to support collecting the secondary outputs of internal transforms. Thank you, Frank!</para>
111+
</listitem>
112+
<listitem>
113+
<para>Upgraded Pygments in the test harness to version 2.19.1.
114+
</para>
115+
</listitem>
116+
<listitem>
117+
<para>Upgraded a number of dependencies.</para>
118+
</listitem>
119+
</itemizedlist>
120+
</section>
121+
13122
<section xml:id="r250">
14123
<info>
15124
<title>Changes in version 2.5.0</title>

src/main/xslt/modules/gentext.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
</xsl:variable>
7070

7171
<xsl:choose>
72-
<xsl:when test="$v:custom-localizations/ls:locale[@language = $base-locale/@language]">
72+
<xsl:when test="exists($v:custom-localizations/ls:locale[@language = $base-locale/@language])">
7373
<xsl:variable name="custom" as="element(l:l10n)">
7474
<xsl:apply-templates
7575
select="$v:custom-localizations/ls:locale[@language = $base-locale/@language]"

0 commit comments

Comments
 (0)