Re: Including source files

Subject: Re: Including source files
From: Norman Walsh <norm@xxxxxxxxxxxxx>
Date: Wed, 14 Jan 1998 12:42:43 -0500
> 1) Is it possible to "include" source files from another source file
> which has itself been included?

Yes, you can include entities inside other entities.

> 2) Can I specify places to look for source files to jade or do I need to
> embed partial paths into the entity definition as I'm doing now e.g.
> 
> <!doctype book PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
>  <!entity manpages SYSTEM "man/manpages.sgml">
>  ]>

There are two options, you can continue to use system identifiers with
relative paths, or you can switch to public identifiers and use the
catalog for indirection.

In your instance:

<!doctype book PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
 <!entity manpages PUBLIC "-//ThomasLockhart//TEXT Manpages//EN">
]>

In your catalog:

PUBLIC "-//ThomasLockhart//TEXT Manpages//EN" "man/mangpages.sgml"

The advantage of the catalog is that it allows you to change the
replacement text w/o editing any (or all) of your instances. But
it's not clear from your example that this would be a very big
win.

--norm


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


Current Thread
  • Including source files
    • Thomas G. Lockhart - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id LAA00619Wed, 14 Jan 1998 11:01:58 -0500 (EST)
      • 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)