From 81014e5cb46166183723ae911f6968e56b403107 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Wed, 14 Apr 2021 15:51:02 -0300 Subject: Fix sort command in Help pages After the introduction of the headings h1 ... h6 in the Help pages the sort command broke. It relied only in the tag for sorting, usually the first paragraph in the section. The patch extend the DTD to handle the new descendant="" attribute to select which tag to sort in the Help page Default is for backward compatibility. Pages with must be revisited. Change-Id: I3c6f243369429ed7824a68b11757dc15f4555c0f Reviewed-on: https://gerrit.libreoffice.org/c/help/+/114110 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- help3xsl/online_transform.xsl | 59 ++++++++++++++++++++++++++++++++++++++++--- helpers/xmlhelp.dtd | 1 + 2 files changed, 56 insertions(+), 4 deletions(-) diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index c6e2ee1bbc..d30add9d93 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -589,20 +589,71 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/helpers/xmlhelp.dtd b/helpers/xmlhelp.dtd index 488e7286f8..6a4ef9778b 100644 --- a/helpers/xmlhelp.dtd +++ b/helpers/xmlhelp.dtd @@ -215,6 +215,7 @@ Version Nov 2018 -- cgit