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


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

Re: Need help including c source


/ Daniel Veillard <veillard@redhat.com> was heard to say:
|   Embedding source examples is really important.
| Is there a description of those extension ? A pointer
| would be welcome. I assume foo.c is an URI-Reference.

Yeehaw! Maybe DV will get around to writing my extensions before
I do :-)

The "source inclusion" extension is a simple extension element:

  <prefix:insertfile href="{$filename}"/>

It builds a result-tree-fragment that contains the text of the
document loaded from the href and returns it.

Actually, it's an <xi:include parse="text" href="{$filename}">.
IIRCC, you already support xinclude so maybe I should just
add that to my stylesheet...

|   Relying on the user agent to do the Right Thing is a bit
| risky in this case.

I wasn't relying on the user agent; I was just leaving markers
behind that a Perl script could expand. (This was before I wrote
the extensions :-)

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | Well-being is attained by little
http://www.oasis-open.org/docbook/ | and little, and nevertheless it is
Chair, DocBook Technical Committee | no little thing itself.--Zen of
                                   | Citium

----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>


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