Re: Including source files

Subject: Re: Including source files
From: Norman Walsh <norm@xxxxxxxxxxxxx>
Date: Thu, 15 Jan 1998 11:49:54 -0500
> Yes, but of course not the answer I was hoping for. I was thinking of
> isolating parts of the docs into subdirectories and then, when someone adds a
> new entity (file) to that area, only having to update references to it in
> other files in that same directory. These other files would be included from
> multiple top-level files since we might be packaging the docs in more than
> one way.

Does this strategy help:

driver.sgm:
<!doctype book public "..." [
<!entity main system "main.sgm">
<!entity % part1files system "part1/driver.ent">
%part1files;
]>
<book>
&main;
</book>

main.sgm:
&part1;

part1/driver.ent:
<!entity part1 system "part1.sgm">
<!entity p1sub1 system "sub1.sgm">
<!entity p1sub2 system "sub2.sgm">

part1/part1.sgm:
<part><title>...</title>
&p1sub1;
&p1sub2;
</part>

part1/sub1.sgm:
<chapter>...</chapter>

part1/sub2.sgm:
<chapter>...</chapter>

Now if you add a new part to part1, you only have to update the 
part1/driver.ent file and the part1.sgm file that references it.

--norm




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


Current Thread
  • Re: Including source files, (continued)
    • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id MAA01159Wed, 14 Jan 1998 12:43:32 -0500 (EST)
      • Thomas G. Lockhart - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id AAA08240Thu, 15 Jan 1998 00:06:09 -0500 (EST)
        • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA16532Thu, 15 Jan 1998 10:25:55 -0500 (EST)
        • Thomas G. Lockhart - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id LAA18642Thu, 15 Jan 1998 11:26:49 -0500 (EST)
        • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id LAA18912Thu, 15 Jan 1998 11:50:10 -0500 (EST) <=
        • Thomas G. Lockhart - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id MAA19144Thu, 15 Jan 1998 12:13:30 -0500 (EST)
        • W. Eliot Kimber - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id OAA21186Thu, 15 Jan 1998 14:00:43 -0500 (EST)
    • Tony Graham - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id NAA01447Wed, 14 Jan 1998 13:03:37 -0500 (EST)