mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
f2f9742d4d
The rule generating the HTML docs passing the --html flag to xsltproc. This makes it use the legacy HTML parser, which either ignores or tries to fix all sorts of broken XML tags. There's no reason why we should be writing broken XML in the first place, so removing --html and adding the XHTML doctype to all files forces us to create good XML. This adds the XHTML doc type and fixes many, many XML tag problems it exposes. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
31 lines
773 B
XML
31 lines
773 B
XML
<?xml version="1.0"?>
|
|
<xsl:stylesheet version="1.0"
|
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
<xsl:output method="xml" encoding="UTF-8" indent="no"/>
|
|
|
|
|
|
|
|
<xsl:template match="/">
|
|
<xsl:apply-templates/>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="@*|node()">
|
|
<xsl:copy>
|
|
<xsl:apply-templates select="@*|node()"/>
|
|
</xsl:copy>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!-- resolve b/i/code tags in a first pass, because they interfere with line
|
|
wrapping in the second pass -->
|
|
<xsl:template match="html:b">*<xsl:apply-templates/>*</xsl:template>
|
|
<xsl:template match="html:i">'<xsl:apply-templates/>'</xsl:template>
|
|
<xsl:template match="html:code">"<xsl:apply-templates/>"</xsl:template>
|
|
|
|
</xsl:stylesheet>
|