Ignore:
Timestamp:
Jul 21, 2007, 8:07:11 AM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
master
Children:
a6966fa
Parents:
3ca2208
Message:

Merged r8226 from new-xsl branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/table.xsl

    r3ca2208 r00b1e11  
    136136
    137137  <xsl:variable name="summary">
    138     <xsl:call-template name="dbhtml-attribute">
    139       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    140       <xsl:with-param name="attribute" select="'table-summary'"/>
    141     </xsl:call-template>
     138    <xsl:call-template name="pi.dbhtml_table-summary"/>
    142139  </xsl:variable>
    143140
    144141  <xsl:variable name="cellspacing">
    145     <xsl:call-template name="dbhtml-attribute">
    146       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    147       <xsl:with-param name="attribute" select="'cellspacing'"/>
    148     </xsl:call-template>
     142    <xsl:call-template name="pi.dbhtml_cellspacing"/>
    149143  </xsl:variable>
    150144
    151145  <xsl:variable name="cellpadding">
    152     <xsl:call-template name="dbhtml-attribute">
    153       <xsl:with-param name="pis" select="processing-instruction('dbhtml')[1]"/>
    154       <xsl:with-param name="attribute" select="'cellpadding'"/>
    155     </xsl:call-template>
     146    <xsl:call-template name="pi.dbhtml_cellpadding"/>
    156147  </xsl:variable>
    157148
     
    216207    <xsl:choose>
    217208      <xsl:when test="$table.borders.with.css != 0">
    218         <xsl:attribute name="border">0</xsl:attribute>
    219209        <xsl:choose>
    220210          <xsl:when test="../@frame='all' or (not(../@frame) and $default.table.frame='all')">
     
    303293            </xsl:attribute>
    304294          </xsl:when>
     295          <xsl:when test="../@frame='none'">
     296            <xsl:attribute name="style">
     297              <xsl:text>border: none;</xsl:text>
     298            </xsl:attribute>
     299          </xsl:when>
    305300          <xsl:otherwise>
    306301            <xsl:attribute name="style">
     
    309304          </xsl:otherwise>
    310305        </xsl:choose>
     306
    311307      </xsl:when>
    312308      <xsl:when test="../@frame='none' or (not(../@frame) and $default.table.frame='none') or local-name(.) = 'entrytbl'">
     
    327323
    328324    <xsl:variable name="explicit.table.width">
    329       <xsl:call-template name="dbhtml-attribute">
    330         <xsl:with-param name="pis" select="../processing-instruction('dbhtml')[1]"/>
    331         <xsl:with-param name="attribute" select="'table-width'"/>
     325      <xsl:call-template name="pi.dbhtml_table-width">
     326        <xsl:with-param name="node" select=".."/>
    332327      </xsl:call-template>
    333328    </xsl:variable>
     
    417412<xsl:template match="tgroup/processing-instruction('dbhtml')">
    418413  <xsl:variable name="summary">
    419     <xsl:call-template name="dbhtml-attribute">
    420       <xsl:with-param name="pis" select="."/>
    421       <xsl:with-param name="attribute" select="'table-summary'"/>
    422     </xsl:call-template>
     414    <xsl:call-template name="pi.dbhtml_table-summary"/>
    423415  </xsl:variable>
    424416
     
    546538  <xsl:variable name="row-height">
    547539    <xsl:if test="processing-instruction('dbhtml')">
    548       <xsl:call-template name="dbhtml-attribute">
    549         <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    550         <xsl:with-param name="attribute" select="'row-height'"/>
    551       </xsl:call-template>
     540      <xsl:call-template name="pi.dbhtml_row-height"/>
    552541    </xsl:if>
    553542  </xsl:variable>
     
    555544  <xsl:variable name="bgcolor">
    556545    <xsl:if test="processing-instruction('dbhtml')">
    557       <xsl:call-template name="dbhtml-attribute">
    558         <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    559         <xsl:with-param name="attribute" select="'bgcolor'"/>
    560       </xsl:call-template>
     546      <xsl:call-template name="pi.dbhtml_bgcolor"/>
    561547    </xsl:if>
    562548  </xsl:variable>
     
    564550  <xsl:variable name="class">
    565551    <xsl:if test="processing-instruction('dbhtml')">
    566       <xsl:call-template name="dbhtml-attribute">
    567         <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    568         <xsl:with-param name="attribute" select="'class'"/>
    569       </xsl:call-template>
     552      <xsl:call-template name="pi.dbhtml_class"/>
    570553    </xsl:if>
    571554  </xsl:variable>
     
    777760      <xsl:variable name="bgcolor">
    778761        <xsl:if test="processing-instruction('dbhtml')">
    779           <xsl:call-template name="dbhtml-attribute">
    780             <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    781             <xsl:with-param name="attribute" select="'bgcolor'"/>
    782           </xsl:call-template>
     762          <xsl:call-template name="pi.dbhtml_bgcolor"/>
    783763        </xsl:if>
    784764      </xsl:variable>
Note: See TracChangeset for help on using the changeset viewer.