Newsgroups: comp.text.sgml
Path: utzoo!utgpu!watserv1!maytag!csg.uwaterloo.ca!garyp
From: garyp@csg.uwaterloo.ca (Gary Pianosi)
Subject: Re: looking for more information
Message-ID: <1990Nov22.200946.6152@maytag.waterloo.edu>
Sender: daemon@maytag.waterloo.edu (Admin)
Organization: University of Waterloo
References: <P!+^?5^@rpi.edu> <200@tivoli.UUCP>
Date: Thu, 22 Nov 90 20:09:46 GMT
Lines: 24

In article <200@tivoli.UUCP> lark@tivoli.UUCP (Lar Kaufman) writes:
>In article <P!+^?5^@rpi.edu> dms@aix03.aix.rpi.edu (david m schwartz) writes:
...
>>6.  I assume it is OK for SGML documents to be broken into chapter files?
>
>Yeah.
>
Could someone please elaborate on this ... The only way I know of doing
this is to define a SYSTEM entity in my main document, say:

        <!ENTITY chap1 SYSTEM "mychap1.sgml">

and then include the entity reference, "&chap1;", where I want the 
chapter inserted. Is there another way?

My problem with this method is that if I want to break up my chapters
into sections and sections into sub-sections, I must define all of
the appropriate system entities in my main document. Hence my main
document must 'know' about all of the pieces that comprise it. I feel
that I somewhat lose the modularity of my document by doing this.
--
--
Internet:  garyp@csg.UWaterloo.CA            Bitnet:  garyp@watcsg.BITNET
Computer Systems Group, University of Waterloo, Waterloo, Ontario, Canada
