Skip the XML header as it's invalid with <!DOCTYPE HTML> both for the
RST-generated pages and for the API docs generated from the API XML.
Additionally remove the spurious xsl:output directive from newapi.xsl
which is ignored and thus misleading.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
<!-- Import the main part of the site stylesheets -->
<xsl:import href="page.xsl"/>
- <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
-
<!-- Build keys for all symbols -->
<xsl:key name="symbols" match="/api/symbols/*" use="@name"/>
<xsl:document
href="{concat($htmldir, '/libvirt-', @name, '.html')}"
method="xml"
- indent="yes"
- encoding="UTF-8">
+ omit-xml-declaration="yes"
+ encoding="UTF-8"
+ indent="yes">
<xsl:apply-templates select="exsl:node-set($subpage)" mode="page">
<xsl:with-param name="timestamp" select="$timestamp"/>
<xsl:with-param name="link_href_base" select="$href_base"/>
<xsl:apply-templates select="exsl:node-set($inchtml)/html:html/html:body/*" mode="content"/>
</xsl:template>
- <xsl:output
- method="xml"
- encoding="UTF-8"
- indent="yes"/>
+ <xsl:output method="xml" omit-xml-declaration="yes" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:apply-templates select="." mode="page">