Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package suse-xsl-stylesheets for 
openSUSE:Factory checked in at 2025-09-18 21:07:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/suse-xsl-stylesheets (Old)
 and      /work/SRC/openSUSE:Factory/.suse-xsl-stylesheets.new.27445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "suse-xsl-stylesheets"

Thu Sep 18 21:07:59 2025 rev:97 rq:1305295 version:2.95.18

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/suse-xsl-stylesheets/suse-xsl-stylesheets.changes    
    2025-08-22 17:47:33.219367558 +0200
+++ 
/work/SRC/openSUSE:Factory/.suse-xsl-stylesheets.new.27445/suse-xsl-stylesheets.changes
     2025-09-18 21:08:03.976869707 +0200
@@ -1,0 +2,7 @@
+Wed Sep 10 06:19:21 UTC 2025 - Thomas Schraitle <[email protected]> - 
2.95.18
+
+- Update to 2.95.18
+  - Improve CSS for literal inside xref in #732
+  - Update language switcher code & normalization in #731
+
+-------------------------------------------------------------------

Old:
----
  suse-xsl-2.95.17.tar.bz2

New:
----
  suse-xsl-2.95.18.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ suse-xsl-stylesheets.spec ++++++
--- /var/tmp/diff_new_pack.zVIrlt/_old  2025-09-18 21:08:04.500891614 +0200
+++ /var/tmp/diff_new_pack.zVIrlt/_new  2025-09-18 21:08:04.500891614 +0200
@@ -22,7 +22,7 @@
 %define suse_styles_dir   %{db_xml_dir}/stylesheet
 #
 Name:           suse-xsl-stylesheets
-Version:        2.95.17
+Version:        2.95.18
 Release:        0
 Summary:        SUSE-Branded Stylesheets for DocBook
 License:        GPL-2.0-only OR GPL-3.0-only

++++++ suse-xsl-2.95.17.tar.bz2 -> suse-xsl-2.95.18.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/suse-xsl-2.95.17/ChangeLog 
new/suse-xsl-2.95.18/ChangeLog
--- old/suse-xsl-2.95.17/ChangeLog      2025-08-14 15:03:01.000000000 +0200
+++ new/suse-xsl-2.95.18/ChangeLog      2025-09-10 08:16:06.000000000 +0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Wed Sep 10 06:14:58 UTC 2025 - [email protected]
+
+* Update to 2.95.18
+  - Update language switcher code & normalization (#731)
+  - Improve CSS for literal inside xref (#732)
+
+-------------------------------------------------------------------
 Thu Aug 14 13:02:37 UTC 2025 - [email protected]
 
 * Update to 2.95.17
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/suse-xsl-2.95.17/Makefile 
new/suse-xsl-2.95.18/Makefile
--- old/suse-xsl-2.95.17/Makefile       2025-08-14 15:03:01.000000000 +0200
+++ new/suse-xsl-2.95.18/Makefile       2025-09-10 08:16:06.000000000 +0200
@@ -11,7 +11,7 @@
 
 SHELL         := /bin/bash
 PACKAGE       := suse-xsl-stylesheets
-VERSION       := 2.95.17
+VERSION       := 2.95.18
 CDIR          := $(shell pwd)
 SUSE_XML_PATH := $(PREFIX)/xml/suse
 DB_XML_PATH   := $(PREFIX)/xml/docbook
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/suse-xsl-2.95.17/source-assets/styles2022/sass/custom/content-inline.sass 
new/suse-xsl-2.95.18/source-assets/styles2022/sass/custom/content-inline.sass
--- 
old/suse-xsl-2.95.17/source-assets/styles2022/sass/custom/content-inline.sass   
    2025-08-14 15:03:01.000000000 +0200
+++ 
new/suse-xsl-2.95.18/source-assets/styles2022/sass/custom/content-inline.sass   
    2025-09-10 08:16:06.000000000 +0200
@@ -124,6 +124,13 @@
 .othercredit
   color: #333
 
+a
+  code.literal
+    text-decoration: underline
+    text-decoration-thickness: inherit
+    border-bottom: none
+
+
 article
   a
     color: $c_dark_jungle
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/suse-xsl-2.95.17/suse2022-ns/static/css/style-new.css 
new/suse-xsl-2.95.18/suse2022-ns/static/css/style-new.css
--- old/suse-xsl-2.95.17/suse2022-ns/static/css/style-new.css   2025-08-14 
15:03:01.000000000 +0200
+++ new/suse-xsl-2.95.18/suse2022-ns/static/css/style-new.css   2025-09-10 
08:16:06.000000000 +0200
@@ -2448,6 +2448,11 @@
 .othercredit {
   color: #333; }
 
+a code.literal {
+  text-decoration: underline;
+  text-decoration-thickness: inherit;
+  border-bottom: none; }
+
 article a {
   color: #008657;
   text-decoration: underline;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/suse-xsl-2.95.17/suse2022-ns/static/css/style.css 
new/suse-xsl-2.95.18/suse2022-ns/static/css/style.css
--- old/suse-xsl-2.95.17/suse2022-ns/static/css/style.css       2025-08-14 
15:03:01.000000000 +0200
+++ new/suse-xsl-2.95.18/suse2022-ns/static/css/style.css       2025-09-10 
08:16:06.000000000 +0200
@@ -2712,6 +2712,11 @@
 .othercredit {
   color: #333; }
 
+a code.literal {
+  text-decoration: underline;
+  text-decoration-thickness: inherit;
+  border-bottom: none; }
+
 article a {
   color: #008657;
   text-decoration: underline;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/suse-xsl-2.95.17/suse2022-ns/static/js/language-switcher.js 
new/suse-xsl-2.95.18/suse2022-ns/static/js/language-switcher.js
--- old/suse-xsl-2.95.17/suse2022-ns/static/js/language-switcher.js     
1970-01-01 01:00:00.000000000 +0100
+++ new/suse-xsl-2.95.18/suse2022-ns/static/js/language-switcher.js     
2025-09-10 08:16:06.000000000 +0200
@@ -0,0 +1,67 @@
+// Find all alternate hreflang link elements
+const hreflangLinks = document.querySelectorAll('link[rel="alternate"]');
+
+const hreflangToLangMapping = {
+  "en-us": "en",
+  "de-de": "de",
+  "fr-fr": "fr",
+  "es-es": "es",
+  "ja-jp": "ja",
+  "pt-br": "pt_BR",
+  "zh-cn": "zh_CN",
+  "ko-kr": "ko_KR",
+};
+
+// Create an object to hold the languages
+const languages = {};
+
+hreflangLinks.forEach((link) => {
+const hreflang = link.getAttribute("hreflang");
+const href = link.getAttribute("href");
+
+if (hreflang && hreflang !== "x-default") {
+  let label;
+  switch (hreflang.toLowerCase()) {
+    case "en-us":
+       label = "English";
+       break;
+    case "de-de":
+       label = "Deutsch";
+       break;
+    case "fr-fr":
+       label = "Français";
+       break;
+    case "es-es":
+       label = "Español";
+       break;
+    case "zh-cn":
+       label = "中文";
+       break;
+    case "ja-jp":
+       label = "日本語";
+       break;
+    case "ko-kr":
+       label = "한국어";
+       break;
+    case "pt-br":
+       label = "Português Brasileiro";
+       break;
+}
+
+let lang = hreflangToLangMapping[hreflang.toLowerCase()];
+  languages[lang] = {
+    label: label,
+    url: href,
+    };
+  }
+});
+
+// Get the current language
+const currentLang = document.documentElement.lang || "en";
+
+// Update the "shared-header" element
+const sharedHeader = document.querySelector("shared-header");
+if (sharedHeader) {
+    sharedHeader.setAttribute("language", currentLang);
+    sharedHeader.setAttribute("languages", JSON.stringify(languages));
+}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/suse-xsl-2.95.17/suse2022-ns/xhtml/chunk-common.xsl 
new/suse-xsl-2.95.18/suse2022-ns/xhtml/chunk-common.xsl
--- old/suse-xsl-2.95.17/suse2022-ns/xhtml/chunk-common.xsl     2025-08-14 
15:03:01.000000000 +0200
+++ new/suse-xsl-2.95.18/suse2022-ns/xhtml/chunk-common.xsl     2025-09-10 
08:16:06.000000000 +0200
@@ -230,24 +230,16 @@
     <xsl:variable name="lang-attr">
       <xsl:call-template name="get-lang-for-ssi" />
     </xsl:variable>
+    <xsl:variable name="node" select="(key('id', $rootid) | /*[1])[last()]"/>
+    <xsl:variable name="candidate.lang">
+      <xsl:call-template name="l10n.language">
+        <xsl:with-param name="target" select="$node"/>
+      </xsl:call-template>
+    </xsl:variable>
 
     <xsl:call-template name="user.preroot"/>
 
-    <html>
-      <xsl:attribute name="lang">
-        <xsl:choose>
-          <xsl:when test="$rootid">
-            <xsl:call-template name="l10n.language">
-              <xsl:with-param name="target" select="key('id', $rootid)"/>
-            </xsl:call-template>
-          </xsl:when>
-          <xsl:otherwise>
-            <xsl:call-template name="l10n.language">
-              <xsl:with-param name="target" select="/*[1]"/>
-            </xsl:call-template>
-          </xsl:otherwise>
-        </xsl:choose>
-      </xsl:attribute>
+    <html lang="{$candidate.lang}" xml:lang="{$candidate.lang}">
       <xsl:call-template name="root.attributes" />
       <xsl:call-template name="html.head">
         <xsl:with-param name="prev" select="$prev" />
@@ -309,6 +301,9 @@
 
         <xsl:call-template name="user.footer.content" />
 
+        <xsl:if test="boolean($show.language-switcher)">
+          <xsl:call-template name="language-switcher" />
+        </xsl:if>
       </body>
     </html>
   </xsl:template>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/suse-xsl-2.95.17/suse2022-ns/xhtml/docbook.xsl 
new/suse-xsl-2.95.18/suse2022-ns/xhtml/docbook.xsl
--- old/suse-xsl-2.95.17/suse2022-ns/xhtml/docbook.xsl  2025-08-14 
15:03:01.000000000 +0200
+++ new/suse-xsl-2.95.18/suse2022-ns/xhtml/docbook.xsl  2025-09-10 
08:16:06.000000000 +0200
@@ -753,6 +753,13 @@
 
   <!-- SUSE Header -->
   <xsl:template name="suse-header-header">
+    <xsl:call-template name="log.message">
+      <xsl:with-param name="level">hint</xsl:with-param>
+      <xsl:with-param name="context-desc">SUSE-Header</xsl:with-param>
+      <xsl:with-param name="message">
+        <xsl:text>Enabled SUSE Header head</xsl:text>
+      </xsl:with-param>
+    </xsl:call-template>
     <xsl:comment>SUSE Header head</xsl:comment>
     <script type="module">
      import { defineCustomElements, setAssetPath } from <xsl:value-of 
select='concat("&apos;", $suse.header.import.url, "&apos;")'/>;
@@ -760,23 +767,6 @@
      setAssetPath(<xsl:value-of select="concat('&quot;', 
$suse.header.assets.url, '&quot;')"/>);
    </script>
    <xsl:text>&#10;</xsl:text>
-   <xsl:if test="not(boolean($show.language-switcher))">
-    <script>var interval = setInterval(function () {
-   var sharedHeader = document.querySelector("shared-header");
-   var header = document.querySelector("header");
-
-   if (header) {
-     clearInterval(interval);
-   } else if (sharedHeader) {
-   var dropdown = 
document.querySelector('shared-header').shadowRoot.querySelector('suse-pl-dropdown');
-   if (dropdown) {
-     dropdown.style.display = "none";
-   }
-
-   clearInterval(interval);
-   }
-}, 100);</script>
-    </xsl:if>
   </xsl:template>
 
   <xsl:template name="suse-header-body">
@@ -788,11 +778,31 @@
       "zh_CN": { "label": "中文", "url": "https://documentation.suse.com/zh-cn/"; 
},
       "pt_BR": { "label": "Português Brasileiro", "url": 
"https://documentation.suse.com/pt-br/"; }
      }</xsl:variable>
+    <xsl:call-template name="log.message">
+      <xsl:with-param name="level">hint</xsl:with-param>
+      <xsl:with-param name="context-desc">SUSE-Header</xsl:with-param>
+      <xsl:with-param name="message">
+        <xsl:text>Enabled SUSE Header body (shared-header)</xsl:text>
+      </xsl:with-param>
+    </xsl:call-template>
     <shared-header language="en" languages='{translate($languages, "&#10;", 
"")}'>
       <xsl:text>&#x20;</xsl:text>
     </shared-header>
   </xsl:template>
 
+
+  <xsl:template name="language-switcher">
+    <xsl:call-template name="log.message">
+        <xsl:with-param name="level">hint</xsl:with-param>
+        <xsl:with-param name="context-desc">LangSwitcher</xsl:with-param>
+        <xsl:with-param name="message">
+          <xsl:text>Enabled language switcher JS code</xsl:text>
+        </xsl:with-param>
+    </xsl:call-template>
+    <xsl:text>&#10;</xsl:text>
+    <script type="text/javascript" src="{$daps.header.js.languageswitcher}" />
+  </xsl:template>
+
   <!-- ############################################################## -->
   <!-- This template is called when creating single HTML -->
   <xsl:template match="/">
@@ -802,6 +812,7 @@
     </xsl:if>
   </xsl:template>
 
+
   <xsl:template match="*" mode="process.root">
     <xsl:param name="prev"/>
     <xsl:param name="next"/>
@@ -813,23 +824,13 @@
     <xsl:variable name="lang-attr">
       <xsl:call-template name="get-lang-for-ssi"/>
     </xsl:variable>
+    <xsl:variable name="node" select="(key('id', $rootid) | /*[1])[last()]"/>
     <xsl:variable name="candidate.lang">
-      <xsl:choose>
-        <xsl:when test="$rootid">
-          <xsl:call-template name="l10n.language">
-            <xsl:with-param name="target" select="key('id', $rootid)"/>
-          </xsl:call-template>
-        </xsl:when>
-        <xsl:otherwise>
-          <xsl:call-template name="l10n.language">
-            <xsl:with-param name="target" select="/*[1]"/>
-          </xsl:call-template>
-        </xsl:otherwise>
-      </xsl:choose>
+      <xsl:call-template name="l10n.language">
+        <xsl:with-param name="target" select="$node"/>
+      </xsl:call-template>
     </xsl:variable>
-
     <xsl:call-template name="user.preroot"/>
-    <xsl:call-template name="root.messages"/>
 
     <html lang="{$candidate.lang}" xml:lang="{$candidate.lang}">
       <xsl:call-template name="root.attributes"/>
@@ -887,6 +888,9 @@
 
         <xsl:call-template name="user.footer.content"/>
 
+        <xsl:if test="boolean($show.language-switcher)">
+          <xsl:call-template name="language-switcher" />
+        </xsl:if>
       </body>
     </html>
   </xsl:template>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/suse-xsl-2.95.17/suse2022-ns/xhtml/html.xsl 
new/suse-xsl-2.95.18/suse2022-ns/xhtml/html.xsl
--- old/suse-xsl-2.95.17/suse2022-ns/xhtml/html.xsl     2025-08-14 
15:03:01.000000000 +0200
+++ new/suse-xsl-2.95.18/suse2022-ns/xhtml/html.xsl     2025-09-10 
08:16:06.000000000 +0200
@@ -76,4 +76,23 @@
   </xsl:if>
 </xsl:template>
 
+
+  <xsl:template name="create-lang-attribute">
+    <xsl:param name="lang" />
+
+    <!-- match the attribute name to the output type -->
+    <xsl:choose>
+      <xsl:when test="$lang and $stylesheet.result.type = 'html'">
+        <xsl:attribute name="lang">
+          <xsl:value-of select="$lang"/>
+        </xsl:attribute>
+      </xsl:when>
+      <xsl:when test="$lang and $stylesheet.result.type = 'xhtml'">
+        <xsl:attribute name="xml:lang">
+          <xsl:value-of select="$lang"/>
+        </xsl:attribute>
+      </xsl:when>
+    </xsl:choose>
+  </xsl:template>
+
 </xsl:stylesheet>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/suse-xsl-2.95.17/suse2022-ns/xhtml/param.xsl 
new/suse-xsl-2.95.18/suse2022-ns/xhtml/param.xsl
--- old/suse-xsl-2.95.17/suse2022-ns/xhtml/param.xsl    2025-08-14 
15:03:01.000000000 +0200
+++ new/suse-xsl-2.95.18/suse2022-ns/xhtml/param.xsl    2025-09-10 
08:16:06.000000000 +0200
@@ -267,6 +267,8 @@
   <xsl:param 
name="daps.header.js.custom">static/js/script-purejs.js</xsl:param>
   <xsl:param name="daps.header.js.highlight">static/js/highlight.js</xsl:param>
   <xsl:param name="daps.header.css.standard">static/css/style.css</xsl:param>
+  <!-- The language switcher code in the header -->
+  <xsl:param 
name="daps.header.js.languageswitcher">static/js/language-switcher.js</xsl:param>
 
   <!-- This list is intentionally quite strict (no aliases) to keep our 
documents
   consistent. -->

Reply via email to