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-12-17 17:32:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/suse-xsl-stylesheets (Old)
 and      /work/SRC/openSUSE:Factory/.suse-xsl-stylesheets.new.1939 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "suse-xsl-stylesheets"

Wed Dec 17 17:32:39 2025 rev:104 rq:1323151 version:2.95.27

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/suse-xsl-stylesheets/suse-xsl-stylesheets.changes    
    2025-12-12 21:40:31.795196578 +0100
+++ 
/work/SRC/openSUSE:Factory/.suse-xsl-stylesheets.new.1939/suse-xsl-stylesheets.changes
      2025-12-17 17:36:00.902757807 +0100
@@ -1,0 +2,7 @@
+Tue Dec 16 15:54:33 UTC 2025 - Thomas Schraitle <[email protected]> - 
2.95.27
+
+- Update to 2.95.27
+  * Fix DOCTEAM-2059: Add name to JSON-LD structure in #769
+  * Use HTTPS instead of HTTP for schema.org in #771
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ suse-xsl-stylesheets.spec ++++++
--- /var/tmp/diff_new_pack.Aeyu6q/_old  2025-12-17 17:36:02.582828416 +0100
+++ /var/tmp/diff_new_pack.Aeyu6q/_new  2025-12-17 17:36:02.594828920 +0100
@@ -22,7 +22,7 @@
 %define suse_styles_dir   %{db_xml_dir}/stylesheet
 #
 Name:           suse-xsl-stylesheets
-Version:        2.95.26
+Version:        2.95.27
 Release:        0
 Summary:        SUSE-Branded Stylesheets for DocBook
 License:        GPL-2.0-only OR GPL-3.0-only

++++++ suse-xsl-2.95.26.tar.bz2 -> suse-xsl-2.95.27.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/suse-xsl-2.95.26/ChangeLog 
new/suse-xsl-2.95.27/ChangeLog
--- old/suse-xsl-2.95.26/ChangeLog      2025-12-11 07:43:15.000000000 +0100
+++ new/suse-xsl-2.95.27/ChangeLog      2025-12-16 16:48:43.000000000 +0100
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Tue Dec 16 15:47:06 UTC 2025 - [email protected]
+
+* Update 2.95.26
+  - Fix DOCTEAM-2059: Add name to JSON-LD structure (#769) 
+  - Use HTTPS instead of HTTP for schema.org (#771) 
+-------------------------------------------------------------------
 Thu Dec 11 06:42:34 UTC 2025 - [email protected]
 
 - Update 2.95.26
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/suse-xsl-2.95.26/Makefile 
new/suse-xsl-2.95.27/Makefile
--- old/suse-xsl-2.95.26/Makefile       2025-12-11 07:43:15.000000000 +0100
+++ new/suse-xsl-2.95.27/Makefile       2025-12-16 16:48:43.000000000 +0100
@@ -11,7 +11,7 @@
 
 SHELL         := /bin/bash
 PACKAGE       := suse-xsl-stylesheets
-VERSION       := 2.95.26
+VERSION       := 2.95.27
 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.26/suse2022-ns/xhtml/json-ld.xsl 
new/suse-xsl-2.95.27/suse2022-ns/xhtml/json-ld.xsl
--- old/suse-xsl-2.95.26/suse2022-ns/xhtml/json-ld.xsl  2025-12-11 
07:43:15.000000000 +0100
+++ new/suse-xsl-2.95.27/suse2022-ns/xhtml/json-ld.xsl  2025-12-16 
16:48:43.000000000 +0100
@@ -19,7 +19,7 @@
      From doc-modular, DC-sudo-configure-superuser-privileges:
      <script type="application/ld+json">
       {
-        "@context": "http://schema.org";,
+        "@context": "https://schema.org";,
         "@type": [
           "TechArticle"
         ],
@@ -397,9 +397,12 @@
   <xsl:template name="generate-json-content">
     <xsl:param name="node"/>
     <xsl:text>{</xsl:text>
-    "@context": "http://schema.org";,
+    "@context": "https://schema.org";,
     "@type": ["TechArticle"],
     "image": "<xsl:value-of select="$json-ld-image-url"/>",
+    <xsl:call-template name="json-ld-name">
+      <xsl:with-param name="node" select="$node"/>
+    </xsl:call-template>
     <xsl:call-template name="json-ld-type">
       <xsl:with-param name="node" select="$node"/>
     </xsl:call-template>
@@ -516,6 +519,50 @@
     "headline": "<xsl:value-of select="translate($headline, '&quot;', '')"/>",
   </xsl:template>
 
+  <xsl:template name="json-ld-name">
+    <xsl:param name="node" select="."/>
+    <xsl:variable name="candidate-headline">
+      <xsl:choose>
+        <xsl:when test="$node/d:info/d:meta[@name='title']">
+          <xsl:value-of select="$node/d:info/d:meta[@name='title']"/>
+        </xsl:when>
+        <xsl:when test="$node/d:info/d:title">
+          <xsl:value-of select="$node/d:info/d:title"/>
+        </xsl:when>
+        <xsl:when test="$node/d:title">
+          <xsl:value-of select="$node/d:title"/>
+        </xsl:when>
+        <!--<xsl:when 
test="$node/ancestor-or-self::*/d:info/d:meta[@name='title']">
+          <xsl:value-of 
select="($node/ancestor-or-self::*/d:info/d:meta[@name='title'])[last()]"/>
+        </xsl:when>-->
+        <!--<xsl:when test="$node/ancestor-or-self::*/d:info/d:title">
+          <xsl:value-of 
select="($node/ancestor-or-self::*/d:info/d:title)[last()]"/>
+        </xsl:when>-->
+      </xsl:choose>
+    </xsl:variable>
+    <xsl:variable name="info-productnumber" 
select="normalize-space(($node/ancestor-or-self::*/d:info/d:productnumber)[last()])"/>
+    <xsl:variable name="info-productname" 
select="normalize-space(($node/ancestor-or-self::*/d:info/d:productname)[last()])"/>
+    <xsl:variable name="meta-productname" 
select="($node/ancestor-or-self::*/d:info/d:meta[@name='productname'])[last()]/d:productname"/>
+    <xsl:variable name="node-productname-with-version">
+      <xsl:if test="$info-productname">
+        <productname xmlns="http://docbook.org/ns/docbook";
+          version="{$info-productnumber}"><xsl:value-of 
select="$info-productname"/></productname>
+      </xsl:if>
+    </xsl:variable>
+    <xsl:variable name="productname-with-version" 
select="exsl:node-set($node-productname-with-version)/*"/>
+    <xsl:variable name="productname" select="($productname-with-version | 
$meta-productname)"/>
+
+    <xsl:variable name="_name">
+      <xsl:value-of select="$candidate-headline"/>
+      <xsl:if test="$productname">
+        <xsl:value-of select="concat($json-ld-name-sep,
+          normalize-space($productname), ' ', $productname/@version)"/>
+      </xsl:if>
+    </xsl:variable>
+    <xsl:text>"name": "</xsl:text>
+    <xsl:value-of select="$_name"/>
+    <xsl:text>",</xsl:text>
+  </xsl:template>
 
   <xsl:template name="json-ld-alternativeheadline">
     <xsl:param name="node" select="."/>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/suse-xsl-2.95.26/suse2022-ns/xhtml/param.xsl 
new/suse-xsl-2.95.27/suse2022-ns/xhtml/param.xsl
--- old/suse-xsl-2.95.26/suse2022-ns/xhtml/param.xsl    2025-12-11 
07:43:15.000000000 +0100
+++ new/suse-xsl-2.95.27/suse2022-ns/xhtml/param.xsl    2025-12-16 
16:48:43.000000000 +0100
@@ -498,7 +498,8 @@
   <xsl:param name="json-ld-image-url" select="$json-ld-fallback-author-logo" />
   <!-- By default, these are empty and are set by the SBP stylesheets -->
   <xsl:param name="json-ld-seriesname">Products &amp; Solutions</xsl:param>
-  
+  <!-- The separator in "name" between title and productname -->
+  <xsl:param name="json-ld-name-sep"><xsl:text> | </xsl:text></xsl:param>
 
   <!-- The DC file needs to be passed to find the structure in the Docserv 
config -->
   <xsl:param name="dcfilename"/>

Reply via email to