<!ENTITY css.decoration SYSTEM "../params/css.decoration.xml">
<!ENTITY current.docid SYSTEM "../params/current.docid.xml">
<!ENTITY default.table.width SYSTEM "../params/default.table.width.xml">
+<!ENTITY default.table.frame SYSTEM "../params/default.table.frame.xml">
<!ENTITY draft.mode SYSTEM "../params/draft.mode.xml">
<!ENTITY draft.watermark.image SYSTEM "../params/draft.watermark.image.xml">
<!ENTITY ebnf.table.bgcolor SYSTEM "../params/ebnf.table.bgcolor.xml">
&table.frame.border.style;
&table.frame.border.thickness;
&table.frame.border.color;
+&default.table.frame;
&html.cellspacing;
&html.cellpadding;
</reference>
<src:fragref linkend="default.float.class.frag"/>
<src:fragref linkend="default.image.width.frag"/>
<src:fragref linkend="default.table.width.frag"/>
+<src:fragref linkend="default.table.frame.frag"/>
<src:fragref linkend="draft.mode.frag"/>
<src:fragref linkend="draft.watermark.image.frag"/>
<src:fragref linkend="ebnf.table.bgcolor.frag"/>
<xsl:when test="$table.borders.with.css != 0">
<xsl:attribute name="border">0</xsl:attribute>
<xsl:choose>
- <xsl:when test="../@frame='all'">
+ <xsl:when test="../@frame='all' or (not(../@frame) and $default.table.frame='all')">
<xsl:attribute name="style">
<xsl:text>border-collapse: collapse;</xsl:text>
<xsl:call-template name="border">
</xsl:call-template>
</xsl:attribute>
</xsl:when>
- <xsl:when test="../@frame='topbot'">
+ <xsl:when test="../@frame='topbot' or (not(../@frame) and $default.table.frame='topbot')">
<xsl:attribute name="style">
<xsl:text>border-collapse: collapse;</xsl:text>
<xsl:call-template name="border">
</xsl:call-template>
</xsl:attribute>
</xsl:when>
- <xsl:when test="../@frame='top'">
+ <xsl:when test="../@frame='top' or (not(../@frame) and $default.table.frame='top')">
<xsl:attribute name="style">
<xsl:text>border-collapse: collapse;</xsl:text>
<xsl:call-template name="border">
</xsl:call-template>
</xsl:attribute>
</xsl:when>
- <xsl:when test="../@frame='bottom'">
+ <xsl:when test="../@frame='bottom' or (not(../@frame) and $default.table.frame='bottom')">
<xsl:attribute name="style">
<xsl:text>border-collapse: collapse;</xsl:text>
<xsl:call-template name="border">
</xsl:call-template>
</xsl:attribute>
</xsl:when>
- <xsl:when test="../@frame='sides'">
+ <xsl:when test="../@frame='sides' or (not(../@frame) and $default.table.frame='sides')">
<xsl:attribute name="style">
<xsl:text>border-collapse: collapse;</xsl:text>
<xsl:call-template name="border">
</xsl:otherwise>
</xsl:choose>
</xsl:when>
- <xsl:when test="../@frame='none' or local-name(.) = 'entrytbl'">
+ <xsl:when test="../@frame='none' or (not(../@frame) and $default.table.frame='none') or local-name(.) = 'entrytbl'">
<xsl:attribute name="border">0</xsl:attribute>
</xsl:when>
<xsl:otherwise>