mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
docs: Move 'html including' from page.xsl to site.xsl
Strip down the main template as much as possible. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -8,6 +8,20 @@
|
||||
|
||||
<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"
|
||||
encoding="UTF-8"
|
||||
|
||||
Reference in New Issue
Block a user