This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: How to include a file?
- To: ben <nicolas dot marsgui at libertysurf dot fr>,"docbook-apps at lists dot oasis-open dot org" <docbook-apps at lists dot oasis-open dot org>
- Subject: Re: DOCBOOK-APPS: How to include a file?
- From: Jirka Kosek <jirka at kosek dot cz>
- Date: Fri, 18 May 2001 10:12:10 +0200
- References: <3B0492B3.809FF63B@libertysurf.fr>
ben wrote:
> I want to include a file, whose name is defined by a variable. I've
> tried the following:
> <xsl:include href="{$filename}"/>
Wouldn't you mean including file in DocBook source? <xsl:include>
instruction is suitable for splitting stylesheet code into several
separate files. You can not use varibale reference there, because href
attribute is not AVT.
If you want include listing of external file in DocBook document you can
use following dirty trick:
<programlisting><inlinegraphic format="linespecific"
fileref="includedfile.xml"/></programlisting>
In a future more cleaner way using XInclude would be possible.
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz
------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org