Re: Example glade files in document



On Sun, 29 Oct 2000, Alexander Kirillov wrote:

> On Sat, Oct 28, 2000 at 01:32:16PM -0500, Federico Mena Quintero wrote:
> > 
> > I want to have an appendix with the example Glade files.  I tried
> > creating a SYSTEM entity pointing to my example .glade file, and then
> > including it in a <literallayout>.  Unfortunately, the .glade file has
> > its own XML-like tags and thus Jade gets very confused when it slurps
> > it into the SGML document.
> > 
> > My question is, how do I include a plain text file into the SGML
> > document without having to massage it by hand?
> 
> 
> We had similar problem when including templates into GDP handbook. The
> solution we used is rather clumsy, but I know of no better
> one. Namely: in addition to file.glade, create also file.glade.cdata
> which is
> <!CDATA[
> (cut-and-paste your file.glade)
> ]]
> 
> and now you can include this file as entity. 
> Stupid thing is, you have 2 almost identical files, which have to be
> synced manually - but I know no better solution. 

With the GDP Handbook, we have file.glade.cdata automatically generated
from file.glade by the Makefile.  This makes things marginally simpler
since you don't have to remember to manually synchronize them all the
time.

Dan





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]