[PATCH 4 of 5] Free nginx: support for sections in CHANGES

Maxim Dounin mdounin at mdounin.ru
Mon Feb 19 13:46:49 UTC 2024


# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1708301598 -10800
#      Mon Feb 19 03:13:18 2024 +0300
# Node ID e79c7521aaf4dfef1febc52b9deb95a4b6bd87b0
# Parent  1bc938b270dcc6f09998bac8f99191fcaf10f4d8
Free nginx: support for sections in CHANGES.

diff --git a/docs/dtd/changes.dtd b/docs/dtd/changes.dtd
--- a/docs/dtd/changes.dtd
+++ b/docs/dtd/changes.dtd
@@ -3,8 +3,10 @@
 <!ENTITY  mdash        "&#xA0;- " >
 
 
-<!ELEMENT change_log   (changes)* >
-<!ATTLIST change_log   title  CDATA #REQUIRED >
+<!ELEMENT change_log   (section)* >
+
+<!ELEMENT section      (changes)* >
+<!ATTLIST section      title  CDATA #REQUIRED >
 
 <!ELEMENT changes      (change)* >
 <!ATTLIST changes      ver    CDATA #REQUIRED
diff --git a/docs/xml/nginx/changes.xml b/docs/xml/nginx/changes.xml
--- a/docs/xml/nginx/changes.xml
+++ b/docs/xml/nginx/changes.xml
@@ -2,7 +2,14 @@
 <!DOCTYPE change_log SYSTEM "../../dtd/changes.dtd" >
 
 
-<change_log title="nginx">
+<change_log>
+
+<section title="freenginx">
+
+
+</section>
+
+<section title="nginx">
 
 
 <changes ver="1.25.3" date="2023-10-24">
@@ -30074,4 +30081,6 @@ The first public version.
 </changes>
 
 
+</section>
+
 </change_log>
diff --git a/docs/xsls/changes.xsls b/docs/xsls/changes.xsls
--- a/docs/xsls/changes.xsls
+++ b/docs/xsls/changes.xsls
@@ -13,14 +13,15 @@ X:var br = {<br>}
 
 
 X:template = "/" { !! "change_log"; }
-X:template = "change_log" { !! "changes"; }
+X:template = "change_log" { !! "section"; }
+X:template = "section" { !! "changes"; }
 
 
 X:template = "changes" {
     X:text {
}
 
     !{substring(concat($conf/changes[@lang=$lang]/title,
-                       //change_log/@title,
+                       ../@title,
                        ' ', @ver,
                        '                                                    '),
                 1, $conf/changes[@lang=$lang]/length)}




More information about the nginx-devel mailing list