mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
The meson conversion lost the <meta> tags providing the go-import, because the "$pagename" variable lost the .html suffix. Rather than fix that, just change to using "$pagesrc" instead, as it is a better fit. The 404 page also needs to use absolute links to work correctly for pages in sub-folders. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
35 lines
868 B
XML
35 lines
868 B
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:output
|
|
method="xml"
|
|
encoding="UTF-8"
|
|
indent="yes"/>
|
|
|
|
<xsl:variable name="href_base">
|
|
<xsl:choose>
|
|
<xsl:when test="$pagesrc = 'docs/404.html.in'">
|
|
<xsl:value-of select="'/'"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="''"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
|
|
<xsl:template match="/">
|
|
<xsl:apply-templates select="." mode="page">
|
|
<xsl:with-param name="pagesrc" select="$pagesrc"/>
|
|
<xsl:with-param name="timestamp" select="$timestamp"/>
|
|
</xsl:apply-templates>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|