V2-0001 Get rid Section n.n.n.n from DOCs.diff

application/octet-stream

Filename: V2-0001 Get rid Section n.n.n.n from DOCs.diff
Type: application/octet-stream
Part: 0
Message: Re: Get rid of "Section.N.N.N" on DOCs
From 7deb0cbc251a608f4356724fee7dece22b204523 Mon Sep 17 00:00:00 2001
From: PegoraroF10 <marcos@f10.com.br>
Date: Wed, 31 Dec 2025 14:58:22 -0300
Subject: [PATCH] Changed XSL files to remove Section n.n.n.n from DOC HTML
 files

---
 doc/src/sgml/stylesheet-common.xsl      |  2 +-
 doc/src/sgml/stylesheet-html-common.xsl | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/doc/src/sgml/stylesheet-common.xsl b/doc/src/sgml/stylesheet-common.xsl
index a2e3db67a32..437073bf725 100644
--- a/doc/src/sgml/stylesheet-common.xsl
+++ b/doc/src/sgml/stylesheet-common.xsl
@@ -41,7 +41,7 @@
 <xsl:param name="punct.honorific" select="''"></xsl:param>
 <xsl:param name="variablelist.term.break.after">1</xsl:param>
 <xsl:param name="variablelist.term.separator"></xsl:param>
-<xsl:param name="xref.with.number.and.title" select="0"></xsl:param>
+<xsl:param name="xref.with.number.and.title" select="1"></xsl:param>
 
 <!--
   This is the default setting, but putting it here makes sure the variable
diff --git a/doc/src/sgml/stylesheet-html-common.xsl b/doc/src/sgml/stylesheet-html-common.xsl
index 9dcf96c02e5..e6a60bb32f2 100644
--- a/doc/src/sgml/stylesheet-html-common.xsl
+++ b/doc/src/sgml/stylesheet-html-common.xsl
@@ -63,6 +63,21 @@
   </span>
 </xsl:template>
 
+<!--
+  Templates to remove section n.n.n.n
+  -->
+<xsl:param name="local.l10n.xml" select="document('')"/> 
+<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"> 
+  <l:l10n language="en"> 
+    <l:context name="xref-number-and-title"> 
+      <l:template name="appendix" text="Appendix %n: &#8220;%t&#8221;"/> 
+      <l:template name="chapter" text="%t"/> 
+      <l:template name="sect1" text="%t"/>
+      <l:template name="sect2" text="%t"/>
+      <l:template name="sect3" text="%t"/>
+    </l:context>    
+  </l:l10n>
+</l:i18n>
 
 <!-- table of contents configuration -->
 
-- 
2.51.2.windows.1