From 573c95cb1a5f42c882936c4a6d29fbbfd1d8a50a Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Sat, 27 Dec 2025 21:07:06 +0200 Subject: doc/xsl: fix malformed For all requests and events that do not have any arguments, enabling XML validation would lead to many errors like this: /home/pq/git/wayland/build/doc/publican/Wayland.xml:5287: element variablelist: validity error : Element variablelist content does not follow the DTD, expecting (blockinfo? , (title , titleabbrev?)? , (caution | important | note | tip | warning | literallayout | programlisting | programlistingco | screen | screenco | screenshot | synopsis | cmdsynopsis | funcsynopsis | classsynopsis | fieldsynopsis | constructorsynopsis | destructorsynopsis | methodsynopsis | formalpara | para | simpara | address | blockquote | graphic | graphicco | mediaobject | mediaobjectco | informalequation | informalexample | informalfigure | informaltable | anchor | bridgehead | remark | highlights | abstract | authorblurb | epigraph | indexterm | beginpage)* , varlistentry+), got The reason is that a without any inside it is illegal. If there are no at all, do not emit the list paragraph. Signed-off-by: Pekka Paalanen --- doc/publican/xsl/protocol-to-docbook.xsl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/publican/xsl/protocol-to-docbook.xsl b/doc/publican/xsl/protocol-to-docbook.xsl index 79c938b..92f8d67 100644 --- a/doc/publican/xsl/protocol-to-docbook.xsl +++ b/doc/publican/xsl/protocol-to-docbook.xsl @@ -186,11 +186,13 @@ - - - - - - + + + + + + + -- cgit v1.2.3-70-g09d2