mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
docs: site: Don't generate '<?xml' header for HTML documents
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>
This commit is contained in:
parent
8c1ea0b8a7
commit
e49b305c56
@ -17,8 +17,6 @@
|
|||||||
<!-- Import the main part of the site stylesheets -->
|
<!-- Import the main part of the site stylesheets -->
|
||||||
<xsl:import href="page.xsl"/>
|
<xsl:import href="page.xsl"/>
|
||||||
|
|
||||||
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
|
|
||||||
|
|
||||||
<!-- Build keys for all symbols -->
|
<!-- Build keys for all symbols -->
|
||||||
<xsl:key name="symbols" match="/api/symbols/*" use="@name"/>
|
<xsl:key name="symbols" match="/api/symbols/*" use="@name"/>
|
||||||
|
|
||||||
@ -811,8 +809,9 @@
|
|||||||
<xsl:document
|
<xsl:document
|
||||||
href="{concat($htmldir, '/libvirt-', @name, '.html')}"
|
href="{concat($htmldir, '/libvirt-', @name, '.html')}"
|
||||||
method="xml"
|
method="xml"
|
||||||
indent="yes"
|
omit-xml-declaration="yes"
|
||||||
encoding="UTF-8">
|
encoding="UTF-8"
|
||||||
|
indent="yes">
|
||||||
<xsl:apply-templates select="exsl:node-set($subpage)" mode="page">
|
<xsl:apply-templates select="exsl:node-set($subpage)" mode="page">
|
||||||
<xsl:with-param name="timestamp" select="$timestamp"/>
|
<xsl:with-param name="timestamp" select="$timestamp"/>
|
||||||
<xsl:with-param name="link_href_base" select="$href_base"/>
|
<xsl:with-param name="link_href_base" select="$href_base"/>
|
||||||
|
@ -22,10 +22,7 @@
|
|||||||
<xsl:apply-templates select="exsl:node-set($inchtml)/html:html/html:body/*" mode="content"/>
|
<xsl:apply-templates select="exsl:node-set($inchtml)/html:html/html:body/*" mode="content"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:output
|
<xsl:output method="xml" omit-xml-declaration="yes" encoding="UTF-8" indent="yes"/>
|
||||||
method="xml"
|
|
||||||
encoding="UTF-8"
|
|
||||||
indent="yes"/>
|
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<xsl:apply-templates select="." mode="page">
|
<xsl:apply-templates select="." mode="page">
|
||||||
|
Loading…
Reference in New Issue
Block a user