mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 15:00:07 +00:00
e49b305c56
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>
37 lines
1.2 KiB
XML
37 lines
1.2 KiB
XML
<?xml version="1.0"?>
|
|
<xsl:stylesheet
|
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:exsl="http://exslt.org/common"
|
|
exclude-result-prefixes="xsl exsl"
|
|
version="1.0">
|
|
|
|
<xsl:import href="page.xsl"/>
|
|
|
|
<xsl:param name="builddir" select="'..'"/>
|
|
|
|
<xsl:template match="html:div[@id='include']" mode="content">
|
|
<xsl:call-template name="include"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="include">
|
|
<xsl:variable name="inchtml">
|
|
<xsl:copy-of select="document(concat($builddir, '/docs/', @filename))"/>
|
|
</xsl:variable>
|
|
|
|
<xsl:apply-templates select="exsl:node-set($inchtml)/html:html/html:body/*" mode="content"/>
|
|
</xsl:template>
|
|
|
|
<xsl:output method="xml" omit-xml-declaration="yes" encoding="UTF-8" indent="yes"/>
|
|
|
|
<xsl:template match="/">
|
|
<xsl:apply-templates select="." mode="page">
|
|
<xsl:with-param name="pagesrc" select="$pagesrc"/>
|
|
<xsl:with-param name="timestamp" select="$timestamp"/>
|
|
<xsl:with-param name="link_href_base" select="$href_base"/>
|
|
<xsl:with-param name="asset_href_base" select="$href_base"/>
|
|
</xsl:apply-templates>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|