Re: example code
- From: Eric Baudais <baudais kkpsi org>
- To: Murray Cumming <murrayc usa net>, gnome-doc-list gnome org
- Subject: Re: example code
- Date: 19 Jun 2002 15:47:05 -0500
Murray-
You can use an entity which is a file with the source code you want to
display. Each entity will point to a file which will be included
automatically in the DocBook XML. So, if you want example.cc to be
included in the document just put:
<!ENTITY example SYSTEM "example.cc">
between the square brackets at the end of the DTD. Then you have
include the entity you made in the DocBook:
&example;
This will include the file example.cc wherever you want in the DocBook
file. When you try to validate the file make sure you use the option
--noent because this will resolve all entities. That means xmllint will
check the entities and the DocBook file for correctness instead of just
the DocBook file.
Eric Baudais
On Thu, 2002-06-13 at 03:35, Murray Cumming wrote:
> The gtkmm manual is in DocBook XML format. It contains example code but it
> keeps getting out of sync with the actual example sources. Is there any
> known/recommended way to insert example code into the text automatically?
>
>
> Murray Cumming
> murrayc usa net
> www.murrayc.com
>
> _______________________________________________
> gnome-doc-list mailing list
> gnome-doc-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-doc-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]