xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bowditch <bowditch_ch...@hotmail.com>
Subject Re: How to include .fo file into another .fo
Date Wed, 01 Sep 2010 07:57:00 GMT
Shaki wrote:
> Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:

<snip/>

> 
>> 2. If you have an XInclude-capable XML parser (or a SAX filter for
>> XInclude), you can use XInclude.
>>
>> http://en.wikipedia.org/wiki/XInclude
>> http://www.w3.org/TR/xinclude/

<snip/>


> 
> I am using Apache FOP. My attempt with XInclude failed.
> 
> File to be included: 2.pdf 
> <fo:block font-size="20pt">
>    Address block
> </fo:block>  
> 
> Master file:
> <fo:block>
>   <xi:include href="2.fo" parse="xml" xmlns:xi="http://www.w3.org/2001/XInclude">
>     <xi:fallback>Include Error</xi:fallback>    
>   </xi:include>
> </fo:block>

You are using relative paths in the reference. Did you try specifying a 
full file URL, e.g. href="file:///c:/mydir/2.fo"

Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message