Re: DOCBOOK: Building books with variables in them

From
David Lloyd <>
Date
2000-07-20T23:45:20+00:00
ID
Thread
Re: DOCBOOK: Building books with variables in them
Norm et al:

> Create your book like this:
> 
> <!DOCTYPE book ... [
> <!ENTITY version SYSTEM "version.sgm">
> ]>
> <book>
> ...
> <para>This is version &version;.</para>

I reckon that a perl script with this pseudo code:

subst_variables -f file.sgml entity1=value

#! /usr/bin/perl

[Use a REGEX operation to subst the value of ENTITY1 with value]

Would work a treat...

DL
-- 
To the thirsty I shall give water without price
 From the fountain of the water of life
 He who conquers shall have his heritage
 And I shall be his God and he shall be my son