mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 03:41:18 +02:00
6538be9e1e
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
22 lines
708 B
XML
22 lines
708 B
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/xhtml/docbook.xsl"/>
|
|
<xsl:include href="stylesheet-common.xsl" />
|
|
<xsl:include href="stylesheet-html-common.xsl" />
|
|
<xsl:include href="stylesheet-speedup-xhtml.xsl" />
|
|
|
|
<!-- embed SVG images into output file -->
|
|
<xsl:template match="imagedata[@format='SVG']">
|
|
<xsl:variable name="filename">
|
|
<xsl:call-template name="mediaobject.filename">
|
|
<xsl:with-param name="object" select=".."/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
|
|
<xsl:copy-of select="document($filename)"/>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|