Re: Beginner questions...

Subject: Re: Beginner questions...
From: Norman Walsh <ndw@xxxxxxxxxx>
Date: Thu, 22 Apr 1999 11:54:35 -0400
/ Thomas Lockhart <lockhart@xxxxxxxxxxxxxxxxxx> was heard to say:
| > | (1) Suppose i have a document with 5 tables which are defined
| > | identically. How can i define a table once and then reuse its definition
| > | without doing "cut and paste"?
| > You can't. Separating content from markup isn't one of the strengths of
| > SGML or XML. Separating content from presentation is.
| 
| ... So the only solution I know about is to separate the table into
| another file, and then include that content where you need it.

I'm sorry, maybe I misunderstood. If the exact same table is repeated
five times, you can use an entity for that. When I first read your
message, I thought you wanted to have the same table structure (say
four rows and three columns) repeated in five places, but with different
data in the cells. That you can't do.

If you just want the same table repeated, use an entity:

<!ENTITY mytable "<table>...</table>"
...
&table; and &table; and &table, prints the table three times.

                                        Cheers,
                                          norm
-- 
Norman Walsh <ndw@xxxxxxxxxx>      | "Bother", said Pooh, as he deleted
http://nwalsh.com/                 | his root directory.


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread