Changeset 4722


Ignore:
Timestamp:
2003-06-18T13:51:41+12:00 (21 years ago)
Author:
kjdon
Message:

netscape doesn't like empty tables so put in a test before a couple of the bits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/web/interfaces/default/transform/classifier.xsl

    r4720 r4722  
    107107    <tr valign='top'><td><xsl:text> </xsl:text></td><xsl:apply-templates select='.' mode='process-node-children'><xsl:with-param name='collName' select='$collName'/></xsl:apply-templates></tr></xsl:for-each>
    108108    </table>
    109     <table width='537'>
    110       <xsl:for-each select='//documentNode'>
    111     <tr valign='top'><xsl:apply-templates select='.'><xsl:with-param name='collName' select='$collName'/></xsl:apply-templates></tr>
    112       </xsl:for-each>
    113     </table>
     109    <xsl:if text="descendant::documentNode"><!--netscape doesn't like empty tables-->
     110      <table width='537'>
     111    <xsl:for-each select='descendant::documentNode'>
     112      <tr valign='top'><xsl:apply-templates select='.'><xsl:with-param name='collName' select='$collName'/></xsl:apply-templates></tr>
     113    </xsl:for-each>
     114      </table>
     115    </xsl:if>
    114116    <xsl:call-template name="greenBar"/>
    115117  </xsl:template>
     
    156158      <xsl:apply-templates select='.' mode='process-node-children'><xsl:with-param name='collName' select='$collName'/><xsl:with-param name='serviceName' select='$serviceName'/></xsl:apply-templates></xsl:for-each></tr>
    157159    </table>
    158     <table width='537'>
    159       <xsl:for-each select='//documentNode'>
    160     <tr valign='top'><xsl:apply-templates select='.'><xsl:with-param name='collName' select='$collName'/></xsl:apply-templates></tr>
    161       </xsl:for-each>
    162     </table>
     160    <xsl:if test="descendant::documentNode"> <!-- netscape complains about an empty table-->
     161      <table width='537'>
     162    <xsl:for-each select='descendant::documentNode'>
     163      <tr valign='top'><xsl:apply-templates select='.'><xsl:with-param name='collName' select='$collName'/></xsl:apply-templates></tr>
     164    </xsl:for-each>
     165      </table>
     166    </xsl:if>
    163167    <xsl:call-template name="greenBar"/>
    164168  </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.