]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix bug #1291, make default values different for HTML and FO.
authorBob Stayton <bobs@sagehill.net>
Wed, 1 Jul 2015 16:38:08 +0000 (16:38 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 1 Jul 2015 16:38:08 +0000 (16:38 +0000)
xsl/params/table.cell.border.thickness.xml
xsl/params/table.frame.border.thickness.xml

index daec08565ad1af8f97c2bba083bdb4823778660a..5b9cad896b866174bc4eeaaca5808899703bfafd 100644 (file)
 
 <refsynopsisdiv>
 <src:fragment xml:id="table.cell.border.thickness.frag">
-<xsl:param name="table.cell.border.thickness">1px</xsl:param>
+<xsl:param name="table.cell.border.thickness">
+  <xsl:choose>
+    <xsl:when test="contains($stylesheet.result.type,'html')">1px</xsl:when>
+    <xsl:otherwise>0.5pt</xsl:otherwise>
+  </xsl:choose>
+</xsl:param>
 </src:fragment>
 </refsynopsisdiv>
 
index b8c9321524a72691c3a9ee7c00410ae30b51d67a..93f94068d8408c164b9e3ea1b6379921822ece78 100644 (file)
 
 <refsynopsisdiv>
 <src:fragment xml:id="table.frame.border.thickness.frag">
-<xsl:param name="table.frame.border.thickness">1px</xsl:param>
+<xsl:param name="table.frame.border.thickness">
+  <xsl:choose>
+    <xsl:when test="contains($stylesheet.result.type,'html')">1px</xsl:when>
+    <xsl:otherwise>0.5pt</xsl:otherwise>
+  </xsl:choose>
+</xsl:param>
 </src:fragment>
 </refsynopsisdiv>