# HG changeset patch
# User Nick Wellnhofer <wellnhofer@aevum.de>
# Date 1661344190 -7200
#      Wed Aug 24 14:29:50 2022 +0200
# Node ID deacdf7bb0dce7da65dea95548370c8a2b720347
# Parent  65b1500eef0b36091baeb1a5007538c1f1b35c92
Switch back to HTML output for API documentation

diff --git a/doc/devhelp/devhelp2.xsl b/doc/devhelp/devhelp2.xsl
--- a/doc/devhelp/devhelp2.xsl
+++ b/doc/devhelp/devhelp2.xsl
@@ -33,7 +33,7 @@
     <xsl:variable name="prev" select="string(preceding-sibling::file[position()=1]/@name)"/>
     <xsl:variable name="next" select="string(following-sibling::file[position()=1]/@name)"/>
     <sub name="{@name}" link="libxml2-{@name}.html"/>
-    <xsl:document xmlns="" href="libxml2-{@name}.html" method="xml" indent="yes" encoding="UTF-8">
+    <xsl:document xmlns="" href="libxml2-{@name}.html" method="html" indent="yes" encoding="UTF-8">
       <html>
         <head>
 	  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
diff --git a/doc/devhelp/html.xsl b/doc/devhelp/html.xsl
--- a/doc/devhelp/html.xsl
+++ b/doc/devhelp/html.xsl
@@ -4,8 +4,6 @@
 		xmlns:str="http://exslt.org/strings"
 		extension-element-prefixes="exsl str"
 		exclude-result-prefixes="exsl str">
-  <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
-
   <!-- This is convoluted but needed to force the current document to
        be the API one and not the result tree from the tokenize() result,
        because the keys are only defined on the main document -->
@@ -497,7 +495,7 @@
 -->
   <xsl:template name="generate_general">
     <xsl:variable name="next" select="string(/api/files/file[position()=1]/@name)"/>
-    <xsl:document xmlns="" href="general.html" method="xml" indent="yes" encoding="UTF-8">
+    <xsl:document xmlns="" href="general.html" method="html" indent="yes" encoding="UTF-8">
       <html>
         <head>
 	  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
@@ -537,7 +535,7 @@
 
 -->
   <xsl:template name="generate_index">
-    <xsl:document xmlns="" href="index.html" method="xml" indent="yes" encoding="UTF-8">
+    <xsl:document xmlns="" href="index.html" method="html" indent="yes" encoding="UTF-8">
       <html>
         <head>
 	  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>