mirror of
https://github.com/postgres/postgres.git
synced 2025-05-30 00:02:11 -04:00
The XSL stylesheets used a mix of incorrect or outdated namespace declarations for XHTML, probably based on ancient advice and examples. Clean all this up. Besides improving correctness (although probably no impact in practice, other than possible validation failures), this removes a bunch of useless namespace declarations in the HTML output. Reported-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/flat/20220213201618.qz6p6noon3wagr3f%40alap3.anarazel.de
48 lines
1.5 KiB
XML
48 lines
1.5 KiB
XML
<?xml version='1.0'?>
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
version='1.0'>
|
|
|
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl"/>
|
|
<xsl:include href="stylesheet-common.xsl" />
|
|
|
|
<!-- Parameters -->
|
|
<xsl:param name="htmlhelp.use.hhk" select="'1'"/>
|
|
|
|
<xsl:param name="base.dir" select="'htmlhelp/'"></xsl:param>
|
|
<xsl:param name="html.stylesheet" select="'stylesheet.css'"></xsl:param>
|
|
<xsl:param name="use.id.as.filename" select="'1'"></xsl:param>
|
|
<xsl:param name="manifest.in.base.dir" select="1"/>
|
|
<xsl:param name="make.valid.html" select="1"></xsl:param>
|
|
<xsl:param name="generate.id.attributes" select="1"></xsl:param>
|
|
<xsl:param name="generate.legalnotice.link" select="1"></xsl:param>
|
|
<xsl:param name="link.mailto.url">pgsql-docs@lists.postgresql.org</xsl:param>
|
|
<xsl:param name="chunker.output.indent" select="'yes'"/>
|
|
<xsl:param name="chunk.quietly" select="1"></xsl:param>
|
|
|
|
|
|
<!-- Change display of some elements -->
|
|
|
|
<xsl:template match="command">
|
|
<xsl:call-template name="inline.monoseq"/>
|
|
</xsl:template>
|
|
|
|
<!--
|
|
Format multiple terms in varlistentry vertically, instead
|
|
of comma-separated.
|
|
-->
|
|
|
|
<xsl:template match="varlistentry/term[position()!=last()]">
|
|
<span class="term">
|
|
<xsl:call-template name="anchor"/>
|
|
<xsl:apply-templates/>
|
|
</span><br/>
|
|
</xsl:template>
|
|
|
|
|
|
<!-- strip directory name from image filerefs -->
|
|
<xsl:template match="imagedata/@fileref">
|
|
<xsl:value-of select="substring-after(., '/')"/>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|