Re: tables html dsssl HELP!

Subject: Re: tables html dsssl HELP!
From: Ted Kandell <ted@xxxxxxxxxxxxxx>
Date: Fri, 10 Oct 1997 18:01:50 -0700
I'm working with Billy Mahoney on this project.

 I ran your test example through Jade and got the output in test.fot and
test.css
These files look OK to me but when I run test.fot through nsgmls, I don't get
an .html file.
Is there something wrong with the current version of nsgmlsu? Try running it
yourself on test.fot.


Thanks,

Ted Kandell
Billy Mahoney


G. Ken Holman wrote:

> At 11:16 97/10/10 -0700, Billy Mahoney wrote:
> >2x2 table with borders around all the elements. Can anyone
> >help me? Here's what I attempted...
>
> Your use of the table-row and table-cell flow objects was incorrect, as the
> table-cell objects were not nested as children of the table-row objects;
> you have the table-cell objects as children of the table object.
>
> You can build a hard-wired table without using child elements by nesting
> flow objects in table-cells in table-rows in tables (the nesting is
> important).  Be aware of inadvertently processing the table element
> children more than once by not correctly watching the implicit use of
> (process-children) ... this is the most common mistake I've seen in class.
>
> Here is a canned example I have that may help.  This table is 2x2 with
> thick table borders and thin cell borders.  It is data driven through
> nested table elements in the SGML source rather than being hard-wired in my
> DSSSL script using fixed cell contents.
>
> .......... Ken
>
> C:\data\KenData\course\PFUD\Develop\exer>type samp3.sgm
> <!DOCTYPE t [
> <!--
> PUBLIC "+//ISBN 1-894049::CSL::Courses::PFUD//DOCUMENT Sample 3 Source//EN"
> Copyright (C) Crane Softwrights Ltd.
> -->
> <!ELEMENT t - O ( r+ )      -- table  -->
> <!ELEMENT r - O ( c+ )      -- row    -->
> <!ELEMENT c - O ( #PCDATA ) -- column -->
> ]><t>
> <r><c>r1c1<c>r1c2
> <r><c>r2c1<c>r2c2
>
> C:\data\KenData\course\PFUD\Develop\exer>type samp3.dsl
> <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">
> <!--
> PUBLIC "+//ISBN 1-894049::CSL::Courses::PFUD//DOCUMENT Sample 3
> Stylesheet//EN"
> Copyright (C) Crane Softwrights Ltd.
> -->
>
> (element t                      ;the processing of the table element
>     (make table
>         table-border:  (make table-border line-thickness: 3pt)
>         (make table-column width: 1in)  ;all columns before any rows
>         (make table-column width: 2in)
>         (process-children)))            ;child elements make row flow objs
>
> (element r                      ;a row in the table
>     (make table-row
>         (process-children)))    ;child elements make cell flow objects
>
> (element c                      ;a column in the row
>     (make table-cell
>         cell-before-row-border:    #t
>         cell-before-column-border: #t
>         (process-children)))    ;content of the table cell
>
> ; end of file
>
> C:\data\KenData\course\PFUD\Develop\exer>
>
> --
> G. Ken Holman            mailto:gkholman@xxxxxxxxxxxxxx
> Crane Softwrights Ltd.  http://www.CraneSoftwrights.com
> 1605 Mardick Court, Box 266,         V: +1(613)489-0999
> Kars, Ontario CANADA K0A-2E0         F: +1(613)489-0995
> PGP Privacy: http://www.cyberus.ca/~holman/gkholman.pgp
> Training:  http://www.CraneSoftwrights.com/schedule.htm
>
>  DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


<!doctype fot public "-//James Clark//DTD DSSSL Flow Object Tree//EN">
<element index=0 rule-element>
<table>
<table.before-row-border line-thickness=3000>
<table.after-row-border line-thickness=3000>
<table.before-column-border line-thickness=3000>
<table.after-column-border line-thickness=3000>
<table-column column-number=1 width=72000>
<table-column column-number=2 width=144000>
<element index=1 rule-element>
<table-row>
<element index=2 rule-element>
<sequence>
<sequence>
<table-cell column-number=1>
<table-cell.before-row-border border-present=1>
<table-cell.after-row-border border-present=0>
<table-cell.before-column-border border-present=1>
<table-cell.after-column-border border-present=0>
<chars>
r1c1
</chars>
</table-cell>
</sequence>
</sequence>
</element>
<element index=3 rule-element>
<sequence>
<sequence>
<table-cell column-number=2>
<table-cell.before-row-border border-present=1>
<table-cell.after-row-border border-present=0>
<table-cell.before-column-border border-present=1>
<table-cell.after-column-border border-present=0>
<chars>
r1c2
</chars>
</table-cell>
</sequence>
</sequence>
</element>
<sequence>
<table-cell column-number=0>
<table-cell.before-row-border border-present=0>
<table-cell.after-row-border border-present=0>
<table-cell.before-column-border border-present=0>
<table-cell.after-column-border border-present=0>
</table-cell>
</sequence>
</table-row>
</element>
<element index=4 rule-element>
<table-row>
<element index=5 rule-element>
<sequence>
<sequence>
<table-cell column-number=1>
<table-cell.before-row-border border-present=1>
<table-cell.after-row-border border-present=0>
<table-cell.before-column-border border-present=1>
<table-cell.after-column-border border-present=0>
<chars>
r2c1
</chars>
</table-cell>
</sequence>
</sequence>
</element>
<element index=6 rule-element>
<sequence>
<sequence>
<table-cell column-number=2>
<table-cell.before-row-border border-present=1>
<table-cell.after-row-border border-present=0>
<table-cell.before-column-border border-present=1>
<table-cell.after-column-border border-present=0>
<chars>
r2c2
</chars>
</table-cell>
</sequence>
</sequence>
</element>
<sequence>
<table-cell column-number=0>
<table-cell.before-row-border border-present=0>
<table-cell.after-row-border border-present=0>
<table-cell.before-column-border border-present=0>
<table-cell.after-column-border border-present=0>
</table-cell>
</sequence>
</table-row>
</element>
</table>
</element>
SPAN.CHARS {
  font-family: Times New Roman,serif;
  font-weight: 500;
  font-style: normal;
  font-size: 10pt;
  color: #000000;
}
DIV { margin-top: 0pt; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt }
Current Thread