This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]