<RefEntry id="X24table-widthX24X29"> <!-- This file is generated automatically from the DSSSL source. --> <!-- Do not edit this file! --> <?html-filename table-width.html> <RefMeta> <RefEntryTitle>$table-width$</RefEntryTitle> <RefMiscInfo Role="file">dbparam.dsl</RefMiscInfo> </RefMeta> <RefNameDiv> <RefName>$table-width$</RefName> <RefPurpose>Calculate table width</RefPurpose> </RefNameDiv> <RefSynopsisDiv><Title>Synopsis</Title> <Synopsis> ($table-width$) </Synopsis> </RefSynopsisDiv> <RefSect1><Title>Description</Title> <para> This function is called to calculate the width of tables that should theoretically be "100%" wide. Unfortunately, in HTML, a 100% width table in a list hangs off the right side of the browser window. (Who's mistake was that!). So this function provides a way to massage the width appropriately. </para> <para> This version is fairly dumb.</para> </RefSect1> <RefSect1><Title>Source Code</Title> <ProgramListing> (define ($table-width$) ;; Calculate table width (if (has-ancestor-member? (current-node) '("LISTITEM")) "90%" "100%")) </ProgramListing> </RefSect1> </RefEntry>