OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: 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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC