]> granicus.if.org Git - docbook-dsssl/commitdiff
Improve table border handling
authorNorman Walsh <ndw@nwalsh.com>
Fri, 1 Mar 2002 08:41:22 +0000 (08:41 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 1 Mar 2002 08:41:22 +0000 (08:41 +0000)
xsl/fo/formal.xsl

index dbd12d9679061edc51601930d7b929086ac35e46..51cdd19742cb9c8adf8148858d3bc08562578a18 100644 (file)
       <xsl:attribute name="border-right-style">solid</xsl:attribute>
       <xsl:attribute name="border-top-style">solid</xsl:attribute>
       <xsl:attribute name="border-bottom-style">solid</xsl:attribute>
+      <xsl:attribute name="border-left-width">
+        <xsl:value-of select="$table.border.thickness"/>
+      </xsl:attribute>
+      <xsl:attribute name="border-right-width">
+        <xsl:value-of select="$table.border.thickness"/>
+      </xsl:attribute>
+      <xsl:attribute name="border-top-width">
+        <xsl:value-of select="$table.border.thickness"/>
+      </xsl:attribute>
+      <xsl:attribute name="border-bottom-width">
+        <xsl:value-of select="$table.border.thickness"/>
+      </xsl:attribute>
     </xsl:when>
     <xsl:when test="$frame='bottom'">
       <xsl:attribute name="border-left-style">none</xsl:attribute>
       <xsl:attribute name="border-right-style">none</xsl:attribute>
       <xsl:attribute name="border-top-style">none</xsl:attribute>
       <xsl:attribute name="border-bottom-style">solid</xsl:attribute>
+      <xsl:attribute name="border-bottom-width">
+        <xsl:value-of select="$table.border.thickness"/>
+      </xsl:attribute>
     </xsl:when>
     <xsl:when test="$frame='sides'">
       <xsl:attribute name="border-left-style">solid</xsl:attribute>
       <xsl:attribute name="border-right-style">solid</xsl:attribute>
       <xsl:attribute name="border-top-style">none</xsl:attribute>
       <xsl:attribute name="border-bottom-style">none</xsl:attribute>
+      <xsl:attribute name="border-left-width">
+        <xsl:value-of select="$table.border.thickness"/>
+      </xsl:attribute>
+      <xsl:attribute name="border-right-width">
+        <xsl:value-of select="$table.border.thickness"/>
+      </xsl:attribute>
     </xsl:when>
     <xsl:when test="$frame='top'">
       <xsl:attribute name="border-left-style">none</xsl:attribute>
       <xsl:attribute name="border-right-style">none</xsl:attribute>
       <xsl:attribute name="border-top-style">solid</xsl:attribute>
       <xsl:attribute name="border-bottom-style">none</xsl:attribute>
+      <xsl:attribute name="border-top-width">
+        <xsl:value-of select="$table.border.thickness"/>
+      </xsl:attribute>
     </xsl:when>
     <xsl:when test="$frame='topbot'">
       <xsl:attribute name="border-left-style">none</xsl:attribute>
       <xsl:attribute name="border-right-style">none</xsl:attribute>
       <xsl:attribute name="border-top-style">solid</xsl:attribute>
       <xsl:attribute name="border-bottom-style">solid</xsl:attribute>
+      <xsl:attribute name="border-top-width">
+        <xsl:value-of select="$table.border.thickness"/>
+      </xsl:attribute>
+      <xsl:attribute name="border-bottom-width">
+        <xsl:value-of select="$table.border.thickness"/>
+      </xsl:attribute>
     </xsl:when>
     <xsl:when test="$frame='none'">
       <xsl:attribute name="border-left-style">none</xsl:attribute>