]> granicus.if.org Git - postgresql/commitdiff
doc: Improve rendering of notes/cautions using XSL-FO
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 27 Mar 2017 17:33:36 +0000 (13:33 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 27 Mar 2017 17:33:36 +0000 (13:33 -0400)
Center title and put a border around it, like the output that the DSSSL
version gave.

doc/src/sgml/stylesheet-fo.xsl

index 69536f92cdc7577f147598267236a3e0fe8f1a75..8b555d12a761a9acce5a1e7982eacbe7e5432526 100644 (file)
   <xsl:attribute name="wrap-option">wrap</xsl:attribute>
 </xsl:attribute-set>
 
+<xsl:attribute-set name="nongraphical.admonition.properties">
+  <xsl:attribute name="border-style">solid</xsl:attribute>
+  <xsl:attribute name="border-width">1pt</xsl:attribute>
+  <xsl:attribute name="border-color">black</xsl:attribute>
+  <xsl:attribute name="padding-start">12pt</xsl:attribute>
+  <xsl:attribute name="padding-end">12pt</xsl:attribute>
+  <xsl:attribute name="padding-top">6pt</xsl:attribute>
+  <xsl:attribute name="padding-bottom">6pt</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="admonition.title.properties">
+  <xsl:attribute name="text-align">center</xsl:attribute>
+</xsl:attribute-set>
+
 <!-- Change display of some elements -->
 
 <xsl:template match="command">