[libxml2] Switch back to HTML output for API documentation



commit b33be8a04fda5e99add1f8985a7c350846defa16
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Wed Aug 24 14:29:50 2022 +0200

    Switch back to HTML output for API documentation

 doc/devhelp/devhelp2.xsl | 2 +-
 doc/devhelp/html.xsl     | 6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/doc/devhelp/devhelp2.xsl b/doc/devhelp/devhelp2.xsl
index 92cc7f65..d04dc500 100644
--- 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
index da22621e..b658f678 100644
--- 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"/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]